[petsc-dev] How To: petsc binary to matrix market format

Jed Brown jedbrown at mcs.anl.gov
Sun Jul 1 00:23:15 CDT 2012


On Sat, Jun 30, 2012 at 9:17 PM, Dave Nystrom <dnystrom1 at comcast.net> wrote:

> From the FAQ, I see that src/mat/examples/tests/ex72.c provides an example
> of
> reading in a matrix system in matrix market format and then exporting it in
> petsc sparse format for the serial case.
>
> Is there an example of how to read in a matrix system in kspviewbinary
> format
> and then write it out in matrix market format for the serial case?
>

I suggest doing it with Python or Matlab, either of which can read PETSc
binary matrices.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120630/a65ff35c/attachment.html>


More information about the petsc-dev mailing list