Using -pctype mg -pcmgtype PC_MG_MULTIPLICATIVE

Hong Zhang hzhang at mcs.anl.gov
Wed Aug 15 21:02:28 CDT 2007



On Thu, 16 Aug 2007, Ben Tay wrote:

> Hi,
>
> I found that there's a multigrid option in the manual which can be used
> by adding -pctype mg -pcmgtype PC_MG_MULTIPLICATIVE.

Should be
 '-pc_type mg -pc_mg_type MULTIPLICATIVE'
Use '-ksp_view' or '-snes_view' to check which PC and parameters are
being used.

Hong
>
> However, it seems that I am actually just using LU since with or without
> this option, I got exactly the same answer. Am I using multigrid the
> wrong way?
>
> Thanks
>
>




More information about the petsc-users mailing list