diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 58fb989e5c..70372fc724 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -1494,7 +1494,7 @@ const forAll(addr, i) { label srcFaceI = addr[i]; - const face& f = srcPatch[tgtFaceI]; + const face& f = srcPatch[srcFaceI]; pointHit ray = f.ray(tgtPoint, n, srcPoints); @@ -1510,7 +1510,7 @@ const forAll(addr, i) { label srcFaceI = addr[i]; - const face& f = srcPatch[tgtFaceI]; + const face& f = srcPatch[srcFaceI]; vector nFace(-srcPatch.faceNormals()[srcFaceI]); nFace += tgtPatch.faceNormals()[tgtFaceI]; diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C index ffe52a4e40..9d33b277a7 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C @@ -993,8 +993,8 @@ Foam::label Foam::cyclicAMIPolyPatch::pointFace { return neighbPatch().AMI().srcPointFace ( - *this, neighbPatch(), + *this, n, faceI, p