MFEM  v4.5.2
Finite element discretization library
Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
mfem::TPiecewiseConstCoefficient< complex_t > Class Template Reference

#include <tcoefficient.hpp>

Inheritance diagram for mfem::TPiecewiseConstCoefficient< complex_t >:
Collaboration diagram for mfem::TPiecewiseConstCoefficient< complex_t >:

Public Types

typedef complex_t complex_type

Public Member Functions

 TPiecewiseConstCoefficient (const Vector &constants)
 Note: in the input array index i corresponds to mesh attribute i+1. More...
template<typename T_result_t , typename c_layout_t , typename c_data_t >
MFEM_ALWAYS_INLINE void Eval (const T_result_t &T, const c_layout_t &l, c_data_t &c)

Static Public Attributes

static const bool uses_attributes = true
- Static Public Attributes inherited from mfem::TCoefficient
static const int rank = 0
static const bool is_const = false
static const bool uses_coordinates = false
static const bool uses_Jacobians = false
static const bool uses_attributes = false
static const bool uses_element_idxs = false

Protected Attributes

Vector constants

Detailed Description

template<typename complex_t = double>
class mfem::TPiecewiseConstCoefficient< complex_t >

Piecewise constant coefficient class. The subdomains where the coefficient is constant are given by the mesh attributes.

Definition at line 167 of file tcoefficient.hpp.

Member Typedef Documentation

◆ complex_type

template<typename complex_t = double>
typedef complex_t mfem::TPiecewiseConstCoefficient< complex_t >::complex_type

Definition at line 171 of file tcoefficient.hpp.

Constructor & Destructor Documentation

◆ TPiecewiseConstCoefficient()

template<typename complex_t = double>
mfem::TPiecewiseConstCoefficient< complex_t >::TPiecewiseConstCoefficient ( const Vector constants)

Note: in the input array index i corresponds to mesh attribute i+1.

Definition at line 178 of file tcoefficient.hpp.

Member Function Documentation

◆ Eval()

template<typename complex_t = double>
template<typename T_result_t , typename c_layout_t , typename c_data_t >
MFEM_ALWAYS_INLINE void mfem::TPiecewiseConstCoefficient< complex_t >::Eval ( const T_result_t &  T,
const c_layout_t &  l,
c_data_t &  c 

Definition at line 184 of file tcoefficient.hpp.

Member Data Documentation

◆ constants

template<typename complex_t = double>
Vector mfem::TPiecewiseConstCoefficient< complex_t >::constants

Definition at line 174 of file tcoefficient.hpp.

◆ uses_attributes

template<typename complex_t = double>
const bool mfem::TPiecewiseConstCoefficient< complex_t >::uses_attributes = true

Definition at line 170 of file tcoefficient.hpp.

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