Skip to content
Snippets Groups Projects
Commit fe75b519 authored by mattijs's avatar mattijs
Browse files

BUG: FacePostProcessing: internal faces accessing patchID.

parent be57805c
Branches
Tags
No related merge requests found
......@@ -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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment