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) = alpha1Max/Max\(alpha1\) =/Max(alpha1) =
# AMI # AMI
AMIMin/AMI: Patch source sum/min = AMIMin/AMI: Patch source sum/min:
AMIMax/AMI: Patch source sum/max = AMIMax/AMI: Patch source sum/max:
AMIAvg/AMI: Patch source sum/average = AMIAvg/AMI: Patch source sum/average:

View File

@ -98,7 +98,7 @@ void Foam::cyclicACMIPolyPatch::resetAMI
const_cast<AMIPatchToPatchInterpolation&>(this->AMI()); const_cast<AMIPatchToPatchInterpolation&>(this->AMI());
// Output some stats. AMIInterpolation will have already output the // 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(); const scalarField& wghtsSum = AMI.srcWeightsSum();

View File

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

View File

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