From 52af70ad0e1ac442552c98e58291573501d3da08 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Tue, 15 Aug 2017 09:51:49 +0200 Subject: [PATCH] adding debugging output for solveWellEq to tell if the solveWellEq is successful. --- opm/autodiff/StandardWellsDense_impl.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/opm/autodiff/StandardWellsDense_impl.hpp b/opm/autodiff/StandardWellsDense_impl.hpp index 8c17ebfbc..eadfc0d56 100644 --- a/opm/autodiff/StandardWellsDense_impl.hpp +++ b/opm/autodiff/StandardWellsDense_impl.hpp @@ -459,7 +459,11 @@ namespace Opm { } } while (it < 15); - if (!converged) { + if (converged) { + 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"); + well_state = well_state0; setWellSolutions(well_state); // also recover the old well controls