pimpleNoLoopControl: added moveMeshOuterCorrectors

This commit is contained in:
Henry Weller
2022-08-07 14:54:00 +01:00
parent 4b2c27b709
commit 73ad954f78
19 changed files with 42 additions and 44 deletions

View File

@ -93,11 +93,6 @@ int main(int argc, char *argv[])
pimpleControl pimple(mesh);
bool moveMeshOuterCorrectors
(
pimple.dict().lookupOrDefault<Switch>("moveMeshOuterCorrectors", false)
);
while (runTime.run())
{
// Update the mesh for topology change, mesh to mesh mapping
@ -109,7 +104,7 @@ int main(int argc, char *argv[])
while (pimple.loop())
{
if (pimple.firstPimpleIter() || moveMeshOuterCorrectors)
if (pimple.firstPimpleIter() || pimple.moveMeshOuterCorrectors())
{
// Move the mesh
mesh.move();