MFEM
v4.5.1
Finite element discretization library
|
A simple singleton class for hypre's global settings, that 1) calls HYPRE_Init() and sets some GPU-relevant options at construction and 2) calls HYPRE_Finalize() at destruction. More...
#include <hypre.hpp>
Static Public Member Functions | |
static void | Init () |
Initialize hypre by calling HYPRE_Init() and set default options. After calling Hypre::Init(), hypre will be finalized automatically at program exit. More... | |
static void | Finalize () |
Finalize hypre (called automatically at program exit if Hypre::Init() has been called). More... | |
A simple singleton class for hypre's global settings, that 1) calls HYPRE_Init() and sets some GPU-relevant options at construction and 2) calls HYPRE_Finalize() at destruction.
|
static |
Finalize hypre (called automatically at program exit if Hypre::Init() has been called).
Multiple calls to Hypre::Finalize() have no effect. This function can be called manually to more precisely control when hypre is finalized.
|
inlinestatic |
Initialize hypre by calling HYPRE_Init() and set default options. After calling Hypre::Init(), hypre will be finalized automatically at program exit.
Calling HYPRE_Finalize() manually is not compatible with this class.