Report patch name instead of index in debug
[foam-extend-3.2.git] / src / foam / include / checkTimeOption.H
blob64ef62440f0b18dda6d70dd9395ef6d0f054031a
1 //
2 // checkTimeOption.H
3 // ~~~~~~~~~~~~~~~~~
4 // check -time and -latestTime options
6     if (args.optionFound("time"))
7     {
8         Foam::scalar timeValue = args.optionRead<scalar>("time");
10         startTime = Foam::Time::findClosestTimeIndex(Times, timeValue);
11         endTime = startTime + 1;
12     }
14     if (args.optionFound("latestTime"))
15     {
16         startTime = Times.size() - 1;
17     }