Merge pull request #1038 from qilicun/equil-check
Rise up a warning if equil region has no active cells.
This commit is contained in:
commit
f3f6170881
@ -37,6 +37,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/TableManager.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/RsvdTable.hpp>
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/RvvdTable.hpp>
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
|
||||
#include <array>
|
||||
#include <cassert>
|
||||
@ -393,6 +394,8 @@ namespace Opm
|
||||
const auto& cells = reg.cells(r);
|
||||
if (cells.empty())
|
||||
{
|
||||
OpmLog::warning("Equilibration region " + std::to_string(r + 1)
|
||||
+ " has no active cells");
|
||||
continue;
|
||||
}
|
||||
const int repcell = *cells.begin();
|
||||
|
Loading…
Reference in New Issue
Block a user