ENH: provide Time::NewGlobalTime factory methods (#3007)

- avoids clutter of argList::envGlobalPath() ...

ENH: allow temporary overwriting of output writeFormat

- allows switching for particular output routines

COMP: explicitly use TimePaths methods with Time

- this simplifies any overloading done at a later stage
This commit is contained in:
Mark Olesen
2023-10-27 13:15:12 +02:00
parent 07dcdefa02
commit 269be2f4ea
16 changed files with 317 additions and 163 deletions

View File

@ -454,7 +454,7 @@ void Foam::faMeshReconstructor::createMesh()
const Time& runTime = procMesh_.thisDb().time();
// Time for non-parallel case (w/o functionObjects or libs)
serialRunTime_ = Time::New(runTime.globalPath().toAbsolute());
serialRunTime_ = Time::NewGlobalTime(runTime);
// Trivial polyMesh only containing points and faces.