mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1213 from nairr/terminal_output
remove debug info from convergence failure terminal output
This commit is contained in:
commit
d284a657cf
@ -242,9 +242,23 @@ namespace Opm {
|
|||||||
OpmLog::note("Overall linear iterations used: " + std::to_string(substepReport.total_linear_iterations));
|
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();
|
||||||
|
cause_of_failure = "Linear Solver convergence failure";
|
||||||
|
|
||||||
|
detail::logException(e, solver_verbose_);
|
||||||
|
// since linearIterations is < 0 this will restart the solver
|
||||||
|
}
|
||||||
catch (const Opm::NumericalProblem& e) {
|
catch (const Opm::NumericalProblem& e) {
|
||||||
substepReport += solver.failureReport();
|
substepReport += solver.failureReport();
|
||||||
cause_of_failure = e.what();
|
cause_of_failure = "Solver convergence failure - Numerical problem encountered";
|
||||||
|
|
||||||
detail::logException(e, solver_verbose_);
|
detail::logException(e, solver_verbose_);
|
||||||
// since linearIterations is < 0 this will restart the solver
|
// since linearIterations is < 0 this will restart the solver
|
||||||
@ -357,7 +371,7 @@ namespace Opm {
|
|||||||
if( solver_verbose_ ) {
|
if( solver_verbose_ ) {
|
||||||
std::string msg;
|
std::string msg;
|
||||||
msg = cause_of_failure + "\n Timestep chopped to "
|
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);
|
OpmLog::problem(msg);
|
||||||
}
|
}
|
||||||
// reset states
|
// reset states
|
||||||
|
Loading…
Reference in New Issue
Block a user