db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
20 lines
651 B
C
20 lines
651 B
C
instantList sourceTimes = runTimeSource.times();
|
|
label sourceTimeIndex = runTimeSource.timeIndex();
|
|
if (args.options().found("sourceTime"))
|
|
{
|
|
if ((args.options()["sourceTime"]) == "latestTime")
|
|
{
|
|
sourceTimeIndex = sourceTimes.size() - 1;
|
|
}
|
|
else
|
|
{
|
|
scalar sourceTime =
|
|
readScalar(IStringStream(args.options()["sourceTime"])());
|
|
sourceTimeIndex = getTimeIndex(sourceTimes, sourceTime);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
scalar sourceTime = runTimeTarget.time().value();
|
|
sourceTimeIndex = getTimeIndex(sourceTimes, sourceTime);
|
|
}
|