diff --git a/src/parallel/decompose/decompositionMethods/hierarchGeomDecomp/hierarchGeomDecomp.C b/src/parallel/decompose/decompositionMethods/hierarchGeomDecomp/hierarchGeomDecomp.C index 921e04d2aa4f6d7e2d65b3873831c75c47cddb93..a61bc785c101053298a23313abe3190d6aecd2dc 100644 --- a/src/parallel/decompose/decompositionMethods/hierarchGeomDecomp/hierarchGeomDecomp.C +++ b/src/parallel/decompose/decompositionMethods/hierarchGeomDecomp/hierarchGeomDecomp.C @@ -59,7 +59,7 @@ void Foam::hierarchGeomDecomp::setDecompOrder() << exit(FatalIOError); } - for (label i = 0; i < 3; i++) + for (label i = 0; i < 3; ++i) { if (order[i] == 'x') { @@ -693,8 +693,7 @@ Foam::labelList Foam::hierarchGeomDecomp::decompose slice[i] = i; } - pointField rotatedPoints = rotDelta_ & points; - + pointField rotatedPoints(rotDelta_ & points); // Calculate tolerance of cell distribution. For large cases finding // distibution to the cell exact would cause too many iterations so allow @@ -735,7 +734,7 @@ Foam::labelList Foam::hierarchGeomDecomp::decompose slice[i] = i; } - pointField rotatedPoints = rotDelta_ & points; + pointField rotatedPoints(rotDelta_ & points); // Calculate tolerance of cell distribution. For large cases finding // distibution to the cell exact would cause too many iterations so allow @@ -775,6 +774,4 @@ Foam::hierarchGeomDecomp::hierarchGeomDecomp } -// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // - // ************************************************************************* // diff --git a/src/parallel/decompose/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C b/src/parallel/decompose/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C index d7f45bb1e73af4d3a27b443f085ff83d77fce93a..99e219f5994fd82172647c1d7a2b3907866a2014 100644 --- a/src/parallel/decompose/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C +++ b/src/parallel/decompose/decompositionMethods/simpleGeomDecomp/simpleGeomDecomp.C @@ -139,7 +139,7 @@ Foam::labelList Foam::simpleGeomDecomp::decompose(const pointField& points) pointIndices[i] = i; } - pointField rotatedPoints = rotDelta_ & points; + const pointField rotatedPoints(rotDelta_ & points); // and one to take the processor group id's. For each direction. // we assign the processors to groups of processors labelled @@ -212,7 +212,7 @@ Foam::labelList Foam::simpleGeomDecomp::decompose pointIndices[i] = i; } - pointField rotatedPoints = rotDelta_ & points; + const pointField rotatedPoints(rotDelta_ & points); // and one to take the processor group id's. For each direction. // we assign the processors to groups of processors labelled diff --git a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C index 6f1b4f036dc97ae32b97c229744bb07052481449..0043b68af4181c536a27ca0a121114238e5fb1aa 100644 --- a/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C +++ b/src/parallel/distributed/distributedTriSurfaceMesh/distributedTriSurfaceMesh.C @@ -63,6 +63,7 @@ namespace Foam }; } + const Foam::NamedEnum<Foam::distributedTriSurfaceMesh::distributionType, 3> Foam::distributedTriSurfaceMesh::distributionTypeNames_;