<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif; "><div>Ok, no problem.&nbsp;Thank you for your assistance!</div><div><br></div><span id="OLK_SRC_BODY_SECTION"><div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><span style="font-weight:bold">From: </span> Matthew Knepley &lt;<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>&gt;<br><span style="font-weight:bold">Reply-To: </span> PETSc users list &lt;<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>&gt;<br><span style="font-weight:bold">Date: </span> Wed, 21 Mar 2012 15:43:07 -0700<br><span style="font-weight:bold">To: </span> PETSc users list &lt;<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>&gt;<br><span style="font-weight:bold">Subject: </span> Re: [petsc-users] Saving graphical matrix structure to a file<br></div><div><br></div>On Wed, Mar 21, 2012 at 5:31 PM, Habbal, Feras (353G-Affiliate) <span dir="ltr">&lt;<a href="mailto:Feras.A.Habbal@jpl.nasa.gov">Feras.A.Habbal@jpl.nasa.gov</a>&gt;</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"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>I tried using the commands from the previous post:</div><div>xwd | xpr -device ps &gt; <a href="http://foo.ps" target="_blank">foo.ps</a></div></div></blockquote><div><br></div><div>That worked fine for me when I made movies this way. I'm not sure what else to recommend.</div><div><br></div><div>&nbsp; &nbsp;Matt</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div>But the output was bizarre: reversed and had some artifacts.</div><div><br></div><div>I can certainly use the mac screen capture tools, but I am needing an automated capability to capture the structure of several matrices&nbsp;(~1000)&nbsp;during a run.</div><div><br></div><div>Feras</div><div><br></div><span><div style="border-right:medium none;padding-right:0in;padding-left:0in;padding-top:3pt;text-align:left;font-size:11pt;border-bottom:medium none;font-family:Calibri;border-top:#b5c4df 1pt solid;padding-bottom:0in;border-left:medium none"><span style="font-weight:bold">From: </span> Matthew Knepley &lt;<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>&gt;<br><span style="font-weight:bold">Reply-To: </span> PETSc users list &lt;<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>&gt;<br><span style="font-weight:bold">Date: </span> Wed, 21 Mar 2012 15:14:39 -0700<br><span style="font-weight:bold">To: </span> PETSc users list &lt;<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>&gt;<br><span style="font-weight:bold">Subject: </span> Re: [petsc-users] Saving graphical matrix structure to a file<br></div><div><br></div>On Wed, Mar 21, 2012 at 5:11 PM, Habbal, Feras (353G-Affiliate) <span dir="ltr">&lt;<a href="mailto:Feras.A.Habbal@jpl.nasa.gov" target="_blank">Feras.A.Habbal@jpl.nasa.gov</a>&gt;</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"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div><span style="font-size:medium"><div style="font-size:14px">
Hello,</div><div style="font-size:14px"><br></div><div style="font-size:14px">
I am trying to save the matrix structure visualization from (-mat_view_draw)&nbsp;to a file (jpeg, ps, or anything else).&nbsp;</div><div style="font-size:14px"><span style="font-size:medium"><div style="font-size:14px">I saw the post: &quot;<span style="font-weight:bold;font-size:medium">help in capturing matrix patterns to files,&quot;</span></div><div style="font-size:14px"></div></span></div></span></div></div></blockquote><div><br></div><div>The easiest thing to do is use screen capture for that window.</div><div><br></div><div>&nbsp; &nbsp; Matt</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="font-size:14px;font-family:Calibri,sans-serif;word-wrap:break-word"><div><span style="font-size:medium"><div style="font-size:14px"><span style="font-size:medium"><div style="font-size:14px">but adding the options did not work for me:</div><div style="font-size:14px">&nbsp;–mat_view_draw –draw_type ps&nbsp;</div><div style="font-size:14px">&nbsp;</div></span></div><div style="font-size:14px">I have been trying to do this with the example file:&nbsp;ksp/examples/tutorials/ex1.c</div><div style="font-size:14px"><br></div><div style="font-size:14px">I&nbsp;included &quot;petscdraw.h&quot;</div><div style="font-size:14px"><br></div><div style="font-size:14px"><div style="font-size:14px">$ mpiexec ex1 -mat_view_draw -draw_type ps</div><div style="font-size:14px">[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div><div style="font-size:14px">[0]PETSC ERROR: Unknown type. Check for miss-spelling or missing external package needed for type</div><div style="font-size:14px">&nbsp;see<a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#external" target="_blank">http://www.mcs.anl.gov/petsc/petsc-as/documentation/installation.html#external</a>!</div><div style="font-size:14px">[0]PETSC ERROR: Unknown PetscDraw type given: ps!</div><div style="font-size:14px">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div style="font-size:14px">

[0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 3, Fri Sep 30 10:28:33 CDT 2011&nbsp;</div><div style="font-size:14px">[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div style="font-size:14px">[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div style="font-size:14px">[0]PETSC ERROR: See docs/index.html for manual pages.</div><div style="font-size:14px">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div style="font-size:14px">

[0]PETSC ERROR: ex1 on a macosx-gn named <a href="http://habbalf.jpl.nasa.gov" target="_blank">habbalf.jpl.nasa.gov</a> by habbalf Wed Mar 21 14:56:30 2012</div><div style="font-size:14px">[0]PETSC ERROR: Libraries linked from /Users/habbalf/issm/trunk-jpl/externalpackages/petsc/install/lib</div><div style="font-size:14px">[0]PETSC ERROR: Configure run at Tue Mar &nbsp;6 11:39:23 2012</div><div style="font-size:14px">[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</div><div style="font-size:14px">[0]PETSC ERROR: ------------------------------------------------------------------------</div><div style="font-size:14px">[0]PETSC ERROR: PetscDrawSetType() line 147 in src/sys/draw/interface/drawreg.c</div><div style="font-size:14px">[0]PETSC ERROR: PetscDrawSetFromOptions() line 278 in src/sys/draw/interface/drawreg.c</div><div style="font-size:14px">[0]PETSC ERROR: PetscViewerDrawGetDraw() line 109 in src/sys/viewer/impls/draw/drawv.c</div><div style="font-size:14px">[0]PETSC ERROR: MatView_SeqAIJ_Draw() line 752 in src/mat/impls/aij/seq/aij.c</div><div style="font-size:14px">[0]PETSC ERROR: MatView_SeqAIJ() line 781 in src/mat/impls/aij/seq/aij.c</div><div style="font-size:14px">

[0]PETSC ERROR: MatView() line 757 in src/mat/interface/matrix.c</div><div style="font-size:14px">[0]PETSC ERROR: MatView_Private() line 4881 in src/mat/interface/matrix.c</div><div style="font-size:14px">[0]PETSC ERROR: MatAssemblyEnd() line 4965 in src/mat/interface/matrix.c</div><div style="font-size:14px">[0]PETSC ERROR: main() line 89 in src/ksp/ksp/examples/tutorials/ex1.c</div><div style="font-size:14px">application called MPI_Abort(MPI_COMM_WORLD, 86) - process 0</div></div><div style="font-size:14px"><br></div><div style="font-size:14px">Thank you for your assistance,</div><div style="font-size:14px"><br></div><div style="font-size:14px">Feras</div></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><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></font></span></span></div></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></span></body></html>