mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- avoid code duplication in vtkPV3Foam.C and checkTimeOption.H - can also be used in Time::findClosestTime(), but didn't touch that
8 lines
229 B
C
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;
|
|
}
|