Hi all,

I am trying to solve two different nonlinear equations. I first solve the
first nonlinear equation using a snes within which a ksp is preconditioned
by a pcasm. And then I want to use the solution of the first nonlinear
equation as an initial guess  to solve the second nonlinear equation, but
this time I want to switch the preconditioner to pcmg. How could I finish
this by creating snes only once, then using snessolve() twice, and
switching preconditioner for linear solvers?


Fande

Reply via email to