1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML3.2 EN">
<HTML>
<HEAD> <link rel="canonical" href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PCGAMG.html" />
<META NAME="GENERATOR" CONTENT="DOCTEXT">
<TITLE>PCGAMG</TITLE>
</HEAD>
<BODY BGCOLOR="FFFFFF">
<div id="version" align=right><b>petsc-3.10.3 2018-12-18</b></div>
<div id="bugreport" align=right><a href="mailto:petsc-maint@mcs.anl.gov?subject=Typo or Error in Documentation &body=Please describe the typo or error in the documentation: petsc-3.10.3 v3.10.3 docs/manualpages/PC/PCGAMG.html "><small>Report Typos and Errors</small></a></div>
<A NAME="PCGAMG"><H1>PCGAMG</H1></A>
Geometric algebraic multigrid (AMG) preconditioner
<H3><FONT COLOR="#CC3333">Options Database Keys</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_type <type> </B></TD><TD>- one of agg, geo, or classical
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_repartition <true,default=false> </B></TD><TD>- repartition the degrees of freedom accross the coarse grids as they are determined
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_reuse_interpolation <true,default=false> </B></TD><TD>- when rebuilding the algebraic multigrid preconditioner reuse the previously computed interpolations
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_asm_use_agg <true,default=false> </B></TD><TD>- use the aggregates from the coasening process to defined the subdomains on each level for the <A HREF="../PC/PCASM.html#PCASM">PCASM</A> smoother
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_process_eq_limit <limit, default=50> </B></TD><TD>- GAMG will reduce the number of MPI processes used directly on the coarse grids so that there are around <limit>
equations on each process that has degrees of freedom
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_coarse_eq_limit <limit, default=50> </B></TD><TD>- Set maximum number of equations on coarsest grid to aim for.
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_threshold[] <thresh,default=0> </B></TD><TD>- Before aggregating the graph GAMG will remove small values from the graph on each level
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_threshold_scale <scale,default=1> </B></TD><TD>- Scaling of threshold on each coarser grid if not specified
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Options Database Keys for default Aggregation</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_agg_nsmooths <nsmooth, default=1> </B></TD><TD>- number of smoothing steps to use with smooth aggregation
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_sym_graph <true,default=false> </B></TD><TD>- symmetrize the graph before computing the aggregation
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_gamg_square_graph <n,default=1> </B></TD><TD>- number of levels to square the graph before aggregating it
</TD></TR></TABLE>
<P>
<H3><FONT COLOR="#CC3333">Multigrid options</FONT></H3>
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_mg_cycles <v> </B></TD><TD>- v or w, see <A HREF="../PC/PCMGSetCycleType.html#PCMGSetCycleType">PCMGSetCycleType</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_mg_distinct_smoothup </B></TD><TD>- configure the up and down (pre and post) smoothers separately, see <A HREF="../PC/PCMGSetDistinctSmoothUp.html#PCMGSetDistinctSmoothUp">PCMGSetDistinctSmoothUp</A>()
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_mg_type <multiplicative> </B></TD><TD>- (one of) additive multiplicative full kascade
</TD></TR>
<TR><TD WIDTH=40></TD><TD ALIGN=LEFT VALIGN=TOP><B>-pc_mg_levels <levels> </B></TD><TD>- Number of levels of multigrid to use.
</TD></TR></TABLE>
<P>
<P>
<H3><FONT COLOR="#CC3333">Notes</FONT></H3>
In order to obtain good performance for <A HREF="../PC/PCGAMG.html#PCGAMG">PCGAMG</A> for vector valued problems you must
Call <A HREF="../Mat/MatSetBlockSize.html#MatSetBlockSize">MatSetBlockSize</A>() to indicate the number of degrees of freedom per grid point
Call <A HREF="../Mat/MatSetNearNullSpace.html#MatSetNearNullSpace">MatSetNearNullSpace</A>() (or <A HREF="../PC/PCSetCoordinates.html#PCSetCoordinates">PCSetCoordinates</A>() if solving the equations of elasticity) to indicate the near null space of the operator
See the Users Manual Chapter 4 for more details
<P>
<P>
<P>
<H3><FONT COLOR="#CC3333">See Also</FONT></H3>
<A HREF="../PC/PCCreate.html#PCCreate">PCCreate</A>(), <A HREF="../PC/PCSetType.html#PCSetType">PCSetType</A>(), <A HREF="../Mat/MatSetBlockSize.html#MatSetBlockSize">MatSetBlockSize</A>(), <A HREF="../PC/PCMGType.html#PCMGType">PCMGType</A>, <A HREF="../PC/PCSetCoordinates.html#PCSetCoordinates">PCSetCoordinates</A>(), <A HREF="../Mat/MatSetNearNullSpace.html#MatSetNearNullSpace">MatSetNearNullSpace</A>(), <A HREF="../PC/PCGAMGSetType.html#PCGAMGSetType">PCGAMGSetType</A>(), PCGAMGAGG, PCGAMGGEO, PCGAMGCLASSICAL, <A HREF="../PC/PCGAMGSetProcEqLim.html#PCGAMGSetProcEqLim">PCGAMGSetProcEqLim</A>(),
<BR><A HREF="../PC/PCGAMGSetCoarseEqLim.html#PCGAMGSetCoarseEqLim">PCGAMGSetCoarseEqLim</A>(), <A HREF="../PC/PCGAMGSetRepartition.html#PCGAMGSetRepartition">PCGAMGSetRepartition</A>(), <A HREF="../PC/PCGAMGRegister.html#PCGAMGRegister">PCGAMGRegister</A>(), <A HREF="../PC/PCGAMGSetReuseInterpolation.html#PCGAMGSetReuseInterpolation">PCGAMGSetReuseInterpolation</A>(), <A HREF="../PC/PCGAMGASMSetUseAggs.html#PCGAMGASMSetUseAggs">PCGAMGASMSetUseAggs</A>(), <A HREF="../PC/PCGAMGSetUseParallelCoarseGridSolve.html#PCGAMGSetUseParallelCoarseGridSolve">PCGAMGSetUseParallelCoarseGridSolve</A>(), <A HREF="../PC/PCGAMGSetNlevels.html#PCGAMGSetNlevels">PCGAMGSetNlevels</A>(), <A HREF="../PC/PCGAMGSetThreshold.html#PCGAMGSetThreshold">PCGAMGSetThreshold</A>(), <A HREF="../PC/PCGAMGGetType.html#PCGAMGGetType">PCGAMGGetType</A>(), <A HREF="../PC/PCGAMGSetReuseInterpolation.html#PCGAMGSetReuseInterpolation">PCGAMGSetReuseInterpolation</A>()
<P><B></B><H3><FONT COLOR="#CC3333">Level</FONT></H3>intermediate<BR>
<H3><FONT COLOR="#CC3333">Location</FONT></H3>
</B><A HREF="../../../src/ksp/pc/impls/gamg/gamg.c.html#PCGAMG">src/ksp/pc/impls/gamg/gamg.c</A>
<BR><A HREF="./index.html">Index of all PC routines</A>
<BR><A HREF="../../index.html">Table of Contents for all manual pages</A>
<BR><A HREF="../singleindex.html">Index of all manual pages</A>
</BODY></HTML>
|