It is possible to add the monitor twice. Are you sure this did not happen?<br><br> Thanks,<br><br> Matt<br><br><div class="gmail_quote">On Tue, Oct 27, 2009 at 6:19 PM, Lukasz Kaczmarczyk <span dir="ltr"><<a href="mailto:likask@civil.gla.ac.uk">likask@civil.gla.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I have noticed minor problem, potentially bug. For nonlinear analysis with SNES and option -ksp_monitor_true_residual I get<br>
0 Norm Res_strain 9.36e-12 Norm Res_stress 1.43e-05 Internal its 1<br>
0 SNES Function norm 1.428489691212e-05<br>
0 KSP preconditioned resid norm 7.213823259362e-04 true resid norm 1.428489691212e-05 ||Ae||/||Ax|| 1.000000000000e+00<br>
0 KSP preconditioned resid norm 7.213823259362e-04 true resid norm 1.428489691212e-05 ||Ae||/||Ax|| 1.000000000000e+00<br>
1 KSP preconditioned resid norm 4.903423697449e-04 true resid norm 9.339595309685e-06 ||Ae||/||Ax|| 6.538090801174e-01<br>
1 KSP preconditioned resid norm 4.903423697449e-04 true resid norm 9.339595309685e-06 ||Ae||/||Ax|| 6.538090801174e-01<br>
<br>
It look that function KSPMonitorTrueResidualNorm is evaluated twice, whereas for default KSP monitor only once. I use petsc-3.0.0-p7.<br>
<br>
Kind regards,<br><font color="#888888">
Lukasz<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>