mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-29 04:23:48 -06:00
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:
commit
7e2d46b9f0
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user