From cb8260877985779b973107cdb8b74ff754cd7f3a Mon Sep 17 00:00:00 2001 From: Liu Ming Date: Wed, 15 Jun 2016 15:40:38 +0800 Subject: [PATCH] Rise up a warning if equil region has no active cells. --- opm/core/simulator/initStateEquil.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opm/core/simulator/initStateEquil.hpp b/opm/core/simulator/initStateEquil.hpp index 2b4b02b1..bff1813c 100644 --- a/opm/core/simulator/initStateEquil.hpp +++ b/opm/core/simulator/initStateEquil.hpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -389,11 +390,14 @@ 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()) { - continue; + OpmLog::warning("Equilibration region " + std::to_string(regnum) + + " has no active cells"); } const int repcell = *cells.begin();