Merge pull request #1038 from qilicun/equil-check

Rise up a warning if equil region has no active cells.
This commit is contained in:
Atgeirr Flø Rasmussen 2016-06-16 10:02:49 +02:00 committed by GitHub
commit d76cfbed5f

View File

@ -37,6 +37,7 @@
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp> #include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/RsvdTable.hpp> #include <opm/parser/eclipse/EclipseState/Tables/RsvdTable.hpp>
#include <opm/parser/eclipse/EclipseState/Tables/RvvdTable.hpp> #include <opm/parser/eclipse/EclipseState/Tables/RvvdTable.hpp>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <array> #include <array>
#include <cassert> #include <cassert>
@ -393,6 +394,8 @@ namespace Opm
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(r + 1)
+ " has no active cells");
continue; continue;
} }
const int repcell = *cells.begin(); const int repcell = *cells.begin();