[petsc-users] Controlling ML
Satish Balay
balay at mcs.anl.gov
Fri Jul 8 13:39:25 CDT 2011
looks like there is no interface function to set this option.
Alternative: use optionsprefix to distuingish diffrent solves
KSPSetOptionsPrefix(ksp1,"solver1_")
KSPSetOptionsPrefix(ksp2,"solver2_")
PetscOptionsSetValue("-solver1_pc_ml_maxNlevels","3");
PetscOptionsSetValue("-solver2_pc_ml_maxNlevels","4");
etc..
Satish
On Fri, 8 Jul 2011, John Fettig wrote:
> Is there any way to control ML other than the options database? For
> example, I want to set -pc_ml_maxNlevels 3, but there seems to be no
> way to do it other than
>
> a) the command line or
> b) PetscOptionsSetValue("-pc_ml_maxNlevels","3");
>
> This doesn't make it easy if you want to have more than one PCML.
>
> John
>
More information about the petsc-users
mailing list