Commit 501662eb authored by mattijs's avatar mattijs Committed by Andrew Heather
Browse files

BUG: dry-run-write: avoid overwriting mesh

parent 8928ac54
......@@ -23,8 +23,11 @@ if (args.found("dry-run") || args.found("dry-run-write"))
if (args.found("dry-run-write"))
{
// Using saWriteNow triggers function objects execute(), write()
meshPtr->setInstance(runTime.constant());
runTime.stopAt(Foam::Time::saWriteNow);
// Make sure mesh gets output to the current time (since instance
// no longer constant)
meshPtr().setInstance(runTime.timeName());
}
else
{
......
Supports Markdown
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