diff --git a/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C index 1a185a514f..ec66616b44 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -55,7 +55,25 @@ Foam::directionMixedFvPatchField::directionMixedFvPatchField refValue_(ptf.refValue_, mapper), refGrad_(ptf.refGrad_, mapper), valueFraction_(ptf.valueFraction_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "directionMixedFvPatchField::directionMixedFvPatchField\n" + "(\n" + " const directionMixedFvPatchField&,\n" + " const fvPatch&,\n" + " const DimensionedField&,\n" + " const fvPatchFieldMapper&\n" + ")\n" + ) << "On field " << iF.name() << " patch " << p.name() + << " patchField " << this->type() + << " : mapper does not map all values." << nl + << " To avoid this warning fully specify the mapping in derived" + << " patch fields." << endl; + } +} template diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C index dd10411a4f..9c46ecb089 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -56,7 +56,25 @@ fixedGradientFvPatchField::fixedGradientFvPatchField : fvPatchField(ptf, p, iF, mapper), gradient_(ptf.gradient_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "fixedGradientFvPatchField::fixedGradientFvPatchField\n" + "(\n" + " const fixedGradientFvPatchField&,\n" + " const fvPatch&,\n" + " const DimensionedField&,\n" + " const fvPatchFieldMapper&\n" + ")\n" + ) << "On field " << iF.name() << " patch " << p.name() + << " patchField " << this->type() + << " : mapper does not map all values." << nl + << " To avoid this warning fully specify the mapping in derived" + << " patch fields." << endl; + } +} template diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C index a401ede3ef..4fcf0863aa 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -65,7 +65,25 @@ fixedValueFvPatchField::fixedValueFvPatchField ) : fvPatchField(ptf, p, iF, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "fixedValueFvPatchField::fixedValueFvPatchField\n" + "(\n" + " const fixedGradientFvPatchField&,\n" + " const fvPatch&,\n" + " const DimensionedField&,\n" + " const fvPatchFieldMapper&\n" + ")\n" + ) << "On field " << iF.name() << " patch " << p.name() + << " patchField " << this->type() + << " : mapper does not map all values." << nl + << " To avoid this warning fully specify the mapping in derived" + << " patch fields." << endl; + } +} template diff --git a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C index b716d48686..378b5bbcf7 100644 --- a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -59,7 +59,25 @@ mixedFvPatchField::mixedFvPatchField refValue_(ptf.refValue_, mapper), refGrad_(ptf.refGrad_, mapper), valueFraction_(ptf.valueFraction_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "mixedFvPatchField::mixedFvPatchField\n" + "(\n" + " const mixedFvPatchField&,\n" + " const fvPatch&,\n" + " const DimensionedField&,\n" + " const fvPatchFieldMapper&\n" + ")\n" + ) << "On field " << iF.name() << " patch " << p.name() + << " patchField " << this->type() + << " : mapper does not map all values." << nl + << " To avoid this warning fully specify the mapping in derived" + << " patch fields." << endl; + } +} template