Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::HypreDefaults Namespace Reference

BoomerAMG defaults. More...

Functions

void setGpuOptions (HYPRE_Solver solver)
 Coarsening, interpolation and transpose options for GPU builds.
 

Variables

constexpr bool gpu = false
 
constexpr bool old_default = !gpu
 Falgout coarsening with modified classical interpolation.
 
constexpr int coarsen_type = gpu ? 8 : 6
 
constexpr int interp_type = gpu ? 6 : 0
 
constexpr int pmax_elmts = 4
 
constexpr int keep_transpose = gpu ? 1 : 0
 
constexpr int relax_type = gpu ? 18 : 6
 
constexpr int relax_order = gpu ? 0 : 1
 

Detailed Description

BoomerAMG defaults.

GPU builds of HYPRE get HYPRE's recommended GPU options (PMIS coarsening, extended+i interpolation, l1-Jacobi relaxation in natural order, kept transposes); CPU builds keep the classical settings.

Function Documentation

◆ setGpuOptions()

void amrex::HypreDefaults::setGpuOptions ( HYPRE_Solver  solver)
inline

Coarsening, interpolation and transpose options for GPU builds.

Variable Documentation

◆ coarsen_type

constexpr int amrex::HypreDefaults::coarsen_type = gpu ? 8 : 6
inlineconstexpr

◆ gpu

constexpr bool amrex::HypreDefaults::gpu = false
inlineconstexpr

◆ interp_type

constexpr int amrex::HypreDefaults::interp_type = gpu ? 6 : 0
inlineconstexpr

◆ keep_transpose

constexpr int amrex::HypreDefaults::keep_transpose = gpu ? 1 : 0
inlineconstexpr

◆ old_default

constexpr bool amrex::HypreDefaults::old_default = !gpu
inlineconstexpr

Falgout coarsening with modified classical interpolation.

◆ pmax_elmts

constexpr int amrex::HypreDefaults::pmax_elmts = 4
inlineconstexpr

◆ relax_order

constexpr int amrex::HypreDefaults::relax_order = gpu ? 0 : 1
inlineconstexpr

◆ relax_type

constexpr int amrex::HypreDefaults::relax_type = gpu ? 18 : 6
inlineconstexpr