<div class="gmail_quote">On Wed, Sep 14, 2011 at 21:16, Milan Mitrovic <span dir="ltr">&lt;<a href="mailto:milan.v.mitrovic@gmail.com">milan.v.mitrovic@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":1vb">How do I use MatGetRow properly from fortran?<br></div></blockquote><div><br></div><div>Fortran calling sequence is in the man page:</div><div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatGetRow.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatGetRow.html</a></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div id=":1vb">
If I use -snes_mf_operator can I somehow get the computed values eg.<br>
with MatGetRow?</div></blockquote></div><br><div>-snes_mf_operator does not compute entries. You can build a finite difference Jacobian with coloring or build a dense finite difference Jacobian.</div><div><br></div><div>
<a href="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/MatFD/MatFDColoringApply.html</a></div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatComputeExplicitOperator.html">http://www.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-dev/docs/manualpages/Mat/MatComputeExplicitOperator.html</a></div>
<div><br></div>