PatchToPatchInterpolate: Update to use the tmp ref() non-const access function

Resolves bug-report http://bugs.openfoam.org/view.php?id=2248
This commit is contained in:
Henry Weller
2016-09-16 14:49:50 +01:00
parent 7cc35abc3a
commit 899fe81eba

View File

@ -54,7 +54,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::pointInterpolate
new Field<Type>(toPatch_.nPoints(), Zero)
);
Field<Type>& result = tresult();
Field<Type>& result = tresult.ref();
const List<typename FromPatch::FaceType>& fromPatchLocalFaces =
fromPatch_.localFaces();
@ -118,7 +118,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::faceInterpolate
new Field<Type>(toPatch_.size(), Zero)
);
Field<Type>& result = tresult();
Field<Type>& result = tresult.ref();
const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();