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,7 +150,13 @@ namespace Opm
|
||||
} while ( (!converged && (iteration <= maxIter())) || (iteration < minIter()));
|
||||
|
||||
if (!converged) {
|
||||
OPM_THROW(Opm::NumericalProblem, "Failed to complete a time step within "+std::to_string(maxIter())+" iterations.");
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user