GEOS
Classes | Namespaces | Functions
HypreMGR.hpp File Reference
#include "linearAlgebra/common/common.hpp"
#include "linearAlgebra/DofManager.hpp"
#include "linearAlgebra/interfaces/hypre/HypreUtils.hpp"
#include "linearAlgebra/utilities/LinearSolverParameters.hpp"
#include <_hypre_utilities.h>

Go to the source code of this file.

Classes

struct  geos::HypreMGRData
 Container for hypre preconditioner auxiliary data for MGR. More...
 
class  geos::hypre::mgr::MGRStrategyBase< NLEVEL >
 Helper struct for strategies that provides some basic parameter arrays needed by MGR. More...
 

Namespaces

 geos
 
 geos::hypre
 Contains some hypre-specific functions.
 

Functions

template<typename STRATEGY >
void geos::hypre::mgr::setStrategy (LinearSolverParameters::MGR const &params, arrayView1d< int const > const &numComponentsPerField, HyprePrecWrapper &precond, HypreMGRData &mgrData)
 Helper to simplify MGR setup. More...
 
void geos::hypre::mgr::createMGR (LinearSolverParameters const &params, DofManager const *const dofManager, HyprePrecWrapper &precond, HypreMGRData &mgrData)
 Create the MGR preconditioner object. More...
 

Function Documentation

◆ createMGR()

void geos::hypre::mgr::createMGR ( LinearSolverParameters const &  params,
DofManager const *const  dofManager,
HyprePrecWrapper precond,
HypreMGRData mgrData 
)

Create the MGR preconditioner object.

Parameters
paramspreconditioner parameters
dofManagerpointer to DofManager for the linear system
precondthe preconditioner
mgrDataauxiliary data for MGR

◆ setStrategy()

template<typename STRATEGY >
void geos::hypre::mgr::setStrategy ( LinearSolverParameters::MGR const &  params,
arrayView1d< int const > const &  numComponentsPerField,
HyprePrecWrapper precond,
HypreMGRData mgrData 
)

Helper to simplify MGR setup.

Template Parameters
STRATEGYstrategy class (one of structs defined below)
Parameters
paramsMGR parameters
numComponentsPerFieldarray containing number of components in each field
precondthe preconditioner wrapper
mgrDataadditional MGR data struct with marker array populated

Definition at line 59 of file HypreMGR.hpp.