[petsc-users] MatGetValuesStencil?

Xiangdong epscodes at gmail.com
Sun Jul 13 12:49:43 CDT 2014


Hello everyone,

I am just wondering whether there is a function doing the opposite of
MatSetValuesStencil. I tried to find a MatGetValues equivalent for using
structured grid indexing, but it seems that MatGetValuesStencil does not
exist.

I have a sparse matrix A built on DMDA. If I want to use A's entries to
build another DMDA matrices B, what is the best way to retrieve A's
entries? Is it possible to use grid indexing?

Thank you.

Best,
Xiangdong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140713/2a5e9dd2/attachment.html>


More information about the petsc-users mailing list