diff --git a/opm/autodiff/StandardWellsDense_impl.hpp b/opm/autodiff/StandardWellsDense_impl.hpp index 84d47d00d..295add6ac 100644 --- a/opm/autodiff/StandardWellsDense_impl.hpp +++ b/opm/autodiff/StandardWellsDense_impl.hpp @@ -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);