KSPMonitorTrueResidualNorm and SNES

Lukasz Kaczmarczyk likask at civil.gla.ac.uk
Tue Oct 27 18:19:16 CDT 2009


Hello,

I have noticed minor problem, potentially bug. For nonlinear analysis  
with SNES and option -ksp_monitor_true_residual I get
  0 Norm Res_strain 9.36e-12 Norm Res_stress 1.43e-05 Internal its   1
   0 SNES Function norm 1.428489691212e-05
     0 KSP preconditioned resid norm 7.213823259362e-04 true resid  
norm 1.428489691212e-05 ||Ae||/||Ax|| 1.000000000000e+00
     0 KSP preconditioned resid norm 7.213823259362e-04 true resid  
norm 1.428489691212e-05 ||Ae||/||Ax|| 1.000000000000e+00
     1 KSP preconditioned resid norm 4.903423697449e-04 true resid  
norm 9.339595309685e-06 ||Ae||/||Ax|| 6.538090801174e-01
     1 KSP preconditioned resid norm 4.903423697449e-04 true resid  
norm 9.339595309685e-06 ||Ae||/||Ax|| 6.538090801174e-01

It look that function KSPMonitorTrueResidualNorm is evaluated twice,  
whereas for default KSP monitor only once. I use petsc-3.0.0-p7.

Kind regards,
Lukasz 


More information about the petsc-users mailing list