mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
warning instead of throwing for nnc between active cells and inactive cells
This commit is contained in:
parent
9c6fea72ac
commit
a83db39cce
@ -676,9 +676,14 @@ private:
|
|||||||
// Silently discard as it is not between active cells
|
// Silently discard as it is not between active cells
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (low == -1 || high == -1)
|
if (low == -1 || high == -1) {
|
||||||
OPM_THROW(std::logic_error, "NNC between active and inactive cells (" <<
|
// Discard the NNC if it is between active cell and inactive cell
|
||||||
low << " -> " << high);
|
std::ostringstream sstr;
|
||||||
|
sstr << "NNC between active and inactive cells ("
|
||||||
|
<< low << " -> " << high << ")";
|
||||||
|
Opm::OpmLog::warning(sstr.str());
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
auto candidate = trans_.find(isId_(low, high));
|
auto candidate = trans_.find(isId_(low, high));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user