On Tue, Jul 17, 2012 at 12:31 PM, Thomas Hisch <span dir="ltr"><<a href="mailto:t.hisch@gmail.com" target="_blank">t.hisch@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Mon, Jul 16, 2012 at 11:44 PM, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
> On Mon, Jul 16, 2012 at 3:47 PM, Thomas Hisch <<a href="mailto:t.hisch@gmail.com">t.hisch@gmail.com</a>> wrote:<br>
>><br>
>> Hello list,<br>
>><br>
>> is it possible to store just the nonzero pattern of a large (sparse)<br>
>> matrix in a file? If I write the whole matrix to disk<br>
>> (PetscViewerBinaryOpen/MatView) its size is about 30MB. As I only need<br>
>> its structure it would be a good idea to load and store just the<br>
>> non-zero pattern of the matrix.<br>
>><br>
>> Has anyone tried to do that and are there corresponding functions in<br>
>> petsc-dev?<br>
><br>
><br>
> This is not in PETSc currrently. It would not be hard to do by commenting<br>
> out the<br>
> value parts in the source.<br>
<br>
In which file do I have to look at ?</blockquote><div><br></div><div><a href="http://petsc.cs.iit.edu/petsc/petsc-dev/annotate/96539c3bad2e/src/mat/impls/aij/mpi/mpiaij.c#l1290">http://petsc.cs.iit.edu/petsc/petsc-dev/annotate/96539c3bad2e/src/mat/impls/aij/mpi/mpiaij.c#l1290</a></div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888"><br>
Thomas<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>