On Tue, Jul 17, 2012 at 12:31 PM, Thomas Hisch <t.hisch at gmail.com> wrote:
> On Mon, Jul 16, 2012 at 11:44 PM, Matthew Knepley <knepley at gmail.com> > wrote: > > On Mon, Jul 16, 2012 at 3:47 PM, Thomas Hisch <t.hisch at gmail.com> wrote: > >> > >> Hello list, > >> > >> is it possible to store just the nonzero pattern of a large (sparse) > >> matrix in a file? If I write the whole matrix to disk > >> (PetscViewerBinaryOpen/MatView) its size is about 30MB. As I only need > >> its structure it would be a good idea to load and store just the > >> non-zero pattern of the matrix. > >> > >> Has anyone tried to do that and are there corresponding functions in > >> petsc-dev? > > > > > > This is not in PETSc currrently. It would not be hard to do by commenting > > out the > > value parts in the source. > > In which file do I have to look at ? http://petsc.cs.iit.edu/petsc/petsc-dev/annotate/96539c3bad2e/src/mat/impls/aij/mpi/mpiaij.c#l1290 Matt > > Thomas > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120717/53dcf180/attachment.html>
