mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-18 21:43:27 -06:00
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
d76cfbed5f
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user