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

Resolves bug-report http://bugs.openfoam.org/view.php?id=2165
This commit is contained in:
Henry Weller
2016-08-01 14:28:18 +01:00
parent f0fdd1c203
commit cd2b0ff742

View File

@ -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();
}
}