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

#include <boomer_amg.hpp>

Public Types

enum class  RelaxationType {
  Jacobi , sequentialGaussSeidel , seqboundaryGaussSeidel , SORJacobi ,
  backwardSORJacobi , symmetricSORJacobi , l1scaledSORJacobi , GaussianElimination ,
  l1GaussSeidel , backwardl1GaussSeidel , CG , Chebyshev ,
  FCFJacobi , l1scaledJacobi
}

Public Attributes

bool symmetric_operator = false
double strong_threshold = 0.25
double max_row_sum = 0.9
unsigned int aggressive_coarsening_num_levels = 0
bool output_details = false
RelaxationType relaxation_type_up = RelaxationType::SORJacobi
RelaxationType relaxation_type_down = RelaxationType::SORJacobi
RelaxationType relaxation_type_coarse = RelaxationType::GaussianElimination
unsigned int n_sweeps_coarse = 1
double tol = 0.0
unsigned int max_iter = 1
bool w_cycle = false

Member Enumeration Documentation

◆ RelaxationType

Defines the available relaxation types for BoomerAMG.

Enumerator
Jacobi 
sequentialGaussSeidel 
seqboundaryGaussSeidel 
SORJacobi 
backwardSORJacobi 
symmetricSORJacobi 
l1scaledSORJacobi 
GaussianElimination 
l1GaussSeidel 
backwardl1GaussSeidel 
CG 
Chebyshev 
FCFJacobi 
l1scaledJacobi 

Member Data Documentation

◆ aggressive_coarsening_num_levels

unsigned int vulpes::la::DataBoomerAMG::aggressive_coarsening_num_levels = 0

Number of levels of aggressive coarsening. Increasing this value reduces the construction time and memory requirements but may decrease effectiveness.

◆ max_iter

unsigned int vulpes::la::DataBoomerAMG::max_iter = 1

Choose BommerAMG maximum number of cycles.

◆ max_row_sum

double vulpes::la::DataBoomerAMG::max_row_sum = 0.9

If set to a value smaller than 1.0 then diagonally dominant parts of the matrix are treated as having no strongly connected nodes. If the row sum weighted by the diagonal entry is bigger than the given value, it is considered diagonally dominant. This feature is turned of by setting the value to 1.0. This is the default as some matrices can result in having only diagonally dominant entries and thus no multigrid levels are constructed. The default in BoomerAMG for this is 0.9. When you try this, check for a reasonable number of levels created.

◆ n_sweeps_coarse

unsigned int vulpes::la::DataBoomerAMG::n_sweeps_coarse = 1

Choose number of sweeps on coarse grid.

◆ output_details

bool vulpes::la::DataBoomerAMG::output_details = false

Setting this flag to true produces debug output from HYPRE, when the preconditioner is constructed.

◆ relaxation_type_coarse

RelaxationType vulpes::la::DataBoomerAMG::relaxation_type_coarse = RelaxationType::GaussianElimination

Choose relaxation type coarse.

◆ relaxation_type_down

RelaxationType vulpes::la::DataBoomerAMG::relaxation_type_down = RelaxationType::SORJacobi

Choose relaxation type down.

◆ relaxation_type_up

RelaxationType vulpes::la::DataBoomerAMG::relaxation_type_up = RelaxationType::SORJacobi

Choose relaxation type up.

◆ strong_threshold

double vulpes::la::DataBoomerAMG::strong_threshold = 0.25

Threshold of when nodes are considered strongly connected. See HYPRE_BoomerAMGSetStrongThreshold(). Recommended values are 0.25 for 2d and 0.5 for 3d problems, but it is problem dependent.

◆ symmetric_operator

bool vulpes::la::DataBoomerAMG::symmetric_operator = false

Set this flag to true if you have a symmetric system matrix and you want to use a solver which assumes a symmetric preconditioner like CG.

◆ tol

double vulpes::la::DataBoomerAMG::tol = 0.0

Choose BommerAMG tolerance.

◆ w_cycle

bool vulpes::la::DataBoomerAMG::w_cycle = false

Defines whether a w-cycle should be used instead of the standard setting of a v-cycle.


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