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

Possible basis types. Note that not all elements can use all BasisType(s). More...

#include <fe_coll.hpp>

Public Types

enum  {
  GaussLegendre = 0, GaussLobatto = 1, Positive = 2, OpenUniform = 3,
  ClosedUniform = 4, OpenHalfUniform = 5
}
 

Static Public Member Functions

static int Check (int b_type)
 If the input does not represents a valid BasisType, abort with an error; otherwise return the input. More...
 
static int GetQuadrature1D (int b_type)
 Get the corresponding Quadrature1D constant, when that makes sense; otherwise return Quadrature1D::Invalid. More...
 
static const char * Name (int b_type)
 Check and convert a BasisType constant to a string identifier. More...
 
static char GetChar (int b_type)
 Check and convert a BasisType constant to a char basis identifier. More...
 
static int GetType (char b_ident)
 Convert char basis identifier to a BasisType constant. More...
 

Detailed Description

Possible basis types. Note that not all elements can use all BasisType(s).

Definition at line 23 of file fe_coll.hpp.

Member Enumeration Documentation

anonymous enum
Enumerator
GaussLegendre 

Open type.

GaussLobatto 

Closed type.

Positive 

Bernstein polynomials.

OpenUniform 

Nodes: x_i = (i+1)/(n+1), i=0,...,n-1.

ClosedUniform 

Nodes: x_i = i/(n-1), i=0,...,n-1.

OpenHalfUniform 

Nodes: x_i = (i+1/2)/n, i=0,...,n-1.

Definition at line 26 of file fe_coll.hpp.

Member Function Documentation

static int mfem::BasisType::Check ( int  b_type)
inlinestatic

If the input does not represents a valid BasisType, abort with an error; otherwise return the input.

Definition at line 37 of file fe_coll.hpp.

static char mfem::BasisType::GetChar ( int  b_type)
inlinestatic

Check and convert a BasisType constant to a char basis identifier.

Definition at line 67 of file fe_coll.hpp.

static int mfem::BasisType::GetQuadrature1D ( int  b_type)
inlinestatic

Get the corresponding Quadrature1D constant, when that makes sense; otherwise return Quadrature1D::Invalid.

Definition at line 44 of file fe_coll.hpp.

static int mfem::BasisType::GetType ( char  b_ident)
inlinestatic

Convert char basis identifier to a BasisType constant.

Definition at line 73 of file fe_coll.hpp.

static const char* mfem::BasisType::Name ( int  b_type)
inlinestatic

Check and convert a BasisType constant to a string identifier.

Definition at line 57 of file fe_coll.hpp.


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