[fix] Do not count experiencing nans as error in PRT file.

The simulation will just chop the time step and continue.
Note, that the error count in the PRT file is used by engineers to
decide whether a simulation was successfull. Hence the error count
should not be increased here.
This commit is contained in:
Markus Blatt 2024-06-20 10:40:37 +02:00
parent c262a58ebb
commit 238b7b2980

View File

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