Skip to content
Snippets Groups Projects
Commit a344fb8d authored by Timo Koch's avatar Timo Koch
Browse files

[newton] Always output report if report() is called

parent ba94d149
No related branches found
No related tags found
1 merge request!1582[newton] Allow to change minimum number of Newton iterations
......@@ -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;
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment