Vulpes  0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
vulpes::la::DataGAMG Struct Reference

#include <gamg.hpp>

Public Attributes

double threshold = 0.0
unsigned int n_smooths = 1
unsigned int aggressive_levels = 1
unsigned int coarse_eq_limit = 1000
bool point_block_smoother = false
bool reuse_interpolation = false

Detailed Description

Options of the PETSc smoothed aggregation algebraic multigrid (PCGAMG).

The smoother is the PETSc default (Chebyshev with Jacobi), which is symmetric and can be used with CG.

Note
For DG discretizations GAMG needs the near null space of the operator (e.g. the constant function for the Laplacian): set it on the matrix with SparseMatrix::setNearNullSpace() before LinearSolver::setOperators().

Member Data Documentation

◆ aggressive_levels

unsigned int vulpes::la::DataGAMG::aggressive_levels = 1

Number of levels with aggressive coarsening, see PCGAMGSetAggressiveLevels(). It reduces the setup time and the memory but may weaken the preconditioner.

◆ coarse_eq_limit

unsigned int vulpes::la::DataGAMG::coarse_eq_limit = 1000

Maximum number of equations on the coarsest level, see PCGAMGSetCoarseEqLim().

◆ n_smooths

unsigned int vulpes::la::DataGAMG::n_smooths = 1

Number of smoothing steps of the tentative prolongator, see PCGAMGSetNSmooths(). 1 gives smoothed aggregation, 0 plain aggregation.

◆ point_block_smoother

bool vulpes::la::DataGAMG::point_block_smoother = false

Use point-block Jacobi (PCPBJACOBI) in the Chebyshev smoother of every level instead of Jacobi: the diagonal blocks of the size of the matrix block size (e.g. the dofs of a DG cell, see the aij_block_size of SparseMatrix) are inverted exactly. On the coarse levels the block size is the number of near null space vectors.

◆ reuse_interpolation

bool vulpes::la::DataGAMG::reuse_interpolation = false

Reuse the prolongators when the operator changes its values but not its sparsity pattern (e.g. a linearized operator at every time step), see PCGAMGSetReuseInterpolation(): only the coarse operators are recomputed.

◆ threshold

double vulpes::la::DataGAMG::threshold = 0.0

Relative threshold to drop the weak edges of the graph used for the aggregation, see PCGAMGSetThreshold(). 0.0 keeps all the nonzero edges, negative values keep also the zero ones. Typical values are 0.0 - 0.08.


The documentation for this struct was generated from the following file: