Commit 7d077626 authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

ENH: moveDynamicMesh: add -overwrite option. Fixes #1233.

parent 98e8b7ff
......@@ -162,6 +162,7 @@ int main(int argc, char *argv[])
"Mesh motion and topological mesh changes utility"
);
#include "addOverwriteOption.H"
#include "addRegionOption.H"
argList::addBoolOption
(
......@@ -180,6 +181,10 @@ int main(int argc, char *argv[])
Info<< "Writing VTK files with weights of AMI patches." << nl << endl;
}
const bool overwrite = args.found("overwrite");
const word oldInstance = mesh.pointsInstance();
pimpleControl pimple(mesh);
bool moveMeshOuterCorrectors
......@@ -199,6 +204,15 @@ int main(int argc, char *argv[])
}
}
if (overwrite)
{
mesh.setInstance(oldInstance);
runTime.write();
runTime.printExecutionTime(Info);
break;
}
mesh.checkMesh(true);
if (checkAMI)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment