[petsc-users] storing a matrix in petsc binary form

Wu Degang samuelandjw at gmail.com
Thu Mar 8 01:29:24 CST 2012


Hi,

I need to convert a matrix (in standard c array form) to the "pestc 
binary form" so that I can pass it to a slepc program which solves the 
eigenvalue spectrum for the matrix. I found someone else has raised this 
question long before 
(http://lists.mcs.anl.gov/pipermail/petsc-users/2011-July/009326.html), 
but the code cannot be compiled with petsc 3.2 (perhaps the code is for 
an older version?). Can anyone give me some guidance? or even some code?

Thanks.

Regards,
Wu Degang


More information about the petsc-users mailing list