[petsc-users] Setting GAMG options C code

Harshad Sahasrabudhe hsahasra at purdue.edu
Tue Jul 4 07:54:27 CDT 2017


Thank you for the reply.


> It is better to set pass the options directly to the objects. For instance
> the following example calls EPSGetST(), STGetKSP(), KSPGetPC() to extract
> objects that are nested one inside the other:
>

> Jose
>

 I was only able to set PCTYPE, KSPTYPE, -st_pc_gamg_agg_nsmooths 1
and -st_pc_gamg_threshold
0.01 that way. How do I set the options for the PCMG object inside
PCGAMG: "-st_mg_levels_ksp_type
chebyshev", "-st_mg_levels_pc_type jacobi",  "-st_mg_levels_ksp_max_it 8"?

Thanks,
Harshad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170704/8b9ea139/attachment-0001.html>


More information about the petsc-users mailing list