From c3660b41230091e4e81b8813e236cd76cbf215b4 Mon Sep 17 00:00:00 2001 From: Andrew Heather <> Date: Wed, 14 Jun 2023 12:35:14 +0100 Subject: [PATCH] STYLE: AMI - updated output to show AMI patch names Helps when running/debugging cases with multiple AMI patches Example: AMI: Creating AMI for source:AMI1 and target:AMI2 AMI: Patch source faces: 96 AMI: Patch target faces: 96 AMI: Patch source sum(weights) min:1 max:1 average:1 AMI: Patch target sum(weights) min:1 max:1 average:1 --- .../AMIInterpolation/AMIInterpolation/AMIInterpolation.C | 6 ++---- .../cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 7d797052ae..5a743787fa 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -768,10 +768,8 @@ bool Foam::AMIInterpolation::calculate } Info<< indent - << "AMI: Creating addressing and weights between " - << srcTotalSize << " source faces and " - << tgtTotalSize << " target faces" - << endl; + << "AMI: Patch source faces: " << srcTotalSize << nl + << "AMI: Patch target faces: " << tgtTotalSize << endl; singlePatchProc_ = calcDistribution(srcPatch, tgtPatch); diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C index 5fba5daa5a..89aa2fc668 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C @@ -386,6 +386,9 @@ void Foam::cyclicAMIPolyPatch::resetAMI(const UList& points) const pointField srcPoints(localPoints()); pointField nbrPoints(nbr.localPoints()); + Info<< "AMI: Creating AMI for source:" << name() + << " and target:" << nbr.name() << endl; + if (debug) { const Time& t = boundaryMesh().mesh().time();