From f6f7f8c3d500434a239088c851cd3e2a8ae110aa Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Thu, 8 Dec 2011 15:05:24 +0000 Subject: [PATCH] STYLE: Updated comments in AMI code --- .../AMIInterpolation/AMIInterpolation.C | 26 +++++++++++++------ 1 file changed, 18 insertions(+), 8 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index a9c9113056b..f2f1a764d77 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -693,7 +693,7 @@ Foam::label Foam::AMIInterpolation<SourcePatch, TargetPatch>::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<SourcePatch, TargetPatch>::AMIInterpolation { FatalErrorIn ( - "AMIInterpolation<SourcePatch, TargetPatch>::AMIInterpolation\n" - "(\n" - " const AMIInterpolation<SourcePatch, TargetPatch>&,\n" - " const label,\n" - " const labelList&\n" + "AMIInterpolation<SourcePatch, TargetPatch>::AMIInterpolation" + "(" + " const AMIInterpolation<SourcePatch, TargetPatch>&, " + " const label, " + " const labelList&" ")" ) << "Size mismatch." << nl << "Source patch size:" << fineAMI.srcAddress().size() << nl @@ -1868,7 +1868,12 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::interpolateToTarget { FatalErrorIn ( - "AMIInterpolation::interpolateToTarget(const Field<Type>&) const" + "AMIInterpolation::interpolateToTarget" + "(" + "const UList<Type>&, " + "const CombineOp&, " + "List<Type>&" + ") 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<SourcePatch, TargetPatch>::interpolateToSource { FatalErrorIn ( - "AMIInterpolation::interpolateToSource(const Field<Type>) const" + "AMIInterpolation::interpolateToSource" + "(" + "const UList<Type>&, " + "const CombineOp&, " + "List<Type>&" + ") const" ) << "Supplied field size is not equal to target patch size" << nl << " source patch = " << srcAddress_.size() << nl << " target patch = " << tgtAddress_.size() << nl -- GitLab