[petsc-users] Solutions different after program restart

Niceno Bojan bojan.niceno at psi.ch
Sun Jun 3 08:37:36 CDT 2012


Dear Jed,


> > Residual norm obtained from a call to "KSPGetResidualNorm(ksp, &rnorm);",
> > gives:
> >
> > - First run: 1.98077e-02
> > - Second run: 2.61329e-02
> >
> > The tolerances I request from KSP's gmres solver are:
> >
> > - Linear solver relative tolerance = 0.001;
> > - Linear solver absolute tolerance = 1.0e-5;

> Is the initial residual about 30?

I don't know.  Is there a way to find out?


> In that case, check that the system being solved is identical. You can save
> it with -ksp_view_binary. Load it with
> src/ksp/ksp/examples/tutorials/ex10.c as an independent test. Also be sure
> to use the same initial guess.

Thanks.  I was checking norms of matrix "A" and "x" and "b" vectors (2nd order) and they ARE the same before and after restart.  Does the same norm ensure the matrices and and vectors are the same?  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 3120 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120603/abe2659f/attachment.bin>


More information about the petsc-users mailing list