Permalink
Browse files

BUG: FacePostProcessing: internal faces accessing patchID.

  • Loading branch information...
1 parent 0721eb3 commit bd1387b7351970aad34edf9203c556154147db8c mattijs committed Nov 4, 2011
@@ -326,15 +326,14 @@ Foam::FacePostProcessing<CloudType>::FacePostProcessing
forAll(fz, j)
{
label faceI = fz[j];
- label bFaceI = faceI - owner.mesh().nInternalFaces();
- label patchI = pbm.patchID()[bFaceI];
-
- if (patchI == -1)
+ if (faceI < owner.mesh().nInternalFaces())
{
totArea += magSf[fz[j]];
}
else
{
+ label bFaceI = faceI - owner.mesh().nInternalFaces();
+ label patchI = pbm.patchID()[bFaceI];
const polyPatch& pp = pbm[patchI];
if

0 comments on commit bd1387b

Please sign in to comment.