diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/derived/wall/wallPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/derived/wall/wallPolyPatch.C index f6c3d51061..9263609ee5 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/derived/wall/wallPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/derived/wall/wallPolyPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -49,7 +49,13 @@ Foam::wallPolyPatch::wallPolyPatch ) : polyPatch(name, size, start, index, bm, patchType) -{} +{ + // wall is not constraint type so add wall group explicitly + if (findIndex(inGroups(), typeName) == -1) + { + inGroups().append(typeName); + } +} Foam::wallPolyPatch::wallPolyPatch @@ -62,7 +68,13 @@ Foam::wallPolyPatch::wallPolyPatch ) : polyPatch(name, dict, index, bm, patchType) -{} +{ + // wall is not constraint type so add wall group explicitly + if (findIndex(inGroups(), typeName) == -1) + { + inGroups().append(typeName); + } +} Foam::wallPolyPatch::wallPolyPatch diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPolyPatch.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPolyPatch.C index 804b96affb..6732e5c7b1 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedPolyPatch.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedPolyPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -51,7 +51,13 @@ Foam::mappedPolyPatch::mappedPolyPatch : polyPatch(name, size, start, index, bm, patchType), mappedPatchBase(static_cast(*this)) -{} +{ + // mapped is not constraint type so add mapped group explicitly + if (findIndex(inGroups(), typeName) == -1) + { + inGroups().append(typeName); + } +} Foam::mappedPolyPatch::mappedPolyPatch @@ -115,7 +121,13 @@ Foam::mappedPolyPatch::mappedPolyPatch : polyPatch(name, dict, index, bm, patchType), mappedPatchBase(*this, dict) -{} +{ + // mapped is not constraint type so add mapped group explicitly + if (findIndex(inGroups(), typeName) == -1) + { + inGroups().append(typeName); + } +} Foam::mappedPolyPatch::mappedPolyPatch diff --git a/src/meshTools/mappedPatches/mappedPolyPatch/mappedWallPolyPatch.C b/src/meshTools/mappedPatches/mappedPolyPatch/mappedWallPolyPatch.C index 61bc54a3d0..243d0a804a 100644 --- a/src/meshTools/mappedPatches/mappedPolyPatch/mappedWallPolyPatch.C +++ b/src/meshTools/mappedPatches/mappedPolyPatch/mappedWallPolyPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -25,6 +25,7 @@ License #include "mappedWallPolyPatch.H" #include "addToRunTimeSelectionTable.H" +#include "mappedPolyPatch.H" // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // @@ -56,7 +57,13 @@ Foam::mappedWallPolyPatch::mappedWallPolyPatch : wallPolyPatch(name, size, start, index, bm, patchType), mappedPatchBase(static_cast(*this)) -{} +{ + // mapped is not constraint type so add mapped group explicitly + if (findIndex(inGroups(), mappedPolyPatch::typeName) == -1) + { + inGroups().append(mappedPolyPatch::typeName); + } +} Foam::mappedWallPolyPatch::mappedWallPolyPatch @@ -120,7 +127,13 @@ Foam::mappedWallPolyPatch::mappedWallPolyPatch : wallPolyPatch(name, dict, index, bm, patchType), mappedPatchBase(*this, dict) -{} +{ + // mapped is not constraint type so add mapped group explicitly + if (findIndex(inGroups(), mappedPolyPatch::typeName) == -1) + { + inGroups().append(mappedPolyPatch::typeName); + } +} Foam::mappedWallPolyPatch::mappedWallPolyPatch