STYLE: directMappedVelocityFluxFixedValueFvPatchField.H : correct comment
[OpenFOAM-1.7.x.git] / src / OpenFOAM / 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     }