STYLE: adjust AMI information (issue #860)

- use "min:xxx" for consistency with other outputs

- adjust decompositionInformation as well
This commit is contained in:
Mark Olesen 2018-06-13 15:26:59 +02:00
parent a1f5f33091
commit f0a92b11d1
4 changed files with 14 additions and 13 deletions

View File

@ -63,6 +63,6 @@ alpha1Min/Min\(alpha1\) =/Min(alpha1) =
alpha1Max/Max\(alpha1\) =/Max(alpha1) =
# AMI
AMIMin/AMI: Patch source sum/min =
AMIMax/AMI: Patch source sum/max =
AMIAvg/AMI: Patch source sum/average =
AMIMin/AMI: Patch source sum/min:
AMIMax/AMI: Patch source sum/max:
AMIAvg/AMI: Patch source sum/average:

View File

@ -98,7 +98,7 @@ void Foam::cyclicACMIPolyPatch::resetAMI
const_cast<AMIPatchToPatchInterpolation&>(this->AMI());
// Output some stats. AMIInterpolation will have already output the
// average weights ("sum(weights) min = 1 max = 1 average = 1")
// average weights ("sum(weights) min:1 max:1 average:1")
{
const scalarField& wghtsSum = AMI.srcWeightsSum();

View File

@ -561,15 +561,15 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
Info<< indent
<< "AMI: Patch " << name()
<< " sum(weights)"
<< " min = " << gMin(srcWghtSum)
<< " max = " << gMax(srcWghtSum)
<< " average = " << gAverage(srcWghtSum) << nl;
<< " min:" << gMin(srcWghtSum)
<< " max:" << gMax(srcWghtSum)
<< " average:" << gAverage(srcWghtSum) << nl;
Info<< indent
<< "AMI: Patch " << neighbPatch().name()
<< " sum(weights)"
<< " min = " << gMin(tgtWghtSum)
<< " max = " << gMax(tgtWghtSum)
<< " average = " << gAverage(tgtWghtSum) << nl;
<< " min:" << gMin(tgtWghtSum)
<< " max:" << gMax(tgtWghtSum)
<< " average:" << gAverage(tgtWghtSum) << nl;
}
}
}

View File

@ -217,11 +217,11 @@ void Foam::decompositionInformation::printAll(Ostream& os) const
// * * * * * * * * * * * * * * * Ostream Operator * * * * * * * * * * * * * //
Foam::Ostream& Foam::decompositionInformation::stats::print(Ostream& os) const
{
os << "max/median/min: "
<< this->max << " / " << this->median << " / " << this->min;
os << "min:" << this->min
<< " max:" << this->max
<< " median:" << this->median;
if (this->median)
{
@ -233,4 +233,5 @@ Foam::Ostream& Foam::decompositionInformation::stats::print(Ostream& os) const
return os;
}
// ************************************************************************* //