mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: redistributePar: allow time override
This commit is contained in:
@ -434,6 +434,9 @@ int main(int argc, char *argv[])
|
|||||||
"specify the merge distance relative to the bounding box size "
|
"specify the merge distance relative to the bounding box size "
|
||||||
"(default 1e-6)"
|
"(default 1e-6)"
|
||||||
);
|
);
|
||||||
|
// Include explicit constant options, have zero from time range
|
||||||
|
timeSelector::addOptions();
|
||||||
|
|
||||||
# include "setRootCase.H"
|
# include "setRootCase.H"
|
||||||
|
|
||||||
if (env("FOAM_SIGFPE"))
|
if (env("FOAM_SIGFPE"))
|
||||||
@ -457,6 +460,9 @@ int main(int argc, char *argv[])
|
|||||||
// Make sure we do not use the master-only reading.
|
// Make sure we do not use the master-only reading.
|
||||||
regIOobject::fileModificationChecking = regIOobject::timeStamp;
|
regIOobject::fileModificationChecking = regIOobject::timeStamp;
|
||||||
# include "createTime.H"
|
# include "createTime.H"
|
||||||
|
// Allow override of time
|
||||||
|
instantList times = timeSelector::selectIfPresent(runTime, args);
|
||||||
|
runTime.setTime(times[0], 0);
|
||||||
|
|
||||||
runTime.functionObjects().off();
|
runTime.functionObjects().off();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user