Skip to content
Snippets Groups Projects
Commit e4446c4a authored by Christian Engwer's avatar Christian Engwer
Browse files

Merge branch 'bugfix/generalizedpcgsolver' into 'master'

[GeneralizedPCGSolver] Increment iteration counter for all verbosity levels

See merge request !105
parents b3e7fc90 f0536874
No related branches found
No related tags found
No related merge requests found
......@@ -1321,8 +1321,9 @@ namespace Dune {
// convergence test
real_type defnew=_sp->norm(b); // comp defect norm
++i;
if (_verbose>1) // print
this->printOutput(std::cout,++i,defnew,def);
this->printOutput(std::cout,i,defnew,def);
def = defnew; // update norm
if (all_true(def<def0*_reduction) || max_value(def)<1E-30) // convergence check
{
......@@ -1366,8 +1367,9 @@ namespace Dune {
// convergence test
defnew=_sp->norm(b); // comp defect norm
++i;
if (_verbose>1) // print
this->printOutput(std::cout,++i,defnew,def);
this->printOutput(std::cout,i,defnew,def);
def = defnew; // update norm
if (all_true(def<def0*_reduction) || max_value(def)<1E-30) // convergence check
......
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