mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: FacePostProcessing: internal faces accessing patchID.
This commit is contained in:
@ -326,15 +326,14 @@ Foam::FacePostProcessing<CloudType>::FacePostProcessing
|
|||||||
forAll(fz, j)
|
forAll(fz, j)
|
||||||
{
|
{
|
||||||
label faceI = fz[j];
|
label faceI = fz[j];
|
||||||
label bFaceI = faceI - owner.mesh().nInternalFaces();
|
if (faceI < owner.mesh().nInternalFaces())
|
||||||
label patchI = pbm.patchID()[bFaceI];
|
|
||||||
|
|
||||||
if (patchI == -1)
|
|
||||||
{
|
{
|
||||||
totArea += magSf[fz[j]];
|
totArea += magSf[fz[j]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
label bFaceI = faceI - owner.mesh().nInternalFaces();
|
||||||
|
label patchI = pbm.patchID()[bFaceI];
|
||||||
const polyPatch& pp = pbm[patchI];
|
const polyPatch& pp = pbm[patchI];
|
||||||
|
|
||||||
if
|
if
|
||||||
|
|||||||
Reference in New Issue
Block a user