<div dir="ltr"><div>PETSc has three AMG solvers: GAMG (native) and third party libraries hypre and ML. This probably what you want.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jul 14, 2019 at 6:25 AM Yingjie Wu via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Respected PETSc developers:<br>Hi,<br>I have some questions about some functions of AMG and the construction time of Jacobian matrix in the process of using. Please help me to answer them.<br><br>1. I see some functions about AMG in the list of PETSc functions. I wonder if DMDA is necessary to construct vectors when using AMG precondition. (Because the geometry described in my PDE is irregular,i<span style="white-space:pre-wrap">t contains a lot of pipes and connections</span>, instead of using DMDA to manage vectors, I define discrete solution vectors by myself.)<br><br>2. As far as I know, besides V-cycle, AMG method also needs auxiliary matrix B and transfer matrix P (transfer matrix from fine mesh to coarse mesh). Are these transformation matrices built-in or can they be provided by users in PETSc?<br><br>3. At present, in my program, I use -snes_mf_operator to solve the non-linear PDE problem. Although I do not directly construct Jacobian matrix, it is also expensive to construct preconditioning matrix (provided by users). Can I control the update and decomposition time of the preconditioning matrix, such as updating the preconditioning matrix every two Newton steps and then ILU factorization? Can these controls be implemented in SNESMonitor?<br><div><br></div><div>Thanks,</div><div>Yingjie</div></div>
</blockquote></div></div>