From a344fb8dddf485e04695e76754998cec6f42648e Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Mon, 6 May 2019 19:07:47 +0200 Subject: [PATCH] [newton] Always output report if report() is called --- dumux/nonlinear/newtonsolver.hh | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/dumux/nonlinear/newtonsolver.hh b/dumux/nonlinear/newtonsolver.hh index f8825b9263..5d23584151 100644 --- a/dumux/nonlinear/newtonsolver.hh +++ b/dumux/nonlinear/newtonsolver.hh @@ -595,15 +595,14 @@ public: */ void report(std::ostream& sout = std::cout) const { - if (verbosity_ >= 2) - sout << '\n' - << "Newton statistics\n" - << "----------------------------------------------\n" - << "-- Total Newton iterations: " << totalWastedIter_ + totalSucceededIter_ << '\n' - << "-- Total wasted Newton iterations: " << totalWastedIter_ << '\n' - << "-- Total succeeded Newton iterations: " << totalSucceededIter_ << '\n' - << "-- Average iterations per solve: " << std::setprecision(3) << double(totalSucceededIter_) / double(numConverged_) << '\n' - << std::endl; + sout << '\n' + << "Newton statistics\n" + << "----------------------------------------------\n" + << "-- Total Newton iterations: " << totalWastedIter_ + totalSucceededIter_ << '\n' + << "-- Total wasted Newton iterations: " << totalWastedIter_ << '\n' + << "-- Total succeeded Newton iterations: " << totalSucceededIter_ << '\n' + << "-- Average iterations per solve: " << std::setprecision(3) << double(totalSucceededIter_) / double(numConverged_) << '\n' + << std::endl; } /*! -- GitLab