Merge pull request #1168 from nairr/term_output_mod

Logging of multiple problems/warnings
This commit is contained in:
Atgeirr Flø Rasmussen
2017-06-07 15:47:34 +02:00
committed by GitHub
2 changed files with 9 additions and 9 deletions

View File

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