COMP: avoid remove dangling reference (finiteArea)

This commit is contained in:
mattijs
2024-06-18 17:56:45 +01:00
committed by Mark Olesen
parent 7bdc000865
commit 0b9391ff3b
2 changed files with 9 additions and 8 deletions

View File

@ -209,8 +209,8 @@ Foam::edgeInterpolationScheme<Type>::interpolate
label size = vf.boundaryField()[pi].patch().size();
label start = vf.boundaryField()[pi].patch().start();
Field<Type> pOwnVf = vf.boundaryField()[pi].patchInternalField();
Field<Type> pNgbVf = vf.boundaryField()[pi].patchNeighbourField();
Field<Type> pOwnVf(vf.boundaryField()[pi].patchInternalField());
Field<Type> pNgbVf(vf.boundaryField()[pi].patchNeighbourField());
Field<Type>& pSf = sf.boundaryFieldRef()[pi];