<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle"></style><style type="text/css"></style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;"><font size="2">Forgive me for being like a child who wanders into the middle of a movie...</font>
<div><font size="2"><br>
</font></div>
<div><font size="2">I've been attempting to follow this conversation from a beginner's level because I am trying to solve an elliptic PDE with variable coefficients. Both the operator and the RHS change at each time step and the operator has off-diagonal terms
 that become dominant as the instability of interest grows. I read somewhere that a direct method is the best for this but I'm intrigued by Justin's comment that GAMG seems to be "the preconditioner to use for elliptic problems". I don't want to highjack this
 conversation but it seems like a good chance to ask for your collective advice on resources for understanding my problem. Any thoughts?</font></div>
<div><font size="2"><br>
</font></div>
<div><font size="2">--Matt</font></div>
<div><font size="2"><br>
</font>
<div>
<div style="font-family:Tahoma; font-size:13px">
<div style="font-family:Tahoma; font-size:13px">--------------------------------------------------------------
<div>Matthew Young</div>
<div>Graduate Student</div>
<div>Boston University Dept. of Astronomy</div>
<div>--------------------------------------------------------------</div>
<div><br>
</div>
</div>
</div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF883635" style="direction: ltr;"><font face="Tahoma" size="2" color="#000000"><b>From:</b> petsc-users-bounces@mcs.anl.gov [petsc-users-bounces@mcs.anl.gov] on behalf of Justin Chang [jychang48@gmail.com]<br>
<b>Sent:</b> Saturday, June 06, 2015 5:29 AM<br>
<b>To:</b> Mark Adams<br>
<b>Cc:</b> petsc-users<br>
<b>Subject:</b> Re: [petsc-users] Guidance on GAMG preconditioning<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">Matt and Mark thank you guys for your responses. <br>
<br>
The reason I brought up GAMG was because it seems to me that this is the preconditioner to use for elliptic problems. However, I am using CG/Jacobi for my larger problems and the solver converges (with -ksp_atol and -ksp_rtol set to 1e-8). Using GAMG I get
 rough the same wall-clock time, but significantly fewer solver iterations. <br>
<br>
As I also kind of mentioned in another mail, the ultimate purpose is to compare how this "correction" methodology using the TAO solver (with bounded constraints) performs compared to the original methodology using the KSP solver (without constraints). I have
 the A for BLMVM and CG/Jacobi and they are roughly 0.3 and 0.2 respectively (do these sound about right?). Although the AI is higher for TAO , the ratio of actual FLOPS/s over the AI*STREAMS BW is smaller, though I am not sure what conclusions to make of that.
 This was also partly why I wanted to see what kind of metrics another KSP solver/preconditioner produces. 
<div><br>
</div>
<div>Point being, if I were to draw such comparisons between TAO and KSP, would I get crucified if people find out I am using CG/Jacobi and not GAMG? <br>
<div><br>
</div>
</div>
<div>Thanks,<br>
Justin</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Jun 5, 2015 at 2:02 PM, Mark Adams <span dir="ltr">
<<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span class="">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div dir="ltr">
<div><br>
</div>
</div>
</blockquote>
<div><br>
</div>
</span>
<div>The overwhleming cost of AMG is the Galerkin triple-product RAP.</div>
<div><br>
</div>
</div>
</div>
</div>
</blockquote>
<div> </div>
</span>
<div>That is overstating it a bit.  It can be if you have a hard 3D operator and coarsening slowly is best.</div>
<div><br>
</div>
<div>Rule of thumb is you spend 50% time is the solver and 50% in the setup, which is often mostly RAP (in 3D, 2D is much faster).  That way you are within 2x of optimal and it often works out that way anyway.</div>
<span class="HOEnZb"><font color="#888888">
<div><br>
</div>
<div>Mark </div>
</font></span></div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>