<div dir="ltr">Fangfang,<div>I tested 'runex52_superlu' on petsc-dev master branch which is virtually same as petsc-3.4 for  superlu wrapper, and got correct result</div><div><div>petsc/src/ksp/ksp/examples/tutorials (master)</div>
<div>$ ./ex52 -use_superlu_lu</div><div>Norm of error < 1.e-12 iterations 1</div></div><div><br></div><div style>Your report puzzles me, because</div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:10pt;font-family:verdana;margin:10px">
<div>         make runex52_superlu 
</div>
<div><font face="Verdana">   but this generated the 
following error messages:</font></div>
<div>   </div>
<div> 
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">1c1,38</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">< Norm of error < 1.e-12 iterations 1</font></span></p></div></div></blockquote><div style>this indicates that ex52 works fine to the line 265, i.e. superlu solve is done and gives correct answer. </div>
<div style><br></div><div style>Then the error message below shows crash on</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:10pt;font-family:verdana;margin:10px"><div>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: [0] SuperLU:StatInit line 616 
/home/lff/petsc-3.4.2/src/mat/impls/aij/seq/superlu/superlu.c</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: [0] MatGetFactor_seqaij_superlu line 580 
/home/lff/petsc-3.4.2/src/mat/impls/aij/seq/superlu/superlu.c</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: [0] MatGetFactor line 3949 
/home/lff/petsc-3.4.2/src/mat/interface/matrix.c</font></span></p></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:10pt;font-family:verdana;margin:10px"><div>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: [0] PCFactorSetUpMatSolverPackage_Factor line 
14 </font></span></p></div></div></blockquote><div style>which occurs way ahead of line 265. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div style="font-size:10pt;font-family:verdana;margin:10px"><div><p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">/home/lff/petsc-3.4.2/src/ksp/pc/impls/factor/factimpl.c</font></span></p>

<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: [0] PCFactorSetUpMatSolverPackage line 24 
/home/lff/petsc-3.4.2/src/ksp/pc/impls/factor/factor.c</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">> [0]PETSC ERROR: --------------------- Error Message 
-----------------------------------</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><br></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">/home/lff/petsc-3.4.2/src/ksp/ksp/examples/tutorials</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">Possible problem with with ex52, diffs above</font></span></p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri"></font></span> </p>
<p class="" style="margin:0cm 0cm 0pt"><span lang="EN-US"><font size="3" face="Calibri">I have rebuilt petsc with superlu, does this require changing the 
code in ex52.c or superlu.c ,or is there something else that I am doing 
wrong?</font></span></p></div></div></blockquote><div style>No, there is no need to change ex52.c.</div><div style><br></div><div style>Hong </div></div></div></div>