<div class="gmail_quote">On Thu, Aug 30, 2012 at 11:49 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">
Ok.. but as I follow it up with :<br>
ierr=PCSetFromOptions(pc);<br>
ierr= PetscOptionsSetValue("-pc_hypre_boomeramg_relax_type_all","0"); CHKERRQ(ierr); ,<br></blockquote><div><br></div><div>You have to set the value _before_ calling PCSetFromOptions. Note that you generally don't have to call PCSetFromOptions directly, just call KSPSetFromOptions.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
on execution, the option is not recognized, as in:<br>
<br>
WARNING! There are options you set that were not used!<br>
WARNING! could be spelling mistake, etc!<br>
Option left: name:-pc_hypre_boomeramg_relax_type_all value: 0<br>
<br>
is returned.<br>
<br>
I used the value of zero to employ the Jacobi smoother defined in the Hypre Ref manual.<br></blockquote><div><br></div><div>We think that cryptic non-sequential numbers are a terrible interface so this option takes a string.</div>
<div><br></div><div><div>$ ./ex2 -pc_type hypre -help |grep relax_</div><div> -pc_hypre_boomeramg_relax_type_all <symmetric-SOR/Jacobi> (choose one of) Jacobi sequential-Gauss-Seidel seqboundary-Gauss-Seidel SOR/Jacobi backward-SOR/Jacobi symmetric-SOR/Jacobi l1scaled-SOR/Jacobi Gaussian-elimination (None)</div>
<div> -pc_hypre_boomeramg_relax_type_down <symmetric-SOR/Jacobi> (choose one of) Jacobi sequential-Gauss-Seidel seqboundary-Gauss-Seidel SOR/Jacobi backward-SOR/Jacobi symmetric-SOR/Jacobi l1scaled-SOR/Jacobi Gaussian-elimination (None)</div>
<div> -pc_hypre_boomeramg_relax_type_up <symmetric-SOR/Jacobi> (choose one of) Jacobi sequential-Gauss-Seidel seqboundary-Gauss-Seidel SOR/Jacobi backward-SOR/Jacobi symmetric-SOR/Jacobi l1scaled-SOR/Jacobi Gaussian-elimination (None)</div>
<div> -pc_hypre_boomeramg_relax_type_coarse <Gaussian-elimination> (choose one of) Jacobi sequential-Gauss-Seidel seqboundary-Gauss-Seidel SOR/Jacobi backward-SOR/Jacobi symmetric-SOR/Jacobi l1scaled-SOR/Jacobi Gaussian-elimination (None)</div>
<div> -pc_hypre_boomeramg_relax_weight_all <1>: Relaxation weight for all levels (0 = hypre estimates, -k = determined with k CG steps) (None)</div><div> -pc_hypre_boomeramg_relax_weight_level <1>: Set the relaxation weight for a particular level (weight,level) (None)</div>
<div> -pc_hypre_boomeramg_outer_relax_weight_all <1>: Outer relaxation weight for all levels ( -k = determined with k CG steps) (None)</div><div> -pc_hypre_boomeramg_outer_relax_weight_level <1>: Set the outer relaxation weight for a particular level (weight,level) (None)<br>
</div></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
So could you please let me know what could I do make it work?<br>
(Since I want to access all solvers and options through a 'control'/ 'config' file,</blockquote><div><br></div><div>Why not put it all in an options file?</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I can't ask for the option at the the command prompt )<br>
Thanks.<br>
<br>
<br>
<br>
<br>
</blockquote></div><br>