[petsc-dev] SNES with linear operator

Mark F. Adams mfadams at lbl.gov
Sun Sep 1 18:57:53 CDT 2013


> 
> Perhaps you also want  SNESSetLagPreconditioner
> 
> -  lag - -1 indicates NEVER rebuild, 1 means rebuild every time the Jacobian is computed within a single nonlinear solve, 2 means every second time
>         the Jacobian is built etc. -2 indicates rebuild preconditioner at next chance but then never rebuild after that
> 
> 
> With this option it will (if coded correctly) reuse the same Jacobian and preconditioner for every SNESSolve() you call (it will just get Jacobian once the first time). I think this is what you want.
> 
>    

That's what I need, thanks,
Mark




More information about the petsc-dev mailing list