[petsc-users] custom sparse matrix

Matthew Knepley knepley at gmail.com
Mon Mar 21 06:46:06 CDT 2011


2011/3/21 Alejandro Marcos Aragón <alejandro.aragon at gmail.com>

> Hi everyone,
>
> I'm new to the list and to PETSc. I was wondering if this is possible: in
> my code I have my own sparse matrix data structure, so instead of creating a
> sparse matrix from PETSc and copying all the elements, I was wondering if
> there is a way to specify the storage of the elements. My custom data
> structure is a three-array compressed row format (or compressed column
> storage).
>

That is the PETSc AIJ format, so it should be easy to substitute.

   Matt


> Thank you,
>
> Alejandro M. Aragón, Ph.D.




-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110321/ce9e32e5/attachment.htm>


More information about the petsc-users mailing list