ENH: redistributePar: allow time override

This commit is contained in:
mattijs 2014-06-02 15:37:58 +01:00
parent 14edbacd70
commit 04cc2bf911

View file

@ -434,6 +434,9 @@ int main(int argc, char *argv[])
"specify the merge distance relative to the bounding box size "
"(default 1e-6)"
);
// Include explicit constant options, have zero from time range
timeSelector::addOptions();
# include "setRootCase.H"
if (env("FOAM_SIGFPE"))
@ -457,6 +460,9 @@ int main(int argc, char *argv[])
// Make sure we do not use the master-only reading.
regIOobject::fileModificationChecking = regIOobject::timeStamp;
# include "createTime.H"
// Allow override of time
instantList times = timeSelector::selectIfPresent(runTime, args);
runTime.setTime(times[0], 0);
runTime.functionObjects().off();