[petsc-users] How to get number of local nonzeros of a matrix?

Junchao Zhang junchao.zhang at gmail.com
Thu Dec 29 13:28:49 CST 2011


Hello,
  I create a MPIAIJ matrix.  How can I know the # of nonzeros stored
locally?
  Furthermore, in case it is needed, how can I get access to the Compress
Sparse Row(CSR) data structure of the local matrix, i.e., the row pointer
array, column index array, value array?

  Thank you!
-- Junchao Zhang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111229/5090bd59/attachment.htm>


More information about the petsc-users mailing list