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

behzad baghapour behzad.baghapour at gmail.com
Sun Oct 2 01:29:11 CDT 2011


I know about the efficiency and scalability of modern linear methods and I
don't really want to pass memory in a inefficient manner.
But here I need to test my designed matrix and know what PETSc brings out in
a dense format to check my procedure.

Thanks,
Behzad

On Sat, Oct 1, 2011 at 7:36 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> 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).
>



-- 
==================================
Behzad Baghapour
Ph.D. Candidate, Mechecanical Engineering
University of Tehran, Tehran, Iran
https://sites.google.com/site/behzadbaghapour
Fax: 0098-21-88020741
==================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111002/9981c500/attachment.htm>


More information about the petsc-users mailing list