GEOSX
Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
geosx::hypre::mgr::MGRStrategyBase< NLEVEL > Class Template Reference

Helper struct for strategies that provides some basic parameter arrays needed by MGR. More...

#include <HypreMGR.hpp>

Static Public Attributes

static constexpr HYPRE_Int numLevels = NLEVEL
 Number of levels.
 

Protected Member Functions

 MGRStrategyBase (HYPRE_Int const numBlocks)
 Constructor. More...
 
void setupLabels ()
 Call this after populating lv_cindexes.
 

Protected Attributes

HYPRE_Int m_numBlocks { 0 }
 Number of different matrix blocks treated separately.
 
std::vector< HYPRE_Int > m_labels [numLevels] {}
 Dof labels kept at each level.
 
HYPRE_Int m_numLabels [numLevels] { -1 }
 Number of dof labels kept.
 
HYPRE_Int * m_ptrLabels [numLevels] { nullptr }
 Pointers to each level's labels, as consumed by MGR.
 
HYPRE_Int m_levelFRelaxMethod [numLevels] { -1 }
 F-relaxation method for each level.
 
HYPRE_Int m_levelInterpType [numLevels] { -1 }
 Interpolation type for each level.
 
HYPRE_Int m_levelRestrictType [numLevels] { -1 }
 Restriction type for each level.
 
HYPRE_Int m_levelCoarseGridMethod [numLevels] { -1 }
 Coarse grid method for each level.
 
HYPRE_Int m_numRestrictSweeps { -1 }
 Number of restrict sweeps.
 
HYPRE_Int m_numInterpSweeps { -1 }
 Number of interpolation sweeps.
 
HYPRE_Int m_fRelaxMethod { -1 }
 F-relaxation method.
 
HYPRE_Int m_relaxType { -1 }
 F-relaxation type.
 
HYPRE_Int m_numRelaxSweeps { -1 }
 F-relaxation number of sweeps.
 
HYPRE_Int m_globalSmoothType { -1 }
 Global smoothing type.
 
HYPRE_Int m_numGlobalSmoothSweeps { -1 }
 Global smoothing number of iterations.
 

Detailed Description

template<int NLEVEL>
class geosx::hypre::mgr::MGRStrategyBase< NLEVEL >

Helper struct for strategies that provides some basic parameter arrays needed by MGR.

Template Parameters
NLEVELnumber of reduction levels (not including the coarsest level)

Definition at line 71 of file HypreMGR.hpp.

Constructor & Destructor Documentation

◆ MGRStrategyBase()

template<int NLEVEL>
geosx::hypre::mgr::MGRStrategyBase< NLEVEL >::MGRStrategyBase ( HYPRE_Int const  numBlocks)
inlineexplicitprotected

Constructor.

Parameters
numBlocksnumber of blocks

Definition at line 104 of file HypreMGR.hpp.


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