[petsc-users] More about SNESSetLagPreconditioner

Gong Ding gdiso at ustc.edu
Wed Oct 3 10:00:56 CDT 2012


Hi,
I am doing a nonlinear transient simulation. For each time step, a SNESSolve is called.
I want to do a LU factorization at the first Newton iteration of EACH time step, and for the following Newton steps (in the same time step), no factorization any more. For the next time step, the LU factorization should be done again. 


SNESSetLagPreconditioner(-1) seems just skips all the following factorization, even in the different time step.
How can I do?


Gong Ding




More information about the petsc-users mailing list