<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
/* Font Definitions */
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="ZH-CN" link="blue" vlink="blue">
<div class="Section1">
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Thanks, I’m trying your suggestion “PetscInitialize(&argc, &argv, 0, 0 )”, hope it can fix the problem.
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Do you mind to explain a little “PetscInitialize” to me?
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">1, must it be call at the beginning of program?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">2, what’s the other purpose if I don’t want to input any argc?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">3, if I implement petsc as an optional solution, can I put “PetscInitialize” just before petsc is really executed, while not
just put them at the beginning of program?<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy">Thanks,<o:p></o:p></span></font></p>
<p class="MsoNormal"><st1:PersonName w:st="on"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;
color:navy">De</span></font></st1:PersonName><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;
color:navy">bao<o:p></o:p></span></font></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center" tabindex="-1">
</span></font></div>
<p class="MsoNormal"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma"> petsc-users-bounces@mcs.anl.gov
[mailto:petsc-users-bounces@mcs.anl.gov] <b><span style="font-weight:bold">On Behalf Of
</span></b>Matthew Knepley<br>
<b><span style="font-weight:bold">Sent:</span></b> Friday, August 05, 2011 10:44 AM<br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">PETSc users list</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [petsc-users] PETSC ERROR: Caught signal number 15 Terminate</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">On Fri, Aug 5, 2011 at 2:38 AM,
<st1:PersonName w:st="on">De</st1:PersonName>bao Shao <<a href="mailto:Debao.Shao@brion.com">Debao.Shao@brion.com</a>> wrote:<o:p></o:p></span></font></p>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm">
<div link="blue" vlink="blue">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Doesn’t SEGV fault is signal 11?</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">Yes, 15 is SIGTERM. It appears that either you have another signal handler installed which<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">is terminating on an error, or something killed your program. I can guarantee you that the<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">PetscInitialize(0,0,0,0) is a seg fault.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> Matt<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-right:0cm">
<div link="blue" vlink="blue">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><span class="apple-style-span"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;color:navy"> </span></font></span><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;
font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">
<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a>]
<b><span style="font-weight:bold">On Behalf Of </span></b>Matthew Knepley<br>
<b><span style="font-weight:bold">Sent:</span></b> Friday, August 05, 2011 10:35 AM</span></font><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:
10.0pt;font-family:Tahoma"><br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">PETSc users list</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [petsc-users] PETSC ERROR: Caught signal number 15 Terminate</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">On Fri, Aug 5, 2011 at 2:33 AM,
<st1:PersonName w:st="on">De</st1:PersonName>bao Shao <<a href="mailto:Debao.Shao@brion.com" target="_blank">Debao.Shao@brion.com</a>> wrote:<o:p></o:p></span></font></p>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div link="blue" vlink="blue">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">So the real problem is the wrong usage of “PetscInitialize(0,
0, 0, 0 )”, but I do have many successive runs before with this setting.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">Any kind of memory overwrite gives an SEGV. So other code, making a different error will give that
too.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> Matt<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div link="blue" vlink="blue">
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Thanks,</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><st1:PersonName w:st="on"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:
9.0pt;font-family:Arial;color:navy">De</span></font></st1:PersonName><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">bao</span></font><span lang="EN-US"><o:p></o:p></span></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma;
font-weight:bold">From:</span></font></b><font size="2" face="Tahoma"><span lang="EN-US" style="font-size:10.0pt;font-family:Tahoma">
<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a> [mailto:<a href="mailto:petsc-users-bounces@mcs.anl.gov" target="_blank">petsc-users-bounces@mcs.anl.gov</a>]
<b><span style="font-weight:bold">On Behalf Of </span></b>Matthew Knepley<br>
<b><span style="font-weight:bold">Sent:</span></b> Friday, August 05, 2011 10:25 AM<br>
<b><span style="font-weight:bold">To:</span></b> <st1:PersonName w:st="on">PETSc users list</st1:PersonName><br>
<b><span style="font-weight:bold">Subject:</span></b> Re: [petsc-users] PETSC ERROR: Caught signal number 15 Terminate</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">On Fri, Aug 5, 2011 at 2:20 AM,
<st1:PersonName w:st="on">De</st1:PersonName>bao Shao <<a href="mailto:Debao.Shao@brion.com" target="_blank">Debao.Shao@brion.com</a>> wrote:<o:p></o:p></span></font></p>
<div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div link="blue" vlink="blue">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">DA:
</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Sometimes I may encounter crashing when using PETSc, it doesn’t
happen always. </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: ------------------------------------------------------------------------</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Caught
</span></font><font size="1" color="red" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:
Arial;color:red">signal number 15</span></font><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;font-family:Arial;
color:navy">
Terminate: Somet process (or the batch system) has told this process to end</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: or see
<a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC" target="_blank">
http://www.mcs.anl.gov/petsc/petsc-as/documentation/troubleshooting.html#Signal[0]PETSC</a> ERROR: or try
<a href="http://valgrind.org" target="_blank">http://valgrind.org</a> on GNU/linux</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">and Apple Mac OS X to find memory corruption errors</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: configure using --with-debugging=yes, recompile,
link, and run</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: to get more information on the crash.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: --------------------- Error Message ------------------------------------</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Signal received!</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: ------------------------------------------------------------------------</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Petsc Release Version 3.1.0, Patch 8, Thu Mar
17 13:37:48 CDT 2011</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: See docs/changes/index.html for recent updates.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: See docs/index.html for manual pages.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: ------------------------------------------------------------------------</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Unknown Name on a linux-gnu named r0leaf17 by
tachyon Thu Aug 4 04:04:19 2011</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Libraries linked from /home/dshao/dev_t2k/third_party/OOQP/OOQP-0.99.19/extras/petsc-3.1-p8/linux-gnu-c-debug/lib</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Configure run at Thu Apr 21 18:09:19 2011</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: Configure options --with-mpi=0 --with-debugging=0
-with-log=0 -with-info=0</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: ------------------------------------------------------------------------</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">[0]PETSC ERROR: User provided function() line 0 in unknown directory
unknown file</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Do you happen to know the possible cause?</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">I also have a question about the usage of “PetscInitialize” &
“PetscFinalize”. I can’t totally understand them from the manual. </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Now, I wrote it as:
</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Int main(int argc, char **argv)</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">{</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> PetscInitialize(0, 0, 0, 0 );</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">This is not a valid call. Try<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> PetscInitialize(&argc, &argv, 0, 0);<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">Signal 15 is a segmentation fault, which means an illegal memory read or write.<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> Matt<o:p></o:p></span></font></p>
</div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;
margin-left:4.8pt;margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt">
<div link="blue" vlink="blue">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> VerifyApp app(argc, argv);</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> app.Initialize();</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> app.Run();</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> PetscFinalize();</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> return 0;</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">}</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Then, built a binary, say “verify”, and executed “verify” on a
server first, then, started another “verify” on client by server. </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">The program ran at client side can be multiple processes and multiple
threads.</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Is my usage correct?
</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Your answer is appreciated.
</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy"> </span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">Thanks,</span></font><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><st1:PersonName w:st="on"><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:
9.0pt;font-family:Arial;color:navy">De</span></font></st1:PersonName><font size="1" color="navy" face="Arial"><span lang="EN-US" style="font-size:9.0pt;
font-family:Arial;color:navy">bao</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="gray" face="Arial"><span lang="EN-US" style="font-size:7.5pt;
font-family:Arial;color:gray">-- The information contained in this communication and any attachments
is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto
(if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the
sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <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<o:p></o:p></span></font></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"> <o:p></o:p></span></font></p>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="1" color="gray" face="Arial"><span lang="EN-US" style="font-size:7.5pt;
font-family:Arial;color:gray">-- The information contained in this communication and any attachments
is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto
(if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the
sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <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<o:p></o:p></span></font></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><o:p> </o:p></span></font></p>
<div class="MsoNormal" align="center" style="text-align:center"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt">
<hr size="2" width="100%" align="center">
</span></font></div>
<p class="MsoNormal"><font size="1" color="gray" face="Arial"><span lang="EN-US" style="font-size:7.5pt;font-family:Arial;color:gray">-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the
sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS
basis without any express or implied warranties or liabilities. To the extent you are relying on this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and
destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.</span></font><span lang="EN-US"><o:p></o:p></span></p>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt"><br>
<br clear="all">
<br>
-- <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<o:p></o:p></span></font></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">-- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution
is prohibited. Unless explicitly stated otherwise in the body of this communication or the attachment thereto (if any), the information is provided on an AS-IS basis without any express or implied warranties or liabilities. To the extent you are relying on
this information, you are doing so at your own risk. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and
complete transmission of the information contained in this communication, nor for any delay in its receipt.<br>
</font>
</body>
</html>