![]() |
Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
|
#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 |
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.
| 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.
| unsigned int vulpes::la::DataGAMG::coarse_eq_limit = 1000 |
Maximum number of equations on the coarsest level, see PCGAMGSetCoarseEqLim().
| 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.
| 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.
| 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.
| 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.