Skip to content
Snippets Groups Projects
Commit 4e579db8 authored by mattijs's avatar mattijs
Browse files

BUG: dry-run-write: avoid overwriting mesh

parent 124a3516
Branches
Tags
No related merge requests found
...@@ -23,8 +23,11 @@ if (args.found("dry-run") || args.found("dry-run-write")) ...@@ -23,8 +23,11 @@ if (args.found("dry-run") || args.found("dry-run-write"))
if (args.found("dry-run-write")) if (args.found("dry-run-write"))
{ {
// Using saWriteNow triggers function objects execute(), write() // Using saWriteNow triggers function objects execute(), write()
meshPtr->setInstance(runTime.constant());
runTime.stopAt(Foam::Time::saWriteNow); runTime.stopAt(Foam::Time::saWriteNow);
// Make sure mesh gets output to the current time (since instance
// no longer constant)
meshPtr().setInstance(runTime.timeName());
} }
else else
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment