diff --git a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C index 2ca4c85b7445c1149ab6e3d6e98def92ee516067..2b43b31ce38c1b9f4f8f476cdadc4834d97d8cef 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C +++ b/src/OpenFOAM/meshes/polyMesh/polyPatches/constraint/processor/processorPolyPatch.C @@ -273,10 +273,10 @@ void Foam::processorPolyPatch::calcGeometry(PstreamBuffers& pBufs) label vertI = 0; - forAll(faceCentres(), facei) + forAll(faceCentres(), facej) { - const point& c0 = neighbFaceCentres_[facei]; - const point& c1 = faceCentres()[facei]; + const point& c0 = neighbFaceCentres_[facej]; + const point& c1 = faceCentres()[facej]; writeOBJ(ccStr, c0, c1, vertI); }