[petsc-users] how to write the symmetric matrix in PETSc binary matrix format directly

Barry Smith bsmith at mcs.anl.gov
Fri Mar 4 16:59:05 CST 2011


  The exact binary file layout for matrices is given in the manual page for MatLoad().

   Barry

On Mar 4, 2011, at 4:40 PM, ning.an at ghiocel-tech.com wrote:

> Hello There,
> 
>  I am new to PETSc and programming with FORTRAN. For the huge sparse matrix  (200,000x200,000 symmetric), it is so slow to set the matrix in PETSc by reading them in matrix market format, which is far beyond our patience. Therefore, I guess that it would be much  fast to load the huge matrix, if the matrix is in PETSc binary matrix format 
>  directly.
>  
>  Please help on how to write the symmetric matrix in PETSc binary matrix format directly? 
>  Both the guidance and examples are welcome. 
> 
> Ning



More information about the petsc-users mailing list