MFEM  v3.4
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
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 >:
[legend]
Collaboration diagram for mfem::TPiecewiseConstCoefficient< complex_t >:
[legend]

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 153 of file tcoefficient.hpp.

Member Typedef Documentation

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

Definition at line 157 of file tcoefficient.hpp.

Constructor & Destructor Documentation

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

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

Definition at line 164 of file tcoefficient.hpp.

Member Function Documentation

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 
)
inline

Definition at line 170 of file tcoefficient.hpp.

Member Data Documentation

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

Definition at line 160 of file tcoefficient.hpp.

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

Definition at line 156 of file tcoefficient.hpp.


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