Merge pull request #1268 from blattms/log-wells-debug-messages-only-on-master

Log debug messages about wells only on master.
This commit is contained in:
Atgeirr Flø Rasmussen 2017-09-21 10:33:04 +02:00 committed by GitHub
commit c1024ce2d1

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);