diff --git a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C index bafe30550467b75f30c33effec03008170addf4e..cdd6f52d15fce2954c01764e5f51700260adb9f3 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.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 @@ -383,12 +383,7 @@ int main(int argc, char *argv[]) // Determine extrudePatch normal pointField extrudePatchPointNormals ( - PatchTools::pointNormals //calcNormals - ( - mesh, - extrudePatch, - meshFaces - ) + PatchTools::pointNormals(mesh, extrudePatch) ); @@ -629,12 +624,13 @@ int main(int argc, char *argv[]) const labelListList& layerFaces = layerExtrude.layerFaces(); backPatchFaces.setSize(layerFaces.size()); frontPatchFaces.setSize(layerFaces.size()); - forAll(backPatchFaces, i) + forAll(backPatchFaces, patchFaceI) { - backPatchFaces[i] = layerFaces[i].first(); - frontPatchFaces[i] = layerFaces[i].last(); + backPatchFaces[patchFaceI] = layerFaces[patchFaceI].first(); + frontPatchFaces[patchFaceI] = layerFaces[patchFaceI].last(); } + // Create dummy fvSchemes, fvSolution createDummyFvMeshFiles(mesh, regionDir); @@ -654,6 +650,13 @@ int main(int argc, char *argv[]) mesh ); + layerExtrude.updateMesh + ( + map(), + identity(extrudePatch.size()), + identity(extrudePatch.nPoints()) + ); + // Calculate face labels for front and back. frontPatchFaces = renumber (