Bugfix: empty wedge patch in parallel. Zeljko Tukovic
This commit is contained in:
parent
05899eaa9e
commit
01aebe4bf9
1 changed files with 20 additions and 16 deletions
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
|
Reference in a new issue