> I found MatGetInertia in petsc's documentation and i am not sure how to use > it. I found an old example from petsc-2.3.1 > (http://www.mcs.anl.gov/petsc/petsc-2.3.1/src/ksp/ksp/examples/tutorials/ex10.c.html > ), but things seem to have changed since that version. Can you give an > example?
petsc-3.2/src/ksp/ksp/examples/tests/ex33.c and ex36.c Hong
