mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-28 16:04:23 -06:00
remove debug info from terminal output for convergence failure
This commit is contained in:
parent
b0f4960ada
commit
18dfe1783b
@ -242,9 +242,21 @@ namespace Opm {
|
||||
OpmLog::note("Overall linear iterations used: " + std::to_string(substepReport.total_linear_iterations));
|
||||
}
|
||||
}
|
||||
catch (const Opm::TooManyIterations& e) {
|
||||
substepReport += solver.failureReport();
|
||||
cause_of_failure = "Solver convergence failure - Iteration limit reached";
|
||||
|
||||
detail::logException(e, solver_verbose_);
|
||||
// since linearIterations is < 0 this will restart the solver
|
||||
}
|
||||
catch (const Opm::LinearSolverProblem& e) {
|
||||
substepReport += solver.failureReport();
|
||||
|
||||
detail::logException(e, solver_verbose_);
|
||||
// since linearIterations is < 0 this will restart the solver
|
||||
}
|
||||
catch (const Opm::NumericalProblem& e) {
|
||||
substepReport += solver.failureReport();
|
||||
cause_of_failure = e.what();
|
||||
|
||||
detail::logException(e, solver_verbose_);
|
||||
// since linearIterations is < 0 this will restart the solver
|
||||
@ -357,7 +369,7 @@ namespace Opm {
|
||||
if( solver_verbose_ ) {
|
||||
std::string msg;
|
||||
msg = cause_of_failure + "\n Timestep chopped to "
|
||||
+ std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days.\n";
|
||||
+ std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days\n";
|
||||
OpmLog::problem(msg);
|
||||
}
|
||||
// reset states
|
||||
|
Loading…
Reference in New Issue
Block a user