[petsc-users] AMG options
Jarunan Panyasantisuk
jarunan at ascomp.ch
Wed Mar 14 04:00:11 CDT 2012
Dear PETSc team,
I have a problem setting options for Hypre/BoomerAMG. I am trying to set
these options in the code:
1 call PetscOptionsSetValue('-pc_hypre_boomeramg_max_iter','0',ierr)
2 call PetscOptionsSetValue('-pc_hypre_boomeramg_coarsen_type','HMIS',ierr)
3 call PetscOptionsSetValue('-pc_hypre_boomeramg_interp_type','ext+i',ierr)
4 call PetscOptionsSetValue('-pc_hypre_boomeramg_P_max','4',ierr)
5 call PetscOptionsSetValue('-pc_hypre_boomeramg_strong_threshold','4',ierr)
The only option it takes is -pc_hypre_boomeramg_max_iter, the others
appear as left over options at the end. My questions are:
- Can the options in line 2 to 5 used only on a specific architecture
e.g. only on a cluster?
- Is there a certain order in setting these options? Can I set it
anywhere in my code e.g. after set -ksp_type?
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.
Thank you in advance
Jarunan
--
Development Engineer
ASCOMP GmbH
Technoparkstrasse 1
Newton 1004
8005 Zurich
Switzerland
Tel: +41 44 445 4072
Fax: +41 44 445 4075
www.ascomp.ch
More information about the petsc-users
mailing list