mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: layering: disable mesh movement if extrusion disabled
This commit is contained in:
@ -571,7 +571,7 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
hitInfo
|
||||
);
|
||||
|
||||
// Start of from current points
|
||||
// Start off from current points
|
||||
newPoints = mesh_.points();
|
||||
|
||||
forAll(hitInfo, i)
|
||||
@ -581,6 +581,17 @@ Foam::labelList Foam::meshRefinement::markFacesOnProblemCells
|
||||
newPoints[meshPoints[i]] = hitInfo[i].hitPoint();
|
||||
}
|
||||
}
|
||||
|
||||
if (debug)
|
||||
{
|
||||
const_cast<Time&>(mesh_.time())++;
|
||||
pointField oldPoints(mesh_.points());
|
||||
mesh_.movePoints(newPoints);
|
||||
Pout<< "Writing newPoints mesh to time " << timeName()
|
||||
<< endl;
|
||||
write(debug, mesh_.time().path()/"newPoints");
|
||||
mesh_.movePoints(oldPoints);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user