mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user