diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index e1e209858..5b29d5228 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -1639,7 +1639,7 @@ const pointHit ray = f.ray(srcPoint, n, tgtPoints); - if (ray.hit() || ray.eligibleMiss()) + if (ray.hit()) { // srcPoint = ray.rawPoint(); return tgtFacei; diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C index 29e419b88..313a50e42 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C @@ -1138,8 +1138,8 @@ Foam::labelPair Foam::cyclicAMIPolyPatch::pointAMIAndFace const label nbrFacei = neighbPatch().AMIs()[i].srcPointFace ( - *this, neighbPatch(), + *this, ntt, facei, ptt