[petsc-users] How to get Matrix from MatGetArray()

Jed Brown jedbrown at mcs.anl.gov
Sat Oct 1 11:06:53 CDT 2011


On Sat, Oct 1, 2011 at 10:44, behzad baghapour
<behzad.baghapour at gmail.com>wrote:

> I test MatGetArray( Mat A, PetscScalar* a ) but I couldnt find the correct
> content of matrix by using a[i*n+j].


The moment you ask for such a grotesque thing, you have thrown in the towel
and given up any chance of a moderately scalable method (in memory or time).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111001/e783ec95/attachment.htm>


More information about the petsc-users mailing list