mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -54,7 +54,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::pointInterpolate
|
|||||||
new Field<Type>(toPatch_.nPoints(), Zero)
|
new Field<Type>(toPatch_.nPoints(), Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
Field<Type>& result = tresult();
|
Field<Type>& result = tresult.ref();
|
||||||
|
|
||||||
const List<typename FromPatch::FaceType>& fromPatchLocalFaces =
|
const List<typename FromPatch::FaceType>& fromPatchLocalFaces =
|
||||||
fromPatch_.localFaces();
|
fromPatch_.localFaces();
|
||||||
@ -118,7 +118,7 @@ PatchToPatchInterpolation<FromPatch, ToPatch>::faceInterpolate
|
|||||||
new Field<Type>(toPatch_.size(), Zero)
|
new Field<Type>(toPatch_.size(), Zero)
|
||||||
);
|
);
|
||||||
|
|
||||||
Field<Type>& result = tresult();
|
Field<Type>& result = tresult.ref();
|
||||||
|
|
||||||
const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
|
const labelListList& fromPatchFaceFaces = fromPatch_.faceFaces();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user