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