Reallow logging fatal errors for well convergence on all ranks

This commit is contained in:
Markus Blatt
2017-09-07 14:45:00 +00:00
parent 5d1eff5107
commit a1f960b467

View File

@@ -500,10 +500,8 @@ namespace Opm {
if (nan_residual_found) { if (nan_residual_found) {
for (const auto& well : report.nan_residual_wells) { for (const auto& well : report.nan_residual_wells) {
if ( terminal_output_ ) {
OpmLog::debug("NaN residual found with phase " + well.phase_name + " for well " + well.well_name); OpmLog::debug("NaN residual found with phase " + well.phase_name + " for well " + well.well_name);
} }
}
OPM_THROW(Opm::NumericalProblem, "NaN residual found!"); OPM_THROW(Opm::NumericalProblem, "NaN residual found!");
} }
} }
@@ -517,10 +515,8 @@ namespace Opm {
too_large_residual_found = grid.comm().max(value); too_large_residual_found = grid.comm().max(value);
if (too_large_residual_found) { if (too_large_residual_found) {
for (const auto& well : report.too_large_residual_wells) { for (const auto& well : report.too_large_residual_wells) {
if ( terminal_output_ ) {
OpmLog::debug("Too large residual found with phase " + well.phase_name + " fow well " + well.well_name); OpmLog::debug("Too large residual found with phase " + well.phase_name + " fow well " + well.well_name);
} }
}
OPM_THROW(Opm::NumericalProblem, "Too large residual found!"); OPM_THROW(Opm::NumericalProblem, "Too large residual found!");
} }
} }