This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/src/OpenFOAM/include/checkTimeOption.H

8 lines
229 B
C
Raw Normal View History

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