mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1233 from nairr/term_output_mod
Multiple problem logging for linear solver failure
This commit is contained in:
@@ -446,9 +446,6 @@ namespace Opm
|
||||
// Check for failure of linear solver.
|
||||
if (!parameters_.ignoreConvergenceFailure_ && !result.converged) {
|
||||
const std::string msg("Convergence failure for linear solver.");
|
||||
if (isIORank_) {
|
||||
OpmLog::problem(msg);
|
||||
}
|
||||
OPM_THROW_NOLOG(LinearSolverProblem, msg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace Opm {
|
||||
}
|
||||
catch (const Opm::LinearSolverProblem& e) {
|
||||
substepReport += solver.failureReport();
|
||||
cause_of_failure = "Linear Solver convergence failure";
|
||||
cause_of_failure = "Linear solver convergence failure";
|
||||
|
||||
detail::logException(e, solver_verbose_);
|
||||
// since linearIterations is < 0 this will restart the solver
|
||||
@@ -370,7 +370,7 @@ namespace Opm {
|
||||
substepTimer.provideTimeStepEstimate( newTimeStep );
|
||||
if( solver_verbose_ ) {
|
||||
std::string msg;
|
||||
msg = cause_of_failure + "\n Timestep chopped to "
|
||||
msg = cause_of_failure + "\nTimestep chopped to "
|
||||
+ std::to_string(unit::convert::to( substepTimer.currentStepLength(), unit::day )) + " days\n";
|
||||
OpmLog::problem(msg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user