<div dir="ltr"><div dir="ltr">On Wed, May 22, 2019 at 3:28 PM Sajid Ali via petsc-users <<a href="mailto:petsc-users@mcs.anl.gov">petsc-users@mcs.anl.gov</a>> wrote:<br></div><div class="gmail_quote"><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 dir="ltr"><div><div>Hi Hong, <br><br></div>Looks like this is my fault since I'm using
-ksp_type preonly -pc_type gamg. If I use the default ksp (GMRES) then everything works fine on a smaller problem.<br><br></div><div>Just to confirm,
-ksp_type preonly is to be used only with direct-solve preconditioners like LU,Cholesky, right ?</div></div></div></div></blockquote><div><br></div><div>It depends what you want. preconly just applies the PC once. It could be that you just want MG applied once, but</div><div>you have to know that you might not get residual reduction you want unless your system has certain characteristics.</div><div><br></div><div> Matt</div><div> </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">Thank You, <br><div><div dir="ltr" class="gmail-m_3752675018797948584gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sajid Ali<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="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>