[petsc-users] SNESSetFunction and MatMFFDSetFunction

Song Gao song.gao2 at mail.mcgill.ca
Wed Jan 1 11:09:49 CST 2014


Dear all,

Happy new year!

I'm using the matrix-free method to solve NS equations. I call
the SNESSetFunction to set the RHS function. I think SNES also uses that
RHS function to evaluate the matrix vector product.

But I want to set one function to evaluate the residual, and another
different function to evaluate the matrix vector product. How can I do
that? Does MatMFFDSetFunction do this job?

Any suggestion is appreciated. Thank you.


Song
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140101/ef956dd2/attachment.html>


More information about the petsc-users mailing list