<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">To print the matrix in ASCII form you must use "<b>-mat_view</b>" and not "-mat_view_draw".</font>
<br>
<br><font size=2 face="sans-serif">Thomas</font>
<br>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td>
<td><font size=1 face="sans-serif"><b>w_ang_temp@163.com</b></font>
<br><font size=1 face="sans-serif">Envoy¨¦ par : petsc-users-bounces@mcs.anl.gov</font>
<p><font size=1 face="sans-serif">30/05/2012 15:46</font>
<br><font size=1 face="sans-serif">Veuillez r¨¦pondre ¨¤ petsc-users</font>
<br>
<td><font size=1 face="Arial"> </font>
<br><font size=1 face="sans-serif"> Pour : petsc-users@mcs.anl.gov</font>
<br><font size=1 face="sans-serif"> cc : (ccc : Thomas DE-SOZA/A/EDF/FR)</font>
<br><font size=1 face="sans-serif"> Objet : Re: [petsc-users] PETSc installed without X windows on this machine</font></table>
<br>
<br>
<br><font size=4 face="Arial">Hello Matt</font>
<br><font size=4 face="Arial"> I am sorry for the vague statements. </font>
<br><font size=4 face="Arial"> When use MatView() in the code, it can print the matrix by the CSR form in the terminal.</font>
<br><font size=4 face="Arial"> When I try to view the matrix with the runtime option -mat_view_draw, I get the error message. I just want to draw the matrix nonzero structure.</font>
<br><font size=4 face="Arial"> Thanks.</font>
<br><font size=4 face="Arial"> Jim<br>
</font>
<br>
<br><font size=4 face="Arial">>ÔÚ 2012-05-30 21:27:40£¬"Matthew Knepley" <knepley@gmail.com> дµÀ£º</font>
<br><font size=4 face="Arial">>On Wed, May 30, 2012 at 9:20 AM, w_ang_temp <</font><a href=mailto:w_ang_temp@163.com target=_blank><font size=4 color=blue face="Arial"><u>w_ang_temp@163.com</u></font></a><font size=4 face="Arial">> wrote:</font>
<br><font size=4 face="Arial">>Hello</font>
<br><font size=4 face="Arial">> When I try to view a matrix with the option -mat_view_draw, I get :<br>
> [0]PETSC ERROR: PETSc installed without X windows on this machine proceeding without graphics.</font>
<br><font size=4 face="Arial">> But calling MatView in side the code is ok.</font>
<br>
<br><font size=4 face="Arial">>Are you saying that from within the code, MatView() draws a picture in an X-window? I do not see</font>
<br><font size=4 face="Arial">>how that can possibly be the case. PETSc did not compile support for that, as it says in the error</font>
<br><font size=4 face="Arial">>message.</font>
<br>
<br><font size=4 face="Arial">> Matt</font>
<br><font size=4 face="Arial"> </font>
<br><font size=4 face="Arial">> I install the libX11-dev as Matt said in one message in the petsc-users in 2008, but the problem doesn't solved.</font>
<br><font size=4 face="Arial">> The system is ubuntu 10.04.</font>
<br><font size=4 face="Arial">> So what might be the reason?</font>
<br><font size=4 face="Arial">> Thanks.</font>
<br><font size=4 face="Arial">> Jim<br>
<br>
</font>
<br><font size=4 face="Arial"><br>
</font>
<br><font size=4 face="Arial"><br>
</font>
<br>
<br><font size=4 face="Arial">-- <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</font>
<br><font size=3 face="Arial"><br>
</font>
<br>
<br>