Bugfix: empty wedge patch in parallel. Zeljko Tukovic

This commit is contained in:
Hrvoje Jasak 2017-05-25 14:40:47 +01:00
parent 05899eaa9e
commit 01aebe4bf9

View file

@ -201,6 +201,9 @@ WedgePointPatchField
(
const Pstream::commsTypes commsType
)
{
// ZT, 26/02/2017: Size of the patch could be zero in parallel runs
if (!this->patch().meshPoints().empty())
{
// In order to ensure that the wedge patch is always flat, take the
// normal vector from the first point
@ -221,6 +224,7 @@ WedgePointPatchField
iF[meshPoints[pointI]] = values[pointI];
}
}
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //