<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Mon, Nov 19, 2018 at 1:48 PM Fazlul Huq 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">Thanks.</div><div style="font-family:comic sans ms,sans-serif">So, is it like if I run the same code using -pc_type gamg then it will use algebraic multigrid to solve the problem?</div><div style="font-family:comic sans ms,sans-serif"></div></div></blockquote><div><br></div><div>Yes.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">I have hypre configured with --download-hypre.</div><div style="font-family:comic sans ms,sans-serif"></div></div></blockquote><div><br></div><div>Then you can use -pc_type hypre -pc_hypre_type boomeramg</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">Agin, if I want to use geometric multigrid, should I go with domain management (DM)?</div></div></blockquote><div><br></div><div>Yes, or you can manage all the grids yourself and talk to PCMG directly.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">Now I am planning to go through examples with DM. Will it be a right approach to start?</div></div></blockquote><div><br></div><div>Possibly. Note that GMG is much more involved than AMG.</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">Thanks again.</div><div style="font-family:comic sans ms,sans-serif">Sincerely,</div><div style="font-family:comic sans ms,sans-serif">Huq</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018 at 4:23 PM Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The manual is pretty clear on this, but your code is purely algebraic, that is you do not use a DM, and so you will need to use algebraic multigrid (AMG). So you want to look at AMG preconditioners (-pc_type gamg [or hypre if you configured with --download-hypre]).<div><br></div><div>Mark</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018 at 1:28 PM Fazlul Huq via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov" target="_blank">petsc-users@mcs.anl.gov</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-family:comic sans ms,sans-serif">Hello PETSc developers,</div><div style="font-family:comic sans ms,sans-serif"><br></div><div style="font-family:comic sans ms,sans-serif">I have solved a problem using ksp. Please find the problem in attachment 1 and PETSc code for solution in attachment 2.</div><div style="font-family:comic sans ms,sans-serif">Now I need to solve the same problem using multigrid.</div><div style="font-family:comic sans ms,sans-serif">I never solved problem using multigrid. Can you please guide me about steps that I should follow</div><div style="font-family:comic sans ms,sans-serif">to solve this problem using multigrid.</div><div style="font-family:comic sans ms,sans-serif"><br></div><div style="font-family:comic sans ms,sans-serif">Thanks.</div><div style="font-family:comic sans ms,sans-serif">Sincerely,</div><div style="font-family:comic sans ms,sans-serif">Huq</div>-- <br><div dir="ltr" class="m_55454124045210m_-1289338293844840740m_-2463867973769507244gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div><font face="comic sans ms, sans-serif">Fazlul Huq</font></div><div><font face="comic sans ms, sans-serif">Graduate Research Assistant</font></div><div><font face="comic sans ms, sans-serif">Department of Nuclear, Plasma & Radiological Engineering (NPRE)</font></div><div><font face="comic sans ms, sans-serif">University of Illinois at Urbana-Champaign (UIUC)</font></div><div><font face="comic sans ms, sans-serif">E-mail: <a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a></font></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="m_55454124045210gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><div><font face="comic sans ms, sans-serif">Fazlul Huq</font></div><div><font face="comic sans ms, sans-serif">Graduate Research Assistant</font></div><div><font face="comic sans ms, sans-serif">Department of Nuclear, Plasma & Radiological Engineering (NPRE)</font></div><div><font face="comic sans ms, sans-serif">University of Illinois at Urbana-Champaign (UIUC)</font></div><div><font face="comic sans ms, sans-serif">E-mail: <a href="mailto:huq2090@gmail.com" target="_blank">huq2090@gmail.com</a></font></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>