BUG: fieldAverage - read state properties using getDict. Fixes #358

This commit is contained in:
Andrew Heather
2016-12-20 13:09:15 +00:00
parent 0869f832be
commit 953594286f

View File

@ -235,7 +235,7 @@ void Foam::functionObjects::fieldAverage::readAveragingProperties()
if (foundProperty(fieldName)) if (foundProperty(fieldName))
{ {
dictionary fieldDict; dictionary fieldDict;
getProperty(fieldName, fieldDict); getDict(fieldName, fieldDict);
totalIter_[fieldi] = readLabel(fieldDict.lookup("totalIter")); totalIter_[fieldi] = readLabel(fieldDict.lookup("totalIter"));
totalTime_[fieldi] = readScalar(fieldDict.lookup("totalTime")); totalTime_[fieldi] = readScalar(fieldDict.lookup("totalTime"));