diff --git a/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/directionMixed/directionMixedFvPatchField.C index 1a185a514f1168de6ed543581cbeb9d05c7a6e59..ec66616b44124b9b4637defec76b90de90269aad 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<Type>::directionMixedFvPatchField refValue_(ptf.refValue_, mapper), refGrad_(ptf.refGrad_, mapper), valueFraction_(ptf.valueFraction_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "directionMixedFvPatchField<Type>::directionMixedFvPatchField\n" + "(\n" + " const directionMixedFvPatchField<Type>&,\n" + " const fvPatch&,\n" + " const DimensionedField<Type, volMesh>&,\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<class Type> diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedGradient/fixedGradientFvPatchField.C index dd10411a4f36e7637f10a087e4bb52f752459b91..9c46ecb089dfbb5d7087a78bd29b2b9b43c81c77 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<Type>::fixedGradientFvPatchField : fvPatchField<Type>(ptf, p, iF, mapper), gradient_(ptf.gradient_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "fixedGradientFvPatchField<Type>::fixedGradientFvPatchField\n" + "(\n" + " const fixedGradientFvPatchField<Type>&,\n" + " const fvPatch&,\n" + " const DimensionedField<Type, volMesh>&,\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<class Type> diff --git a/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/fixedValue/fixedValueFvPatchField.C index a401ede3ef42c027f3ffe8aa0720f02149637bc2..4fcf0863aa59e8430dbcb3b89ef9011d0ef9ab32 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<Type>::fixedValueFvPatchField ) : fvPatchField<Type>(ptf, p, iF, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "fixedValueFvPatchField<Type>::fixedValueFvPatchField\n" + "(\n" + " const fixedGradientFvPatchField<Type>&,\n" + " const fvPatch&,\n" + " const DimensionedField<Type, volMesh>&,\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<class Type> diff --git a/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/basic/mixed/mixedFvPatchField.C index b716d486864972f4ccb5f416a6d1f542dff94d04..378b5bbcf78419ba9e4cffc21041c085e06ca4f0 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<Type>::mixedFvPatchField refValue_(ptf.refValue_, mapper), refGrad_(ptf.refGrad_, mapper), valueFraction_(ptf.valueFraction_, mapper) -{} +{ + if (mapper.hasUnmapped()) + { + WarningIn + ( + "mixedFvPatchField<Type>::mixedFvPatchField\n" + "(\n" + " const mixedFvPatchField<Type>&,\n" + " const fvPatch&,\n" + " const DimensionedField<Type, volMesh>&,\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<class Type>