diff --git a/src/functionObjects/field/surfaceInterpolate/surfaceInterpolateTemplates.C b/src/functionObjects/field/surfaceInterpolate/surfaceInterpolateTemplates.C index 8aa1aed42d525309115ce2a3867341ea54b4f75b..4d845bf535f52bbb320f96aabc468f9a5cab9252 100644 --- a/src/functionObjects/field/surfaceInterpolate/surfaceInterpolateTemplates.C +++ b/src/functionObjects/field/surfaceInterpolate/surfaceInterpolateTemplates.C @@ -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)); } } }