diff --git a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C index 5ce595791e..82857f5019 100644 --- a/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C +++ b/src/OpenFOAM/interpolations/patchToPatchInterpolation/PatchToPatchInterpolate.C @@ -54,7 +54,7 @@ PatchToPatchInterpolation::pointInterpolate new Field(toPatch_.nPoints(), Zero) ); - Field& result = tresult(); + Field& result = tresult.ref(); const List& fromPatchLocalFaces = fromPatch_.localFaces(); @@ -118,7 +118,7 @@ PatchToPatchInterpolation::faceInterpolate new Field(toPatch_.size(), Zero) ); - Field& result = tresult(); + Field& result = tresult.ref(); const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();