[petsc-users] To store the matrix.
    Xuefei (Rebecca) Yuan 
    xyuan at lbl.gov
       
    Thu Jul 14 13:18:36 CDT 2011
    
    
  
Dear all,
I have assembled a 2d matrix through the FormJacobianLocal() routine.
I would like to store this sparse MXN matrix A in the following form:
....................................................
line1:	M	N	numberofnonzeros
line2:	i	j	value
line3:	i	j	value
...
...
...
....................................................
The first line gives the size of the matrix and the number of nonzeros and starting from the second line, the index of the nonzero and its value is shown, too.
Thanks very much!
Best,
Rebecca
    
    
More information about the petsc-users
mailing list