From 78e7952bfce0ffc8bda27601ec208e180a055764 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 16 Sep 2016 14:49:50 +0100 Subject: [PATCH] PatchToPatchInterpolate: Update to use the tmp ref() non-const access function Resolves bug-report http://bugs.openfoam.org/view.php?id=2248 --- .../patchToPatchInterpolation/PatchToPatchInterpolate.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();