Dear Matt:<br><br>thank you for your reply. Do you have any method to generate an ascii file of the huge sparse matrix? thanks<br> <br>Regards,<br>Yujie<br><br><div><span class="gmail_quote">On 1/23/08, <b class="gmail_sendername">
Matthew Knepley</b> <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
On Jan 22, 2008 8:50 PM, Yujie <<a href="mailto:recrusader@gmail.com">recrusader@gmail.com</a>> wrote:<br>> Hi everyone:<br>><br>> #include "petsc.h"<br>> PetscErrorCode PetscViewerASCIIOpen(MPI_Comm comm,const char
<br>> name[],PetscViewer *lab)<br>><br>> #include "petsc.h"<br>> PetscErrorCode PetscViewerBinaryOpen(MPI_Comm comm,const char<br>> name[],PetscFileMode type,PetscViewer *binv)<br>><br>> if the difference between them is that one for ASCII output and the other
<br>> for Binary output, why are there different parameters?<br><br>It is historical. If you want to be generic, you should use<br><br> PetscViewerCreate()<br> PetscViewerSetType()<br> PetscViewerFileSetMode()<br> PetscViewerFileSetName()
<br><br>which can create both.<br><br>> The speed to output matrix is very fast when I use PetscViewerBinaryOpen.<br>> However, when I use PetscViewerASCIIOpen, I can't get the matrix output. the<br>> code always is running and it has taken about one day! what's the problem?
<br>> thank you.<br><br>ASCII files do not make sense for large matrices. You should use binary files.<br><br> Matt<br><br>> Regards,<br>> Yujie<br>><br>><br>><br><br><br><br>--<br>What most experimenters take for granted before they begin their
<br>experiments is infinitely more interesting than any results to which<br>their experiments lead.<br>-- Norbert Wiener<br><br></blockquote></div><br>