mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: avoid ambiguous construct from tmp - utils/ mesh
This commit is contained in:
@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user