Merge pull request #1744 from GitPaean/warning_nnc_inactive_active

warning instead of throwing for nnc between active cells and inactive cells
This commit is contained in:
Atgeirr Flø Rasmussen 2019-03-05 14:01:34 +01:00 committed by GitHub
commit ec408ed6da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -676,9 +676,14 @@ private:
// Silently discard as it is not between active cells
continue;
if (low == -1 || high == -1)
OPM_THROW(std::logic_error, "NNC between active and inactive cells (" <<
low << " -> " << high);
if (low == -1 || high == -1) {
// Discard the NNC if it is between active cell and inactive cell
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));