From 63d07c9ef80b2ed97ff527d50c394b901324671d Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Fri, 8 Jun 2018 13:43:40 +0200 Subject: [PATCH] ENH: adjust AMI information for better log processing (issue #860) - now report as "min = XX max = YY average = ZZ" instead of as "min/max/average = XX, YY, ZZ" this makes it easier to parse any particular value (eg, with foamLog) --- bin/tools/foamLog.db | 4 +++- .../AMIInterpolation/AMIInterpolation.C | 8 ++++---- .../cyclicACMIPolyPatch/cyclicACMIPolyPatch.C | 2 +- .../cyclicPeriodicAMIPolyPatch.C | 20 +++++++++---------- 4 files changed, 18 insertions(+), 16 deletions(-) diff --git a/bin/tools/foamLog.db b/bin/tools/foamLog.db index ed9f55c5ab..f97c8f27b3 100644 --- a/bin/tools/foamLog.db +++ b/bin/tools/foamLog.db @@ -63,4 +63,6 @@ alpha1Min/Min\(alpha1\) =/Min(alpha1) = alpha1Max/Max\(alpha1\) =/Max(alpha1) = # AMI -AMIMin/AMI: Patch source sum/average = +AMIMin/AMI: Patch source sum/min = +AMIMax/AMI: Patch source sum/max = +AMIAvg/AMI: Patch source sum/average = diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index ae79db7a64..c7634f2f05 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -223,10 +223,10 @@ void Foam::AMIInterpolation::normaliseWeights { Info<< indent << "AMI: Patch " << patchName - << " sum(weights) min/max/average = " - << gMin(wghtSum) << ", " - << gMax(wghtSum) << ", " - << gAverage(wghtSum) << endl; + << " sum(weights)" + << " min = " << gMin(wghtSum) + << " max = " << gMax(wghtSum) + << " average = " << gAverage(wghtSum) << nl; const label nLow = returnReduce(nLowWeight, sumOp