Victor and Richard, The files mm2petsc.c, mmio.c and mmio.h are attached. I just update it with petsc-dev (petsc-2.2.1 should be fine).
Let me know if you see problem/bug. If you further improve it, please give me your improvement as well. Thanks, Hong On Tue, 5 Apr 2005, Victor Eijkhout wrote: > At 10:32 AM -0500 4/5/05, Hong Zhang wrote: > >We have code that read MatrixMarket format, and write > >into a petsc binary file. Then you can use petsc MatLoad() > >for viewing or computation. > > I'm interested in this too. I wrote my own version. Maybe a good idea > to add this to the petsc distribution? > -- > Victor Eijkhout <eijkhout at cs.utk.edu>, 329 Claxton, Comp Sci, UT, > Knoxville TN 37996. > tel: 865 974 9308 (W), 865 673 6998 (H), 865 974 8296 (F) > http://www.cs.utk.edu/~eijkhout/ > > -------------- next part -------------- A non-text attachment was scrubbed... Name: mm2petsc.c Type: text/x-csrc Size: 6338 bytes Desc: mm2petsc.c URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20050405/a51590ef/attachment.c> -------------- next part -------------- A non-text attachment was scrubbed... Name: mmio.c Type: text/x-csrc Size: 13558 bytes Desc: mmio.c URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20050405/a51590ef/attachment-0001.c> -------------- next part -------------- A non-text attachment was scrubbed... Name: mmio.h Type: text/x-chdr Size: 4478 bytes Desc: mmio.h URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20050405/a51590ef/attachment.h>
