mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user