setFields: Corrected setting of nNonProcPatches

Resolves bug-report https://bugs.openfoam.org/view.php?id=4104
This commit is contained in:
Henry Weller
2024-07-01 09:46:45 +01:00
parent 1391cc9905
commit b366424bda

View File

@ -241,11 +241,11 @@ bool setFaceFieldType
label nNonProcPatches = 0;
forAll(fieldBf, patchi)
{
nNonProcPatches = patchi;
if (isA<processorFvPatch>(mesh.boundary()[patchi]))
{
break;
}
nNonProcPatches = patchi + 1;
}
// Create a copy of the boundary field