Commit 25951c0f authored by Mark Olesen's avatar Mark Olesen
Browse files

COMP: avoid ambiguous construct from tmp - utils/ mesh

parent 5dc01ed6
......@@ -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)
{
......
......@@ -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
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment