Ensure logging only on first rank.
This commit is contained in:
parent
f4586f5380
commit
8e8b624d4c
@ -291,7 +291,12 @@ namespace Opm {
|
||||
{
|
||||
// increase restart counter
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user