mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -451,9 +451,13 @@ namespace Opm {
|
|||||||
} while (it < 15);
|
} while (it < 15);
|
||||||
|
|
||||||
if (converged) {
|
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 {
|
} 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;
|
well_state = well_state0;
|
||||||
updatePrimaryVariables(well_state);
|
updatePrimaryVariables(well_state);
|
||||||
@@ -496,7 +500,9 @@ 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) {
|
||||||
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!");
|
OPM_THROW(Opm::NumericalProblem, "NaN residual found!");
|
||||||
}
|
}
|
||||||
@@ -511,7 +517,9 @@ 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) {
|
||||||
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!");
|
OPM_THROW(Opm::NumericalProblem, "Too large residual found!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user