catch NumericalIssue instead of NumericalProblem

the underlying problem is that the OPM build system does not define a
HAVE_OPM_COMMON macro in config.h.
This commit is contained in:
Andreas Lauser
2018-02-08 12:02:25 +01:00
parent 58a1b7df1f
commit 7f3a9f1f43
10 changed files with 26 additions and 25 deletions

View File

@@ -540,7 +540,7 @@ namespace Opm {
for (const auto& well : report.nan_residual_wells) {
OpmLog::debug("NaN residual found with phase " + well.phase_name + " for well " + well.well_name);
}
OPM_THROW(Opm::NumericalProblem, "NaN residual found!");
OPM_THROW(Opm::NumericalIssue, "NaN residual found!");
}
}
@@ -555,7 +555,7 @@ namespace Opm {
for (const auto& well : report.too_large_residual_wells) {
OpmLog::debug("Too large residual found with phase " + well.phase_name + " fow well " + well.well_name);
}
OPM_THROW(Opm::NumericalProblem, "Too large residual found!");
OPM_THROW(Opm::NumericalIssue, "Too large residual found!");
}
}