<div dir="ltr"><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><b><span lang="EN-US" style="font-size:14pt">Hello, dear PETSc team!</span></b></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px"> </span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">I have a 3D elasticity with heterogeneous properties problem. There is unstructured grid with aspect ratio varied from 4 to 25. Dirichlet BCs (bottom zero displacements) are imposed via linear constraint equations using Lagrange multipliers. Also, Neumann (traction) BCs are imposed on side edges of mesh. Gravity load is also accounted for.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">I can solve this problem with <b>dgmres solver</b> and <b>ILU</b> as a <b>preconditioner</b>. But ILU doesn`t support parallel computing, so I decided to use Euclid or Boomeramg as a preconditioner. The issue is in slow convergence and high memory consumption, much higher, than for ILU.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">E.g., for source matrix size 2.14 GB with <b>ILU-0 preconditioning</b> memory consumption is about 5.9 GB, and the process converges due to 767 iterations, and with <b>Euclid-0 preconditioning</b> memory consumption is about 8.7 GB, and the process converges due to 1732 iterations.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">One of the following preconditioners is currently in use: <b>ILU-0, ILU-1, Hypre (Euclid), Hypre (boomeramg)</b>.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">As a result of computations <b><i>(logs and memory logs are attached)</i></b>, the following is established for preconditioners:</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">1. <b>ILU-0</b>: does not always provide convergence (or provides, but slow); uses an acceptable amount of RAM; does not support parallel computing.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">2. <b>ILU-1</b>: stable; memory consumption is much higher than that of ILU-0; does not support parallel computing.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">3. <b>Euclid</b>: provides very slow convergence, calculations are performed several times slower than for ILU-0; memory consumption greatly exceeds both ILU-0 and ILU-1; supports parallel computing. Also “drop tolerance” doesn’t provide enough accuracy in some cells, so I don’t use it.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">4. <b>Boomeramg</b>: provides very slow convergence, calculations are performed several times slower than for ILU-0; memory consumption greatly exceeds both ILU-0 and ILU-1; supports parallel computing.</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px"> </span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">In this regard, the following questions arose:</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">1. Is this behavior expected for HYPRE in computations with 1 MPI process? If not, is that problem can be related to <b>PETSc</b> or <b>HYPRE</b>?</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">2. Hypre (Euclid) has much fewer parameters than ILU. Among them is the factorization level <b>"-pc_hypre_euclid_level <now -2: formerly -2>: Factorization levels (None)"</b> and its default value looks very strange, moreover, it doesn’t matter what factor is chosen -2, -1 or 0. Could it be that the parameter is confused with Column pivot tolerance in ILU - <b>"-pc_factor_column_pivot <-2.: -2.>: Column pivot tolerance (used only for some factorization) (PCFactorSetColumnPivot)"</b>?</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">3. What preconditioner would you recommend to: optimize <b>convergence</b>, <b>memory</b> consumption, add <b>parallel computing</b>?</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">4. How can we theoretically estimate memory costs with <b>ILU, Euclid, Boomeramg</b>?</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px">5. At what stage are memory leaks most likely?</span></p><p class="MsoNormal" style="margin:0cm 0cm 8pt;line-height:15.6933px;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt;line-height:19.9733px"> </span></p><p class="MsoNormal" style="margin:0cm;line-height:normal;font-size:11pt;font-family:Calibri,sans-serif"><span lang="EN-US" style="font-size:14pt">In any case, thank you so much for your attention! Will be grateful for any response.<br></span><span lang="EN-US" style="font-size:10.5pt"><br></span><span lang="EN-US" style="font-size:14pt">Kind regards,<br>Viktor Nazdrachev<br>R&D senior researcher<br>Geosteering Technologies LLC</span></p></div>