Commit d394cec0 authored by Henry Weller's avatar Henry Weller
Browse files

meshToMeshTemplates: Updated non-const access to the source patch field

Resolves bug-report http://bugs.openfoam.org/view.php?id=2165
parent 84f50077
......@@ -554,7 +554,7 @@ void Foam::meshToMesh::mapTgtToSrc
GeometricField<Type, fvPatchField, volMesh>& result
) const
{
mapTgtToSrc(field, cop, result.primitiveField());
mapTgtToSrc(field, cop, result.primitiveFieldRef());
const PtrList<AMIPatchToPatchInterpolation>& AMIList = patchAMIs();
......@@ -563,7 +563,7 @@ void Foam::meshToMesh::mapTgtToSrc
label srcPatchi = srcPatchID_[i];
label tgtPatchi = tgtPatchID_[i];
fvPatchField<Type>& srcField = result.boundaryField()[srcPatchi];
fvPatchField<Type>& srcField = result.boundaryFieldRef()[srcPatchi];
const fvPatchField<Type>& tgtField = field.boundaryField()[tgtPatchi];
......@@ -602,7 +602,7 @@ void Foam::meshToMesh::mapTgtToSrc
forAll(cuttingPatches_, i)
{
label patchi = cuttingPatches_[i];
fvPatchField<Type>& pf = result.boundaryField()[patchi];
fvPatchField<Type>& pf = result.boundaryFieldRef()[patchi];
pf == pf.patchInternalField();
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment