[petsc-users] Preconditioning in matrix-free methods

Jed Brown jed at jedbrown.org
Mon Feb 24 21:16:59 CST 2014

Konstantinos Kontzialis <ckontzialis at lycos.com> writes:
>     Thank you for your response. I understand what you have written, but 
> maybe I'm missing something else . I have
> not understood why PETSC is giving me this error. With -snes_mf I get my 
> code running (however many gmres iterations
> are needed and convergence sometimes stalls), but with -snes_mf_operator 
> I still get the error I posted on the list. What
> should I do to overcome it? Am I missing something? Is there anything I 
> do wrong?

You didn't set an (approximate) Jacobian.  If you want to use
preconditioning, you either need to build a matrix (possibly with
-snes_fd_color) or write your own custom preconditioner.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140224/553e342d/attachment.pgp>

More information about the petsc-users mailing list