From 85bfa13c467ec074cf8811f7a33a00ea0e7ddeda Mon Sep 17 00:00:00 2001 From: hnil Date: Fri, 4 Nov 2022 16:26:12 +0100 Subject: [PATCH] change std:cout to OPM::debug --- opm/simulators/wells/MultisegmentWell_impl.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/opm/simulators/wells/MultisegmentWell_impl.hpp b/opm/simulators/wells/MultisegmentWell_impl.hpp index 76ce35d7c..3ee2c0d65 100644 --- a/opm/simulators/wells/MultisegmentWell_impl.hpp +++ b/opm/simulators/wells/MultisegmentWell_impl.hpp @@ -816,9 +816,11 @@ namespace Opm } if(not(diag_ell > 0.0)){ - std::cout << "Diagonal element for cprw on " + std::stringstream msg; + msg << "Diagonal element for cprw on " << this->name() - << " is " << diag_ell << std::endl; + << " is " << diag_ell; + OpmLog::debug(msg.str()); } jacobian[welldof_ind][welldof_ind] = diag_ell; }else{