Please always use "reply-all" so that your messages go to the list. This is standard mailing list etiquette. It is important to preserve threading for people who find this discussion later and so that we do not waste our time re-answering the same questions that have already been answered in private side-conversations. You'll likely get an answer faster that way too.
Chung-Kan Huang <[email protected]> writes: > You meant MatView right? Yes. > > So it will work if I do, > > PetscViewerBinaryOpen > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PetscViewerBinaryOpen.html#PetscViewerBinaryOpen> > (PETSC_COMM_WORLD > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PETSC_COMM_WORLD.html#PETSC_COMM_WORLD> > ,filename,FILE_MODE_WRITE,&viewer); > MatView > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatView.html#MatView> > (mat,PETSC_VIEWER_STDOUT_WORLD > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Viewer/PETSC_VIEWER_STDOUT_WORLD.html#PETSC_VIEWER_STDOUT_WORLD> > ); PetscViewerBinaryOpen(comm,filename,FILE_MODE_WRITE,&viewer); MatView(mat,viewer); PetscViewerDestroy(&viewer);
signature.asc
Description: PGP signature
