diff --git a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C index a469731d1232dadd8bbf242750bfaefa64489569..1d491c7825952ff25c86990f362b35a547bb5721 100644 --- a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C +++ b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMeshApp.C @@ -47,7 +47,6 @@ Note #include "polyTopoChange.H" #include "MeshedSurface.H" #include "edgeCollapser.H" -#include "addPatchCellLayer.H" #include "patchToPoly2DMesh.H" #include "globalIndex.H" #include "topoSet.H" diff --git a/src/dynamicMesh/polyTopoChange/polyTopoChange/addPatchCellLayer.C b/src/dynamicMesh/polyTopoChange/polyTopoChange/addPatchCellLayer.C index 4d3d5f5454e5955a8dad0be75b536ae31593693c..848e854ad14821b6cc23430d912507b42102699c 100644 --- a/src/dynamicMesh/polyTopoChange/polyTopoChange/addPatchCellLayer.C +++ b/src/dynamicMesh/polyTopoChange/polyTopoChange/addPatchCellLayer.C @@ -2144,7 +2144,7 @@ void Foam::addPatchCellLayer::setRefinement : mesh_.faceOwner()[meshFacei] ); nei = addedCells[patchFacei][i]; - if (ppFlip[patchFacei]) + if (!ppFlip[patchFacei]) { newFace = newFace.reverseFace(); if (zonei != -1)