Skip to content
Snippets Groups Projects
Commit 6ee70e4b authored by Andrew Heather's avatar Andrew Heather
Browse files

BUG: surfaceInterpolate function object - corrected evaluation. Foxes #335

parent 482f8cee
Branches
Tags
No related merge requests found
...@@ -50,21 +50,20 @@ void Foam::functionObjects::surfaceInterpolate::interpolateFields() ...@@ -50,21 +50,20 @@ void Foam::functionObjects::surfaceInterpolate::interpolateFields()
if (fieldMap.found(fld.name())) if (fieldMap.found(fld.name()))
{ {
//const word sName = "interpolate(" + fld.name() + ')'; // const word sName = "interpolate(" + fld.name() + ')';
word& sName = fieldMap[fld.name()]; word& sName = fieldMap[fld.name()];
if (obr_.found(sName)) if (obr_.found(sName))
{ {
Log << " surface field " << sName << " already exists" Log << " updating field " << sName << endl;
<< endl;
} }
else else
{ {
store(sName, linearInterpolate(fld)); Log << " interpolating " << fld.name() << " to create "
Log << " interpolated " << fld.name() << " to create "
<< sName << endl; << sName << endl;
} }
store(sName, linearInterpolate(fld));
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment