diff --git a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C index 21c9f5867a..7720b3b559 100644 --- a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C +++ b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C @@ -130,7 +130,7 @@ void checkSnapMesh label nOldSize = wrongFaces.size(); - const scalarField magFaceAreas = mag(mesh.faceAreas()); + const scalarField magFaceAreas(mag(mesh.faceAreas())); forAll(magFaceAreas, faceI) { diff --git a/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C b/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C index 379e8e17f8..718d69fe54 100644 --- a/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C +++ b/applications/utilities/mesh/manipulation/deformedGeom/deformedGeom.C @@ -79,12 +79,13 @@ int main(int argc, char *argv[]) Info<< " Reading U" << endl; volVectorField U(Uheader, mesh); - pointField newPoints = + pointField newPoints + ( zeroPoints - + scaleFactor*pInterp.interpolate(U)().internalField(); + + scaleFactor*pInterp.interpolate(U)().internalField() + ); mesh.polyMesh::movePoints(newPoints); - mesh.write(); } else diff --git a/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C b/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C index eb33c26427..a3ee093f10 100644 --- a/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C +++ b/applications/utilities/mesh/manipulation/refineMesh/refineMesh.C @@ -271,7 +271,7 @@ label twoDNess(const polyMesh& mesh) { const vectorField& n = patch.faceAreas(); - scalarField cosAngle = mag(n/mag(n) & cellPlane.normal()); + const scalarField cosAngle(mag(n/mag(n) & cellPlane.normal())); if (mag(min(cosAngle) - max(cosAngle)) > 1E-6) {