This commit is contained in:
Mark Olesen
2016-12-20 15:43:51 +01:00
3 changed files with 8 additions and 9 deletions

View File

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

View File

@ -50,21 +50,20 @@ void Foam::functionObjects::surfaceInterpolate::interpolateFields()
if (fieldMap.found(fld.name()))
{
//const word sName = "interpolate(" + fld.name() + ')';
// const word sName = "interpolate(" + fld.name() + ')';
word& sName = fieldMap[fld.name()];
if (obr_.found(sName))
{
Log << " surface field " << sName << " already exists"
<< endl;
Log << " updating field " << sName << endl;
}
else
{
store(sName, linearInterpolate(fld));
Log << " interpolated " << fld.name() << " to create "
Log << " interpolating " << fld.name() << " to create "
<< sName << endl;
}
store(sName, linearInterpolate(fld));
}
}
}