BUG: snappyHexMesh: debug shrunk mesh possibly not synchronised

This commit is contained in:
mattijs
2013-08-02 16:05:03 +01:00
parent dfddcad597
commit 85b44b6c42

View File

@ -1605,16 +1605,19 @@ void Foam::autoLayerDriver::shrinkMeshMedialDistance
Info<< "Writing wanted-displacement mesh (possibly illegal) to "
<< meshRefiner_.timeName() << endl;
pointField oldPoints(mesh.points());
meshMover.movePoints
vectorField totalDisp
(
(
mesh.points()
+ (
meshMover.scale().internalField()
* displacement.internalField()
)
)()
);
syncTools::syncPointList
(
mesh,
totalDisp,
minMagSqrEqOp<point>(),
vector(GREAT, GREAT, GREAT)
);
meshMover.movePoints((mesh.points()+totalDisp)());
// Above move will have changed the instance only on the points (which
// is correct).