<div class="gmail_quote">On Wed, Aug 29, 2012 at 9:59 AM, Arun Kamath <span dir="ltr"><<a href="mailto:arun.kamath.m@gmail.com" target="_blank">arun.kamath.m@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF"><div></div><div>Hei!<br><span>I was going through the Petsc user archives when I came across a</span><br><span>discussion with Barry Smith regarding use of BoomerAMG through Petsc</span><br>
<span>(<a href="http://lists.mcs.anl.gov/pipermail/petsc-users/2006-October/000692.html" target="_blank">http://lists.mcs.anl.gov/pipermail/petsc-users/2006-October/000692.html</a></span><span>).</span></div><div><br><span>What I did understand from that is some of the Hypre options cannot</span><br>
<span>be accessed through Petsc. But options like Pilut are available as preconditioners or solvers depnding on ksptype.</span><br><span>I am trying to use ILU smoothening to BoomerAMG (Hypre's manual lists the smoothers available and the function calls</span><span>).</span></div>
</div></blockquote><div><br></div><div>HYPRE_BoomerAMGSetRelaxType, which is the relevant routine, does not support ILU. Hypre does not have an extensible system for smoothing so you can't add new smoothers without changing their library.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div><span> The questions that remain after going through that discussion are:</span><br>
<span></span><br><span>1. Can a smoothening option in hypre's boomerAMG could be chosen at all using Petsc?</span></div></div></blockquote><div><br></div><div>-pc_hypre_boomeramg_relax_type_all (or up/down)</div><div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF"><div><br><span>2. Could the function calls phrases used in Hypre itself be somehow employed in the Petsc code?</span></div>
</div></blockquote><div><br></div><div>I don't know what you are asking for.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF">
<div><br>
<br>Would be really grateful for any advice. Since I am using an IDE to build the code, non-command line option tricks would also be of great help.</div></div></blockquote><div><br></div><div>You can set command line options with PetscOptionsSetValue(), but this is a slow way to experiment. I thought the purpose of an IDE was to make you more productive. Recompiling every time you change the solver is a good way to greatly reduce your productivity. Also, hard-coding configurations is a good way to make your software less useful later.</div>
</div>