increment would have been forgotten upon break-down.
git-svn-id: https://svn.dealii.org/trunk@5197
0785d39b-7218-0410-832d-
ea1e28bc413d
do
{
+ ++step;
+
rhobar = r*rbar;
beta = rhobar * alpha / (rho * omega);
rho = rhobar;
if (std::fabs(alpha) > 1.e10)
return true;
-
+
s.equ(1., r, -alpha, v);
precondition.vmult(z,s);
A.vmult(t,z);
else
res = r.l2_norm();
- state = control().check(++step, res);
+ state = control().check(step, res);
print_vectors(step, *Vx, r, y);
}
while (state == SolverControl::iterate);
do
{
- if (step)
+ if (step != 0)
deallog << "Restart step " << step << std::endl;
- if (start(A) == SolverControl::success) break;
+ if (start(A) == SolverControl::success)
+ break;
state = iterate(A, precondition);
}
while (state);
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams