BUG: layering: disable mesh movement if extrusion disabled

This commit is contained in:
mattijs
2012-09-14 13:30:59 +01:00
parent 96a5814b08
commit e07309eea3
8 changed files with 316 additions and 38 deletions

View File

@ -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);
}
}