remove debug info from terminal output for convergence failure

This commit is contained in:
Rohith Nair 2017-06-11 22:32:46 +02:00
parent b0f4960ada
commit 18dfe1783b

View File

@ -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