Files
openfoam/src/OpenFOAM/include/checkTimeOption.H
Mark Olesen 3cdc8ca03c static label Time::findClosestTimeIndex(const instantList&, const scalar)
- avoid code duplication in vtkPV3Foam.C and checkTimeOption.H
  - can also be used in Time::findClosestTime(), but didn't touch that
2008-07-25 15:37:38 +02:00

8 lines
229 B
C

if (args.options().found("time"))
{
scalar timeValue(readScalar(IStringStream(args.options()["time"])()));
startTime = Time::findClosestTimeIndex(Times, timeValue);
endTime = startTime + 1;
}