[petsc-users] KSP Tolerances for SNES

Dharmendar Reddy dharmareddy84 at gmail.com
Mon Jan 20 15:58:16 CST 2014


Hello,
        I want to set KSP Tolerances for an SNES solver for F(X) = 0

as absTolKSP = maxval ( norm2F, absTolF_SNES)

I am doing the above step based on Corollary 4 in the paper
(http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.10.8477&rep=rep1&type=pdf)

Since norm2(F) chnages as the simulation progress, how to change the
tolerence for the ksp ?

I am trying via KSPConvergenceTest by doing the following calls inside
the test funciton

 call KSPSetTolerances
 call KSPDefaultConverged

now for the second call i need to pass KSPDefaultConvergedCtx , how do
i do this from Fortran ?

Thanks
Reddy


More information about the petsc-users mailing list