setFields: Corrected setting of nNonProcPatches
Resolves bug-report https://bugs.openfoam.org/view.php?id=4104
This commit is contained in:
@ -241,11 +241,11 @@ bool setFaceFieldType
|
|||||||
label nNonProcPatches = 0;
|
label nNonProcPatches = 0;
|
||||||
forAll(fieldBf, patchi)
|
forAll(fieldBf, patchi)
|
||||||
{
|
{
|
||||||
nNonProcPatches = patchi;
|
|
||||||
if (isA<processorFvPatch>(mesh.boundary()[patchi]))
|
if (isA<processorFvPatch>(mesh.boundary()[patchi]))
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
nNonProcPatches = patchi + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a copy of the boundary field
|
// Create a copy of the boundary field
|
||||||
|
|||||||
Reference in New Issue
Block a user