[petsc-dev] The question about FD Jacobian

Jed Brown jedbrown at mcs.anl.gov
Sat Dec 7 17:02:36 CST 2013


Lulu Liu <lulu.liu at kaust.edu.sa> writes:
> Sorry, I still feel confused. Is there any example to show how to do this?

Not exactly; you should use MatFDColoringApply yourself.  There is a
section of the Users Manual that discusses this.

> If I have separate functions for each part, how to wrapper them into a
> function?
> For example, how could tell PETSc to use the function fp(S;p) when the
> block Jps is computed?

MatFDColoringSetFunction()
-------------- 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-dev/attachments/20131207/1a7ad0df/attachment.sig>


More information about the petsc-dev mailing list