firstTime always chooses constant

This commit is contained in:
mattijs
2009-09-03 12:29:49 +01:00
parent 0aab704321
commit 4f4d1393fa

View File

@ -115,7 +115,14 @@ void Foam::Time::setControls()
{
if (timeDirs.size())
{
startTime_ = timeDirs[0].value();
if (timeDirs[0].name() == constant() && timeDirs.size() >= 2)
{
startTime_ = timeDirs[1].value();
}
else
{
startTime_ = timeDirs[0].value();
}
}
}
else if (startFrom == "latestTime")