<div class="gmail_quote">On Wed, Mar 14, 2012 at 04:00, Jarunan Panyasantisuk <span dir="ltr"><<a href="mailto:jarunan@ascomp.ch">jarunan@ascomp.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear PETSc team,<br>
<br>
I have a problem setting options for Hypre/BoomerAMG. I am trying to set these options in the code:<br>
<br>
1 call PetscOptionsSetValue('-pc_<u></u>hypre_boomeramg_max_iter','0',<u></u>ierr)<br>
2 call PetscOptionsSetValue('-pc_<u></u>hypre_boomeramg_coarsen_type',<u></u>'HMIS',ierr)<br>
3 call PetscOptionsSetValue('-pc_<u></u>hypre_boomeramg_interp_type','<u></u>ext+i',ierr)<br>
4 call PetscOptionsSetValue('-pc_<u></u>hypre_boomeramg_P_max','4',<u></u>ierr)<br>
5 call PetscOptionsSetValue('-pc_<u></u>hypre_boomeramg_strong_<u></u>threshold','4',ierr)<br>
<br>
The only option it takes is -pc_hypre_boomeramg_max_iter, the others appear as left over options at the end.</blockquote><div><br></div><div>Are you sure there isn't an error raised and not checked? The options are all checked in the same function, so there is no reason the latter ones would not be reached.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> My questions are:<br>
<br>
- Can the options in line 2 to 5 used only on a specific architecture e.g. only on a cluster?<br></blockquote><div><br></div><div>no</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
- Is there a certain order in setting these options? Can I set it anywhere in my code e.g. after set -ksp_type?<br></blockquote><div><br></div><div>You can set it anywhere before PCSetFromOptions() which is probably called via KSPSetFromOptions or SNESSetFromOptions().</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
The things I am trying to do is to reuse the solvers and preconditioners for several equations and reset only their solver/preconds type. If you have any advice, I would appreciate.<br></blockquote><div><br></div><div>You are solving different equations several times and trying to reuse? Or you are iterating on a nonlinear problem?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thank you in advance<br>
Jarunan<br><font color="#888888">
<br>
-- <br>
Development Engineer<br>
<br>
ASCOMP GmbH<br>
Technoparkstrasse 1<br>
Newton 1004<br>
8005 Zurich<br>
Switzerland<br>
Tel: <a href="tel:%2B41%2044%20445%204072" value="+41444454072" target="_blank">+41 44 445 4072</a><br>
Fax: <a href="tel:%2B41%2044%20445%204075" value="+41444454075" target="_blank">+41 44 445 4075</a><br>
<a href="http://www.ascomp.ch" target="_blank">www.ascomp.ch</a><br>
<br>
</font></blockquote></div><br>