BUG: Function objects - updated to enable user time emtries, e.g. if using engineTime. Fixes #437

This commit is contained in:
Andrew Heather
2017-03-21 13:32:55 +00:00
parent 6ebaa63d1c
commit 69bc13f300
12 changed files with 53 additions and 30 deletions

View File

@ -126,7 +126,8 @@ void Foam::timeControl::read(const dictionary& dict)
case ocCpuTime:
case ocAdjustableRunTime:
{
interval_ = readScalar(dict.lookup(intervalName));
const scalar userTime = readScalar(dict.lookup(intervalName));
interval_ = time_.userTimeToTime(userTime);
break;
}