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:
parent
62dd439d9c
commit
cf54a3dc2a
1 changed files with 3 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue