mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Ensure logging only on first rank.
This commit is contained in:
@@ -291,7 +291,12 @@ namespace Opm {
|
|||||||
{
|
{
|
||||||
// increase restart counter
|
// increase restart counter
|
||||||
if( restarts >= solver_restart_max_ ) {
|
if( restarts >= solver_restart_max_ ) {
|
||||||
OPM_THROW(Opm::NumericalProblem,"Solver failed to converge after " << restarts << " restarts.");
|
const auto msg = std::string("Solver failed to converge after ")
|
||||||
|
+ std::to_string(restarts) + " restarts.";
|
||||||
|
if (solver_verbose_) {
|
||||||
|
OpmLog::error(msg);
|
||||||
|
}
|
||||||
|
OPM_THROW_NOLOG(Opm::NumericalProblem, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
const double newTimeStep = restart_factor_ * dt;
|
const double newTimeStep = restart_factor_ * dt;
|
||||||
|
|||||||
Reference in New Issue
Block a user