<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:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (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]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Andale Mono";
panose-1:2 11 5 9 0 0 0 0 0 4;}
@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
p.xmsonormal, li.xmsonormal, div.xmsonormal
{mso-style-name:xmsonormal;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:10.0pt;
font-family:"Aptos",sans-serif;}
span.s1
{mso-style-name:s1;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.xapple-converted-space
{mso-style-name:xapple-converted-space;}
span.xs1
{mso-style-name:xs1;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hong, are these results somewhat expected? I don’t see any speed up for using 2 processors (maybe I don’t have 2 processors?).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">Option<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">Wall Time (sec)<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">7.442<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">mpiexec -n 2 -pc_type lu<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">9.112<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -pc_factor_mat_solver_type mumps<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">8.748<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">mpiexec -n 2 -pc_type lu -pc_factor_mat_solver_type mumps<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">9.013<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">For different size problems<o:p></o:p></span></p>
<table class="MsoTableGrid" border="1" cellspacing="0" cellpadding="0" style="border-collapse:collapse;border:none">
<tbody>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -m 1000 -n 1000<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-left:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">7.442<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -m 750 -n 750<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">3.142<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -m 500 -n 500<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">1.007<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -m 250 -n 250<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">0.150<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="312" valign="top" style="width:233.75pt;border:solid windowtext 1.0pt;border-top:none;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">-pc_type lu -m 100 -n 100<o:p></o:p></span></p>
</td>
<td width="312" valign="top" style="width:233.75pt;border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0in 5.4pt 0in 5.4pt">
<p class="MsoNormal"><span style="font-size:11.0pt">0.016<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><img width="442" height="335" style="width:4.6041in;height:3.4895in" id="Picture_x0020_3" src="cid:image001.png@01DA81E2.16A009F0"></span><span style="font-size:11.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">petsc-users <petsc-users-bounces@mcs.anl.gov> on behalf of Zou, Ling via petsc-users <petsc-users@mcs.anl.gov><br>
<b>Date: </b>Friday, March 29, 2024 at 12:50 PM<br>
<b>To: </b>Barry Smith <bsmith@petsc.dev><br>
<b>Cc: </b>petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject: </b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I cannot believe that I typed: make ex<span style="color:black;background:yellow">0</span>2</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks, it works.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Barry Smith <bsmith@petsc.dev><br>
<b>Date: </b>Friday, March 29, 2024 at 12:43 PM<br>
<b>To: </b>Zou, Ling <lzou@anl.gov><br>
<b>Cc: </b>Zhang, Hong <hzhang@mcs.anl.gov>, petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject: </b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">cd src/ksp/ksp/tutorials make ex2 On Mar 29, 2024, at 1:</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">10 PM, Zou,
Ling <lzou@</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">anl.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">gov>
wrote: Hong, thanks! That’s great to know. I’d like to try the ex2 tutorial case locally to see how it performs. I have already installed PETSc 3.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">20.</span><span style="font-size:1.0pt;font-family:"Arial",sans-serif;color:white"> </span><span style="font-size:1.0pt;color:white">5
</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div style="border:none;border-top:solid #90A4AE 3.0pt;padding:0in 0in 0in 0in;display:block!important;text-align:left!important;margin:0px!important;padding:16px!important;border-radius:4px!important;min-width:200px!important;background-color:#D0D8DC!important;border-top:#90a4ae!important" id="pfptBannerpktqbaj">
<div id="pfptBannerpktqbaj">
<div id="pfptBannerpktqbaj">
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This Message Is From an External Sender
</span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div id="pfptBannerpktqbaj">
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This message came from outside your organization.
</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal" style="background:#D0D8DC"><span style="font-size:12.0pt;color:black"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerEnd</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"> cd </span><span style="font-size:11.0pt">src/ksp/ksp/tutorials</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> make ex2 </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt"><o:p> </o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Mar 29, 2024, at 1:10</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">PM, Zou, Ling <lzou@anl.gov> wrote:<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hong, thanks! That’s great to know.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I’d like to try the ex2 tutorial case locally to see how it performs. I have already installed PETSc 3.20.5 on my Mac.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Here shows the very last step of installation.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">make PETSC_DIR=/Users/lingzou/Downloads/petsc-3.20.5 PETSC_ARCH=arch-opt check</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Running PETSc check examples to verify correct installation</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Using PETSC_DIR=/Users/lingzou/Downloads/petsc-3.20.5 and PETSC_ARCH=arch-opt</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="background:black"><span class="s1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Completed PETSc check examples</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I found myself not knowing how to compile petsc/src/ksp/ksp/tutorials/ex2.c</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Do we have a page for how to do that?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Best,</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div id="mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor currentcolor">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt">From:<span class="apple-converted-space"> </span></span></b><span style="font-size:12.0pt">Zhang, Hong <hzhang@mcs.anl.gov><br>
<b>Date:<span class="apple-converted-space"> </span></b>Thursday, March 28, 2024 at 4:59 PM<br>
<b>To:<span class="apple-converted-space"> </span></b>Zou, Ling <lzou@anl.gov>, Barry Smith <bsmith@petsc.dev><br>
<b>Cc:<span class="apple-converted-space"> </span></b>petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:<span class="apple-converted-space"> </span></b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Ling,<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">MUMPS<span class="apple-converted-space"> </span></span><a href="https://urldefense.us/v3/__https:/mumps-solver.org/index.php__;!!G_uCfscf7eWS!b4SLVXTUaKyR1_NPGNEtGinrk2pTkW9odwoiYKcTjslyDUQxuhihIs1ZLqrh2z33R3C5VLIwl86Bvw$"><span style="font-size:12.0pt">https://mumps-solver.org/index.php</span></a><span style="font-size:12.0pt"> ,
superlu and superlu_dist<span class="apple-converted-space"> </span></span><a href="https://urldefense.us/v3/__https:/portal.nersc.gov/project/sparse/superlu/__;!!G_uCfscf7eWS!b4SLVXTUaKyR1_NPGNEtGinrk2pTkW9odwoiYKcTjslyDUQxuhihIs1ZLqrh2z33R3C5VLIHcCP4HQ$"><span style="font-size:12.0pt">https://portal.nersc.gov/project/sparse/superlu/</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">are sparse LU solvers, i.e., they produce SPARSE LU matrix factors. For many applications, they can solve<span class="apple-converted-space"> </span></span><span style="font-size:11.0pt;color:#242424;background:white">1
million DOF</span><span style="font-size:12.0pt"> easily even in sequential mode. For example <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">petsc/src/ksp/ksp/tutorials <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">./ex2 -pc_type lu -pc_factor_mat_solver_type mumps -m 1000 -n 1000 -ksp_monitor_true_residual<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> 0 KSP preconditioned resid norm 1.000000000000e+03 true resid norm 6.330876716538e+01 ||r(i)||/||b|| 1.000000000000e+00<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> 1 KSP preconditioned resid norm 9.976801056860e-09 true resid norm 3.908107755078e-10 ||r(i)||/||b|| 6.173090916254e-12<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Norm of error 9.98582e-09 iterations 1<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">MUMPS LU solves this matrix of size 1.e6 in one iteration (takes few sec on my laptop).<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">As Barry suggests, try mumps first. If it fails or it is too slow, then explore other solvers available in PETSc<span class="apple-converted-space"> </span></span><a href="https://urldefense.us/v3/__https:/petsc.org/release/overview/linear_solve_table/__;!!G_uCfscf7eWS!b4SLVXTUaKyR1_NPGNEtGinrk2pTkW9odwoiYKcTjslyDUQxuhihIs1ZLqrh2z33R3C5VLKPDawFmw$"><span style="font-size:12.0pt">https://petsc.org/release/overview/linear_solve_table/</span></a><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">From my experiments, MUMPS is faster and more robust than superlu/superlu_dist, yet it consumes slightly more memory.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">See<span class="apple-converted-space"> </span></span><a href="https://urldefense.us/v3/__https:/petsc.org/release/manual/ksp/*using-external-linear-solvers__;Iw!!G_uCfscf7eWS!b4SLVXTUaKyR1_NPGNEtGinrk2pTkW9odwoiYKcTjslyDUQxuhihIs1ZLqrh2z33R3C5VLJJEKMXKA$"><span style="font-size:12.0pt">https://petsc.org/release/manual/ksp/#using-external-linear-solvers</span></a><span style="font-size:12.0pt"> on
how to install mumps with petsc.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hong<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt">
<hr size="0" width="100%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span class="apple-converted-space"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Zou,
Ling <lzou@anl.gov><br>
<b>Sent:</b><span class="apple-converted-space"> </span>Thursday, March 28, 2024 2:34 PM<br>
<b>To:</b><span class="apple-converted-space"> </span>Barry Smith <bsmith@petsc.dev><br>
<b>Cc:</b><span class="apple-converted-space"> </span>Zhang, Hong <hzhang@mcs.anl.gov>; petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:</b><span class="apple-converted-space"> </span>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you. Those are great suggestions. Although I mentioned 1 million DOF, but we rarely go there, so maybe stick with what is working now, and meanwhile seeking helps from literatures.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor currentcolor">
<p class="xmsonormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt">From:<span class="apple-converted-space"> </span></span></b><span style="font-size:12.0pt">Barry Smith <bsmith@petsc.dev><br>
<b>Date:<span class="apple-converted-space"> </span></b>Thursday, March 28, 2024 at 2:26 PM<br>
<b>To:<span class="apple-converted-space"> </span></b>Zou, Ling <lzou@anl.gov><br>
<b>Cc:<span class="apple-converted-space"> </span></b>Zhang, Hong <hzhang@mcs.anl.gov>, petsc-users@mcs.anl.gov <petsc-users@mcs.anl.gov><br>
<b>Subject:<span class="apple-converted-space"> </span></b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">You may benefit from a literature search on your model AND preconditioners to see what others have used. But I would try PETSc/MUMPS on the biggest size you want and see how it goes (better it runs
for a little longer and you don't waste months<span class="apple-converted-space"> </span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div id="x_pfptBannerq8v2m71">
<div id="x_pfptBannerq8v2m71">
<div id="x_pfptBannerq8v2m71">
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This Message Is From an External Sender</span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div id="x_pfptBannerq8v2m71">
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This message came from outside your organization.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal" style="background:#D0D8DC"><span style="font-size:12.0pt;color:black"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerEnd</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> You may benefit from a literature search on your model AND preconditioners to see what others have used. But I would try PETSc/MUMPS on the biggest size you want and see how it goes (better it runs for
a little longer and you don't waste months trying to find a good preconditioner).<o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<div>
<p class="xmsonormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Mar 28, 2024, at 2:20</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">PM, Zou, Ling <lzou@anl.gov> wrote:<o:p></o:p></span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you, Barry.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Yes, I have tried different preconditioners, but in a naïve way, i.e., looping through possible options using `-pc_type <option>` command line.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">But no, not in a meaningful way because the lack of understanding of the connection between physics (the problem we are dealing with) to math (the correct combination of those preconditioners).</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor">
<p class="xmsonormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt">From:<span class="xapple-converted-space"> </span></span></b><span style="font-size:12.0pt">Barry Smith <</span><a href="mailto:bsmith@petsc.dev"><span style="font-size:12.0pt">bsmith@petsc.dev</span></a><span style="font-size:12.0pt">><br>
<b>Date:<span class="xapple-converted-space"> </span></b>Thursday, March 28, 2024 at 1:09 PM<br>
<b>To:<span class="xapple-converted-space"> </span></b>Zou, Ling <</span><a href="mailto:lzou@anl.gov"><span style="font-size:12.0pt">lzou@anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Cc:<span class="xapple-converted-space"> </span></b>Zhang, Hong <</span><a href="mailto:hzhang@mcs.anl.gov"><span style="font-size:12.0pt">hzhang@mcs.anl.gov</span></a><span style="font-size:12.0pt">>,<span class="xapple-converted-space"> </span></span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span class="xapple-converted-space"><span style="font-size:12.0pt"> </span></span><span style="font-size:12.0pt"><</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Subject:<span class="xapple-converted-space"> </span></b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">1 million is possible for direct solvers using PETSc with the MUMPS direct solver when you cannot get a preconditioner to work well for your problems. ILU are not very robust preconditioners and
I would not rely on them. Have you investigated<span class="xapple-converted-space"> </span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div id="x_pfptBannerc5qmvvr">
<div id="x_pfptBannerc5qmvvr">
<div id="x_pfptBannerc5qmvvr">
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This Message Is From an External Sender</span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div id="x_pfptBannerc5qmvvr">
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This message came from outside your organization.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:#D0D8DC"><span style="font-size:12.0pt;color:black"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerEnd</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> 1 million is possible for direct solvers using PETSc with the MUMPS direct solver when you cannot get a preconditioner to work well for your problems.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> ILU are not very robust preconditioners and I would not rely on them. Have you investigated other preconditioners in PETSc, PCGAMG, PCASM, PCFIELDSPLIT or some combination of these preconditioners work
for many problems, though certainly not all.<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="xmsonormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Mar 28, 2024, at 1:14</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">PM, Zou, Ling <</span><a href="mailto:lzou@anl.gov"><span style="font-size:12.0pt">lzou@anl.gov</span></a><span style="font-size:12.0pt">>
wrote:<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Thank you, Barry.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Yeah, this is unfortunate given that the problem we are handling is quite heterogeneous (in both mesh and physics).</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">I expect that our problem sizes will be mostly smaller than 1 million DOF, should LU still be a practical solution? Can it scale well if we choose to run the problem in a parallel way?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">PS1:<span class="xapple-converted-space"> </span></span><span style="font-size:12.0pt">-ksp_norm_type unpreconditioned did not work as the true residual did not go down, even with 300 linear iterations.<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">PS2: what do you think if it will be beneficial to have more detailed discussions (e.g., a presentation?) on the problem we are solving to seek more advice?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor">
<p class="xmsonormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt">From:<span class="xapple-converted-space"> </span></span></b><span style="font-size:12.0pt">Barry Smith <</span><a href="mailto:bsmith@petsc.dev"><span style="font-size:12.0pt">bsmith@petsc.dev</span></a><span style="font-size:12.0pt">><br>
<b>Date:<span class="xapple-converted-space"> </span></b>Thursday, March 28, 2024 at 11:14 AM<br>
<b>To:<span class="xapple-converted-space"> </span></b>Zou, Ling <</span><a href="mailto:lzou@anl.gov"><span style="font-size:12.0pt">lzou@anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Cc:<span class="xapple-converted-space"> </span></b>Zhang, Hong <</span><a href="mailto:hzhang@mcs.anl.gov"><span style="font-size:12.0pt">hzhang@mcs.anl.gov</span></a><span style="font-size:12.0pt">>,<span class="xapple-converted-space"> </span></span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span class="xapple-converted-space"><span style="font-size:12.0pt"> </span></span><span style="font-size:12.0pt"><</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Subject:<span class="xapple-converted-space"> </span></b>Re: [petsc-users] Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">This is a bad situation, the solver is not really converging. This can happen with ILU() sometimes, it so badly scales things that the preconditioned residual decreases a lot but the true residual
is not really getting smaller. Since your matrices<span class="xapple-converted-space"> </span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerStart</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div id="x_pfptBannerwwham91">
<div id="x_pfptBannerwwham91">
<div id="x_pfptBannerwwham91">
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><b><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This Message Is From an External Sender</span></b><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div id="x_pfptBannerwwham91">
<div>
<div>
<div>
<p class="MsoNormal" style="line-height:13.5pt;background:#D0D8DC"><span style="font-size:12.0pt;font-family:"Arial",sans-serif;color:black">This message came from outside your organization.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:#D0D8DC"><span style="font-size:12.0pt;color:black"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:1.0pt;color:white">ZjQcmQRYFpfptBannerEnd</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> This is a bad situation, the solver is not really converging. This can happen with ILU() sometimes, it so badly scales things that the preconditioned residual decreases a lot but the true residual is not
really getting smaller. Since your matrices are small best to stick to LU.<o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> You can use -ksp_norm_type unpreconditioned to force the convergence test to use the true residual for a convergence test and the solver will discover that it is not converging.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> Barry<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<p class="xmsonormal" style="margin-bottom:12.0pt"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">On Mar 28, 2024, at 11:43</span><span style="font-size:12.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:12.0pt">AM, Zou, Ling via petsc-users <</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span style="font-size:12.0pt">>
wrote:<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hong, thanks! That makes perfect sense.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">A follow up question about ILU.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">The following is the performance of ILU(5). Note that each KPS solving reports converged but as the output shows, the preconditioned residual does while true residual does not. Is there any way this performance
could be improved?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Background: the preconditioning matrix is finite difference generated, and should be exact.</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">-Ling</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Time Step 21, time = -491.75, dt = 1</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">NL
Step =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0, fnorm =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">6.98749E+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0
KSP preconditioned resid norm 1.684131526824e+04 true resid norm 6.987489798042e+01 ||r(i)||/||b|| 1.000000000000e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1
KSP preconditioned resid norm 5.970568556551e+02 true resid norm 6.459553545222e+01 ||r(i)||/||b|| 9.244455064582e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2
KSP preconditioned resid norm 3.349113985192e+02 true resid norm 7.250836872274e+01 ||r(i)||/||b|| 1.037688366186e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3
KSP preconditioned resid norm 3.290585904777e+01 true resid norm 1.186282435163e+02 ||r(i)||/||b|| 1.697723316169e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">4
KSP preconditioned resid norm 8.530606201233e+00 true resid norm 4.088729421459e+01 ||r(i)||/||b|| 5.851499665310e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Linear
solve converged due to CONVERGED_RTOL iterations 4</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">NL
Step =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1, fnorm =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">4.08788E+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0
KSP preconditioned resid norm 1.851047973094e+03 true resid norm 4.087882723223e+01 ||r(i)||/||b|| 1.000000000000e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1
KSP preconditioned resid norm 3.696809614513e+01 true resid norm 2.720016413105e+01 ||r(i)||/||b|| 6.653851387793e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2
KSP preconditioned resid norm 5.751891392534e+00 true resid norm 3.326338240872e+01 ||r(i)||/||b|| 8.137068663873e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3
KSP preconditioned resid norm 8.540729397958e-01 true resid norm 8.672410748720e+00 ||r(i)||/||b|| 2.121492062249e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Linear
solve converged due to CONVERGED_RTOL iterations 3</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">NL
Step =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2, fnorm =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">8.67124E+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0
KSP preconditioned resid norm 5.511333966852e+00 true resid norm 8.671237519593e+00 ||r(i)||/||b|| 1.000000000000e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1
KSP preconditioned resid norm 1.174962622023e+00 true resid norm 8.731034658309e+00 ||r(i)||/||b|| 1.006896032842e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2
KSP preconditioned resid norm 1.104604471016e+00 true resid norm 1.018397505468e+01 ||r(i)||/||b|| 1.174454630227e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3
KSP preconditioned resid norm 4.257063674222e-01 true resid norm 4.023093124996e+00 ||r(i)||/||b|| 4.639583584126e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">4
KSP preconditioned resid norm 1.023038868263e-01 true resid norm 2.365298462869e+00 ||r(i)||/||b|| 2.727751901068e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">5
KSP preconditioned resid norm 4.073772638935e-02 true resid norm 2.302623112025e+00 ||r(i)||/||b|| 2.655472309255e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">6
KSP preconditioned resid norm 1.510323179379e-02 true resid norm 2.300216593521e+00 ||r(i)||/||b|| 2.652697020839e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">7
KSP preconditioned resid norm 1.337324816903e-02 true resid norm 2.300057733345e+00 ||r(i)||/||b|| 2.652513817259e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">8
KSP preconditioned resid norm 1.247384902656e-02 true resid norm 2.300456226062e+00 ||r(i)||/||b|| 2.652973374174e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">9
KSP preconditioned resid norm 1.247038855375e-02 true resid norm 2.300532560993e+00 ||r(i)||/||b|| 2.653061406512e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">10
KSP preconditioned resid norm 1.244611343317e-02 true resid norm 2.299441241514e+00 ||r(i)||/||b|| 2.651802855496e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">11
KSP preconditioned resid norm 1.227243209527e-02 true resid norm 2.273668115236e+00 ||r(i)||/||b|| 2.622080308720e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">12
KSP preconditioned resid norm 1.172621459354e-02 true resid norm 2.113927895437e+00 ||r(i)||/||b|| 2.437861828442e-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">13
KSP preconditioned resid norm 2.880752338189e-03 true resid norm 1.076190247720e-01 ||r(i)||/||b|| 1.241103412620e-02</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Linear
solve converged due to CONVERGED_RTOL iterations 13</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">NL
Step =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3, fnorm =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1.59729E-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0
KSP preconditioned resid norm 1.676948440854e+03 true resid norm 1.597288981238e-01 ||r(i)||/||b|| 1.000000000000e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1
KSP preconditioned resid norm 2.266131510513e+00 true resid norm 1.819663943811e+00 ||r(i)||/||b|| 1.139220244542e+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2
KSP preconditioned resid norm 2.239911493901e+00 true resid norm 1.923976907755e+00 ||r(i)||/||b|| 1.204526501062e+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3
KSP preconditioned resid norm 1.446859034276e-01 true resid norm 8.692945031946e-01 ||r(i)||/||b|| 5.442312026225e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Linear
solve converged due to CONVERGED_RTOL iterations 3</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">NL
Step =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">4, fnorm =</span></span><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1.59564E-01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">0
KSP preconditioned resid norm 1.509663716414e+03 true resid norm 1.595641817504e-01 ||r(i)||/||b|| 1.000000000000e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">1
KSP preconditioned resid norm 1.995956587709e+00 true resid norm 1.712323298361e+00 ||r(i)||/||b|| 1.073125108390e+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">2
KSP preconditioned resid norm 1.994336275847e+00 true resid norm 1.741263472491e+00 ||r(i)||/||b|| 1.091262119975e+01</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">3
KSP preconditioned resid norm 1.268035008497e-01 true resid norm 8.197057317360e-01 ||r(i)||/||b|| 5.137153731769e+00</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Linear
solve converged due to CONVERGED_RTOL iterations 3</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:white">Nonlinear solve did not converge due to DIVERGED_LINE_SEARCH iterations 4</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="background:black"><span class="xapple-converted-space"><span style="font-size:9.0pt;font-family:"Andale Mono";color:#B42419"> </span></span><span class="xs1"><span style="font-size:9.0pt;font-family:"Andale Mono";color:#B42419">Solve
Did NOT Converge!</span></span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt"> </span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;border-color:currentcolor">
<p class="xmsonormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt">From:<span class="xapple-converted-space"> </span></span></b><span style="font-size:12.0pt">Zhang, Hong <</span><a href="mailto:hzhang@mcs.anl.gov"><span style="font-size:12.0pt">hzhang@mcs.anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Date:<span class="xapple-converted-space"> </span></b>Wednesday, March 27, 2024 at 4:59 PM<br>
<b>To:<span class="xapple-converted-space"> </span></b></span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span class="xapple-converted-space"><span style="font-size:12.0pt"> </span></span><span style="font-size:12.0pt"><</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:12.0pt">petsc-users@mcs.anl.gov</span></a><span style="font-size:12.0pt">>,
Zou, Ling <</span><a href="mailto:lzou@anl.gov"><span style="font-size:12.0pt">lzou@anl.gov</span></a><span style="font-size:12.0pt">><br>
<b>Subject:<span class="xapple-converted-space"> </span></b>Re: Does ILU(15) still make sense or should just use LU?<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Ling,<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">ILU(level) is used for saving storage space with more computations. Normally, we use level=1 or 2. It does not make sense to use level 15. If you have sufficient space, LU would be the best.<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt">Hong<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt">
<hr size="0" width="88%" align="center">
</span></div>
<div id="x_divRplyFwdMsg">
<div>
<div>
<div>
<div>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> petsc-users <</span><a href="mailto:petsc-users-bounces@mcs.anl.gov"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">petsc-users-bounces@mcs.anl.gov</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">>
on behalf of Zou, Ling via petsc-users <</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">petsc-users@mcs.anl.gov</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">><br>
<b>Sent:</b> Wednesday, March 27, 2024 4:24 PM<br>
<b>To:</b> </span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">petsc-users@mcs.anl.gov</span></a><span class="xapple-converted-space"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> </span></span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><</span><a href="mailto:petsc-users@mcs.anl.gov"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">petsc-users@mcs.anl.gov</span></a><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">><br>
<b>Subject:</b> [petsc-users] Does ILU(15) still make sense or should just use LU?</span><span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
</div>
</div>
</div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
<p><span style="font-size:11.0pt;font-family:Helvetica">Hi, I’d like to avoid using LU, but in some cases to use ILU and still converge, I have to go to ILU(15), i.e., `-pc_factor_levels 15`. Does it still make sense, or should I give it up and switch to LU?</span></p>
<p><span style="font-size:11.0pt;font-family:Helvetica"> </span></p>
<p><span style="font-size:11.0pt;font-family:Helvetica">For this particular case, ~2k DoF, and both ILU(15) and LU perform similarly in terms of wall time.</span></p>
<p><span style="font-size:11.0pt;font-family:Helvetica"> </span></p>
<p><span style="font-size:11.0pt;font-family:Helvetica">-Ling</span></p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt"> <o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>