Merge pull request #985 from blattms/log-failed-timesteps-on-one

Only log messages about failed timesteps on one processes.
This commit is contained in:
Atgeirr Flø Rasmussen 2016-12-19 10:10:21 +01:00 committed by GitHub
commit 7e2d46b9f0

View File

@ -150,8 +150,14 @@ namespace Opm
} while ( (!converged && (iteration <= maxIter())) || (iteration < minIter()));
if (!converged) {
if (model_->terminalOutputEnabled()) {
OPM_THROW(Opm::NumericalProblem, "Failed to complete a time step within "+std::to_string(maxIter())+" iterations.");
}
else
{
OPM_THROW_NOLOG(Opm::NumericalProblem, "Failed to complete a time step within "+std::to_string(maxIter())+" iterations.");
}
}
// Do model-specific post-step actions.
model_->afterStep(timer, reservoir_state, well_state);