diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index a9c9113056..f2f1a764d7 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -693,7 +693,7 @@ Foam::label Foam::AMIInterpolation::findTargetFace const pointField& srcPts = srcPatch.points(); const face& srcFace = srcPatch[srcFaceI]; const point& srcPt = srcFace.centre(srcPts); - const scalar srcFaceArea = srcFace.mag(srcPts); + const scalar srcFaceArea = srcMagSf_[srcFaceI]; // pointIndexHit sample = treePtr_->findNearest(srcPt, sqr(0.1*bb.mag())); pointIndexHit sample = treePtr_->findNearest(srcPt, 10.0*srcFaceArea); @@ -1611,11 +1611,11 @@ Foam::AMIInterpolation::AMIInterpolation { FatalErrorIn ( - "AMIInterpolation::AMIInterpolation\n" - "(\n" - " const AMIInterpolation&,\n" - " const label,\n" - " const labelList&\n" + "AMIInterpolation::AMIInterpolation" + "(" + " const AMIInterpolation&, " + " const label, " + " const labelList&" ")" ) << "Size mismatch." << nl << "Source patch size:" << fineAMI.srcAddress().size() << nl @@ -1868,7 +1868,12 @@ void Foam::AMIInterpolation::interpolateToTarget { FatalErrorIn ( - "AMIInterpolation::interpolateToTarget(const Field&) const" + "AMIInterpolation::interpolateToTarget" + "(" + "const UList&, " + "const CombineOp&, " + "List&" + ") const" ) << "Supplied field size is not equal to source patch size" << nl << " source patch = " << srcAddress_.size() << nl << " target patch = " << tgtAddress_.size() << nl @@ -1925,7 +1930,12 @@ void Foam::AMIInterpolation::interpolateToSource { FatalErrorIn ( - "AMIInterpolation::interpolateToSource(const Field) const" + "AMIInterpolation::interpolateToSource" + "(" + "const UList&, " + "const CombineOp&, " + "List&" + ") const" ) << "Supplied field size is not equal to target patch size" << nl << " source patch = " << srcAddress_.size() << nl << " target patch = " << tgtAddress_.size() << nl