diff --git a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C b/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C index 2a43bb7ba2..75f9252ef2 100644 --- a/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C +++ b/src/sampling/meshToMeshInterpolation/meshToMeshNew/calcMethod/direct/directMethod.C @@ -44,7 +44,12 @@ bool Foam::directMethod::intersect const label tgtCellI ) const { - return tgt_.pointInCell(src_.cellCentres()[srcCellI], tgtCellI); + return tgt_.pointInCell + ( + src_.cellCentres()[srcCellI], + tgtCellI, + polyMesh::FACEPLANES + ); } @@ -191,7 +196,15 @@ void Foam::directMethod::appendToDirectSeeds { label tgtI = tgtNbr[j]; - if (tgt_.pointInCell(srcCentre[srcI], tgtI)) + if + ( + tgt_.pointInCell + ( + srcCentre[srcI], + tgtI, + polyMesh::FACEPLANES + ) + ) { // new match - append to lists found = true;