mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
use correct region number.
This commit is contained in:
parent
a920b43e21
commit
a9c2128daa
@ -390,14 +390,13 @@ namespace Opm
|
|||||||
const Grid& G ,
|
const Grid& G ,
|
||||||
const double grav)
|
const double grav)
|
||||||
{
|
{
|
||||||
int regnum = 0;
|
|
||||||
for (const auto& r : reg.activeRegions()) {
|
for (const auto& r : reg.activeRegions()) {
|
||||||
regnum++ ;
|
|
||||||
const auto& cells = reg.cells(r);
|
const auto& cells = reg.cells(r);
|
||||||
if (cells.empty())
|
if (cells.empty())
|
||||||
{
|
{
|
||||||
OpmLog::warning("Equilibration region " + std::to_string(regnum)
|
OpmLog::warning("Equilibration region " + std::to_string(r)
|
||||||
+ " has no active cells");
|
+ " has no active cells");
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
const int repcell = *cells.begin();
|
const int repcell = *cells.begin();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user