use correct region number.

This commit is contained in:
Liu Ming 2016-06-15 16:52:32 +08:00 committed by Andreas Lauser
parent f089b00a30
commit d3ea24f653

View File

@ -390,14 +390,13 @@ namespace Opm
const Grid& G ,
const double grav)
{
int regnum = 0;
for (const auto& r : reg.activeRegions()) {
regnum++ ;
const auto& cells = reg.cells(r);
if (cells.empty())
{
OpmLog::warning("Equilibration region " + std::to_string(regnum)
OpmLog::warning("Equilibration region " + std::to_string(r)
+ " has no active cells");
continue;
}
const int repcell = *cells.begin();