BUG: bad indexing in regionSizeDistribution function object (closes #888)

This commit is contained in:
Mark Olesen
2018-06-20 13:51:30 +02:00
parent 12e2142db8
commit f15be4d0b0

View File

@ -581,8 +581,9 @@ bool Foam::functionObjects::regionSizeDistribution::write()
<< token::TAB << "Volume(mesh)" << token::TAB << "Volume(mesh)"
<< token::TAB << "Volume(" << alpha.name() << "):" << token::TAB << "Volume(" << alpha.name() << "):"
<< endl; << endl;
for (const label regioni : patchRegions) forAllConstIters(patchRegions, iter)
{ {
const label regioni = iter.key();
Info<< " " << token::TAB << regioni Info<< " " << token::TAB << regioni
<< token::TAB << allRegionVolume[regioni] << token::TAB << allRegionVolume[regioni]
<< token::TAB << allRegionAlphaVolume[regioni] << endl; << token::TAB << allRegionAlphaVolume[regioni] << endl;