mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: dry-run-write: avoid overwriting mesh
This commit is contained in:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user