BUG: mapFields: incorrect patches. Fixes #2944.

This commit is contained in:
mattijs 2023-08-30 11:45:47 +01:00 committed by Mark Olesen
parent 8f214f744c
commit 9b0e0b074f

View File

@ -843,15 +843,15 @@ Foam::meshToMesh::mapTgtToSrc
label srcPatchi = srcPatchID_[i]; label srcPatchi = srcPatchID_[i];
label tgtPatchi = tgtPatchID_[i]; label tgtPatchi = tgtPatchID_[i];
if (!srcPatchFields.set(tgtPatchi)) if (!srcPatchFields.set(srcPatchi))
{ {
srcPatchFields.set srcPatchFields.set
( (
srcPatchi, srcPatchi,
fvPatchField<Type>::New fvPatchField<Type>::New
( (
tgtBfld[srcPatchi], tgtBfld[tgtPatchi],
srcMesh.boundary()[tgtPatchi], srcMesh.boundary()[srcPatchi],
DimensionedField<Type, volMesh>::null(), DimensionedField<Type, volMesh>::null(),
directFvPatchFieldMapper directFvPatchFieldMapper
( (