<div dir="ltr"><div class="gmail_extra">Su :</div><div class="gmail_extra">We provide these via runtime options. With the latest petsc release (v3.4),</div><div class="gmail_extra">you can get</div><div class="gmail_extra">
petsc/src/ksp/ksp/examples/tutorials/ex2.c: </div><div class="gmail_extra">./ex2 -pc_type ilu -pc_factor_mat_solver_package superlu -hels |grep superlu</div><div class="gmail_extra">...</div><div class="gmail_extra"><div class="gmail_extra">
  -mat_superlu_ilu_droptol <0.0001>: ILU_DropTol (None)</div><div class="gmail_extra">  -mat_superlu_ilu_filltol <0.01>: ILU_FillTol (None)</div><div class="gmail_extra">  -mat_superlu_ilu_fillfactor <10>: ILU_FillFactor (None)</div>
<div class="gmail_extra">  -mat_superlu_ilu_droprull <9>: ILU_DropRule (None)</div><div class="gmail_extra">  -mat_superlu_ilu_norm <2>: ILU_Norm (None)</div><div class="gmail_extra">  -mat_superlu_ilu_milu <0>: ILU_MILU (None)</div>
<div class="gmail_extra"><br></div><div class="gmail_extra" style>i.e., you can set/change your own options at runtime.</div><div class="gmail_extra" style><br></div><div class="gmail_extra" style>Hong</div></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 dir="ltr">Hi, I am trying to use the external package SuperLU to solve a linear equation with ILUTP preconditioner. But the current PETSc only provides one option interface which is MatSuperluSetILUDropTol. There are actually many other options as suggested on the manual page of MATSOLVERSUPERLU, such as:<div>

<br></div><div><b style="font-size:medium;font-family:Simsun">-mat_superlu_equil</b></div><div><div><b style="font-size:medium;font-family:Simsun">-mat_superlu_ilu_filltol</b><br></div><div>
<b style="font-size:medium;font-family:Simsun">-</b><b style="font-size:medium;font-family:Simsun">mat_superlu_ilu_fillfactor</b></div><div><br></div><div>etc. However, they all need to be invoked via command line.</div>

<div><br></div><div>Is there any way to set up other options for SuperLU in the code instead of using the command line? Because it's not so convenient to type in all those runtime commands every time you run a code. </div>

</div><div><br></div><div>Thanks a lot.</div><span class=""><font color="#888888"><div><br></div><div>Su</div><div><br></div></font></span></div>
</blockquote></div><br></div></div>