MFEM  v4.6.0
Finite element discretization library
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 72 of file hypre.hpp.

Member Function Documentation

◆ Finalize()

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 41 of file hypre.cpp.

◆ Init()

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 80 of file hypre.hpp.


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