Commit 12b64708 authored by daniele.corallo's avatar daniele.corallo
Browse files

[403-add-stdist-warnings] format and close Block

parent eabb9627
......@@ -164,8 +164,7 @@ public:
if (d < epsilon) break;
vout(1) << "d(" << iter << ")= " << d << endl;
Scalar rho_new = r0 * r;
if (((abs(rho) < 1e-8 * abs(rho_new)) && (iter)) ||
(abs(omega) < 1e-8 * abs(alpha))) {
if ((abs(rho) < 1e-8 * abs(rho_new) && iter) || abs(omega) < 1e-8 * abs(alpha)) {
vout(2) << "breakdown occured (rho = " << rho
<< " , omega = " << omega << ")" << endl;
Restart(cnt, rho, alpha, omega, p, v);
......@@ -201,6 +200,7 @@ public:
rho = rho_new;
d = norm(r);
}
mout.EndBlock();
// vout(0) << "d(" << iter << ")= " << d << " rate " << rate(iter, d_0, d) << endl;
// vout(0) << IterationEnd();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment