Log debug messages about wells only on master.

Previously all ranks logged the message and did clutter the
output files quite a bit.
This commit is contained in:
Markus Blatt
2017-09-07 14:14:49 +00:00
parent 0c61f63900
commit 5d1eff5107

View File

@@ -451,9 +451,13 @@ namespace Opm {
} while (it < 15);
if (converged) {
OpmLog::debug("Well equation solution gets converged with " + std::to_string(it) + " iterations");
if ( terminal_output_ ) {
OpmLog::debug("Well equation solution gets converged with " + std::to_string(it) + " iterations");
}
} else {
OpmLog::debug("Well equation solution failed in getting converged with " + std::to_string(it) + " iterations");
if ( terminal_output_ ) {
OpmLog::debug("Well equation solution failed in getting converged with " + std::to_string(it) + " iterations");
}
well_state = well_state0;
updatePrimaryVariables(well_state);
@@ -496,7 +500,9 @@ namespace Opm {
if (nan_residual_found) {
for (const auto& well : report.nan_residual_wells) {
OpmLog::debug("NaN residual found with phase " + well.phase_name + " for well " + well.well_name);
if ( terminal_output_ ) {
OpmLog::debug("NaN residual found with phase " + well.phase_name + " for well " + well.well_name);
}
}
OPM_THROW(Opm::NumericalProblem, "NaN residual found!");
}
@@ -511,7 +517,9 @@ namespace Opm {
too_large_residual_found = grid.comm().max(value);
if (too_large_residual_found) {
for (const auto& well : report.too_large_residual_wells) {
OpmLog::debug("Too large residual found with phase " + well.phase_name + " fow well " + well.well_name);
if ( terminal_output_ ) {
OpmLog::debug("Too large residual found with phase " + well.phase_name + " fow well " + well.well_name);
}
}
OPM_THROW(Opm::NumericalProblem, "Too large residual found!");
}