diff --git a/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C b/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C index 905cf72f3e..011417c29e 100644 --- a/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C +++ b/src/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriver.C @@ -1388,11 +1388,7 @@ Foam::autoPtr Foam::autoSnapDriver::repatchToSurface } } - pointField localFaceCentres(pp.size()); - forAll(pp, i) - { - localFaceCentres[i] = mesh.faceCentres()[pp.addressing()[i]]; - } + pointField localFaceCentres(mesh.faceCentres(), pp.addressing()); // Get nearest surface and region labelList hitSurface; diff --git a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementRefine.C b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementRefine.C index 24c7819d8d..d42ac05b22 100644 --- a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementRefine.C +++ b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementRefine.C @@ -1242,7 +1242,7 @@ Foam::autoPtr Foam::meshRefinement::refine // Do refinement of consistent set of cells followed by truncation and // load balancing. Foam::autoPtr - Foam::meshRefinement::refineAndBalance +Foam::meshRefinement::refineAndBalance ( const string& msg, decompositionMethod& decomposer,