MFEM  v4.4.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Static Public Member Functions | List of all members
mfem::Hypre Class Reference

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...
 

Detailed Description

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.

Definition at line 59 of file hypre.hpp.

Member Function Documentation

void mfem::Hypre::Finalize ( )
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.

Definition at line 45 of file hypre.cpp.

static void mfem::Hypre::Init ( )
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.

Definition at line 67 of file hypre.hpp.


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