Hello, I am trying to save the matrix structure visualization from (-mat_view_draw) to a file (jpeg, ps, or anything else). I saw the post: "help in capturing matrix patterns to files," but adding the options did not work for me: ?mat_view_draw ?draw_type ps
I have been trying to do this with the example file: ksp/examples/tutorials/ex1.c I included "petscdraw.h" $ mpiexec ex1 -mat_view_draw -draw_type ps [0]PETSC ERROR: --------------------- Error Message ------------------------------------ [0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type seehttp://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#external! [0]PETSC ERROR: Unknown PetscDraw type given: ps! [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 3, Fri Sep 30 10:28:33 CDT 2011 [0]PETSC ERROR: See docs/changes/index.html for recent updates. [0]PETSC ERROR: See docs/faq.html for hints about trouble shooting. [0]PETSC ERROR: See docs/index.html for manual pages. [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: ex1 on a macosx-gn named habbalf.jpl.nasa.gov by habbalf Wed Mar 21 14:56:30 2012 [0]PETSC ERROR: Libraries linked from /Users/habbalf/issm/trunk-jpl/externalpackages/petsc/install/lib [0]PETSC ERROR: Configure run at Tue Mar 6 11:39:23 2012 [0]PETSC ERROR: Configure options --prefix=/Users/habbalf/issm/trunk-jpl/externalpackages/petsc/install --PETSC_DIR=/Users/habbalf/issm/trunk-jpl/externalpackages/petsc/src --PETSC_ARCH=macosx-gnu --with-mpi-dir=/Users/habbalf/issm/trunk-jpl/externalpackages/mpich2/install --with-debugging=1 --download-c2html=1 --with-shared-libraries=0 --download-mumps=yes --download-scalapack=yes --download-blacs=yes --download-blas=yes --download-plapack=yes --download-parmetis=yes --download-f-blas-lapack=yes [0]PETSC ERROR: ------------------------------------------------------------------------ [0]PETSC ERROR: PetscDrawSetType() line 147 in src/sys/draw/interface/drawreg.c [0]PETSC ERROR: PetscDrawSetFromOptions() line 278 in src/sys/draw/interface/drawreg.c [0]PETSC ERROR: PetscViewerDrawGetDraw() line 109 in src/sys/viewer/impls/draw/drawv.c [0]PETSC ERROR: MatView_SeqAIJ_Draw() line 752 in src/mat/impls/aij/seq/aij.c [0]PETSC ERROR: MatView_SeqAIJ() line 781 in src/mat/impls/aij/seq/aij.c [0]PETSC ERROR: MatView() line 757 in src/mat/interface/matrix.c [0]PETSC ERROR: MatView_Private() line 4881 in src/mat/interface/matrix.c [0]PETSC ERROR: MatAssemblyEnd() line 4965 in src/mat/interface/matrix.c [0]PETSC ERROR: main() line 89 in src/ksp/ksp/examples/tutorials/ex1.c application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0 Thank you for your assistance, Feras -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120321/1c1ad138/attachment.htm>
