[petsc-users] Quick question

Jed Brown jedbrown at mcs.anl.gov
Wed Sep 14 14:22:56 CDT 2011


On Wed, Sep 14, 2011 at 21:16, Milan Mitrovic <milan.v.mitrovic at gmail.com>wrote:

> How do I use MatGetRow properly from fortran?
>

Fortran calling sequence is in the man page:

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatGetRow.html


> If I use -snes_mf_operator can I somehow get the computed values eg.
> with MatGetRow?
>

-snes_mf_operator does not compute entries. You can build a finite
difference Jacobian with coloring or build a dense finite difference
Jacobian.

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/MatFD/MatFDColoringApply.html

http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatComputeExplicitOperator.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110914/b361847d/attachment.htm>


More information about the petsc-users mailing list