Merge pull request #5434 from blattms/bugfix/do-not-count-nan-as-errors

[fix] Do not count experiencing nans as error in PRT file.
This commit is contained in:
Markus Blatt
2024-06-20 16:18:49 +02:00
committed by GitHub

View File

@@ -368,7 +368,7 @@ namespace Opm {
// Throw if any NaN or too large residual found.
if (severity == ConvergenceReport::Severity::NotANumber) {
OPM_THROW(NumericalProblem, "NaN residual found!");
OPM_THROW_PROBLEM(NumericalProblem, "NaN residual found!");
} else if (severity == ConvergenceReport::Severity::TooLarge) {
OPM_THROW_NOLOG(NumericalProblem, "Too large residual found!");
}