mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #1168 from nairr/term_output_mod
Logging of multiple problems/warnings
This commit is contained in:
@@ -162,11 +162,8 @@ namespace Opm
|
||||
if (!converged) {
|
||||
failureReport_ += report;
|
||||
|
||||
std::string msg = "Failed to complete a time step within " + std::to_string(maxIter()) + " iterations.";
|
||||
if (model_->terminalOutputEnabled()) {
|
||||
OpmLog::problem(msg);
|
||||
}
|
||||
OPM_THROW_NOLOG(Opm::NumericalProblem, msg);
|
||||
std::string msg = "Solver convergence failure - Failed to complete a time step within " + std::to_string(maxIter()) + " iterations.";
|
||||
OPM_THROW_NOLOG(Opm::TooManyIterations, msg);
|
||||
}
|
||||
|
||||
// Do model-specific post-step actions.
|
||||
|
||||
Reference in New Issue
Block a user