Bugfix: addes support for dealing with zero-sized patch fields (immersed boundary)

This commit is contained in:
Hrvoje Jasak 2019-07-04 11:27:14 +01:00
parent 2a83c710b9
commit 7bc0c8b3d8

View file

@ -158,9 +158,17 @@ fvFieldDecomposer::decomposeField
const label patchStart = field.mesh().boundaryMesh()[patchI].start(); const label patchStart = field.mesh().boundaryMesh()[patchI].start();
forAll (p, i) // Bugfix
// Special patches soch as overset and immersed boundary have
// their faces and values in a separate list; the list of
// values does not correspond to faces. Skip such patches.
// HJ, 4/Jul/2019
if (p.size() == field.mesh().boundaryMesh()[patchI].size())
{ {
allFaceField[patchStart + i] = p[i]; forAll (p, i)
{
allFaceField[patchStart + i] = p[i];
}
} }
} }