<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 10, 2023 at 9:17 AM 권승리 <<a href="mailto:ksl7912@snu.ac.kr">ksl7912@snu.ac.kr</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">Dear petsc developers.<div><br></div><div>Hello.</div><div>While I was applying the preconditioner in contact with the FEM code, I had some questions.</div><div><br></div><div><div>How can I apply the AMG PC and the multilevel Schwarz PC in the FEM code?</div><div>Purpose is to compare which PC is better in the FEM code with contact situation.</div><div><br></div><div>In my case, the Jacobi PC could be easily applied as shown in the example below. However, AMG and multilevel have too many options.<br></div><div><br></div><div>ex) ./app -ksp_type gmres -pc_type jacobi -ksp_view</div></div></div></blockquote><div><br></div><div>You can use the built-in AMG PC with: -pc_type gamg</div><div><br></div><div>Technically AMG is a multilevel Schwarz PC, but I think you may be referring to: -pc_type bddc</div><div><br></div><div>All solvers are equipped with default parameters that tend to be optimized for robustness rather than peak performance and they are a good place to start.</div><div><br></div><div>Thanks,</div><div>Mark</div><div><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"><div><div><br></div><div>Best regards</div><div><br></div><div>Seung Lee Kwon</div>-- <br><div dir="ltr"><div dir="ltr"><div>Seung Lee Kwon, Ph.D.Candidate</div><div>Aerospace Structures and Materials Laboratory</div><div>Department of Mechanical and Aerospace Engineering</div><div>Seoul National University</div><div>Building 300 Rm 503, Gwanak-ro 1, Gwanak-gu, Seoul, South Korea, 08826</div><div>E-mail : <a href="mailto:ksl7912@snu.ac.kr" target="_blank">ksl7912@snu.ac.kr</a></div><div>Office : +82-2-880-7389</div><div>C. P : +82-10-4695-1062</div></div></div></div></div>
</blockquote></div></div>