4 // check -time and -latestTime options
6 if (args.optionFound("time"))
8 Foam::scalar timeValue = args.optionRead<scalar>("time");
10 startTime = Foam::Time::findClosestTimeIndex(Times, timeValue);
11 endTime = startTime + 1;
14 if (args.optionFound("latestTime"))
16 startTime = Times.size() - 1;