Note: this is documentation for an old release. View the latest documentation at docs.fenicsproject.org/dolfinx/v0.9.0/cpp/doxygen/dc/d73/structdolfinx_1_1fem_1_1integral__data.html
DOLFINx 0.8.0
DOLFINx C++ interface
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
integral_data< T, U > Struct Template Reference

Represents integral data, containing the integral ID, the kernel, and a list of entities to integrate over. More...

#include <Form.h>

Public Member Functions

template<typename K , typename V >
requires std::is_convertible_v< std::remove_cvref_t<K>, std::function<void(T*, const T*, const T*, const U*, const int*, const uint8_t*)>> and std::is_convertible_v<std::remove_cvref_t<V>, std::vector<std::int32_t>>
 integral_data (int id, K &&kernel, V &&entities)
 Create a structure to hold integral data.
 
template<typename K >
requires std::is_convertible_v< std::remove_cvref_t<K>, std::function<void(T*, const T*, const T*, const U*, const int*, const uint8_t*)>>
 integral_data (int id, K &&kernel, std::span< const std::int32_t > e)
 Create a structure to hold integral data.
 

Public Attributes

int id
 Integral ID.
 
std::function< void(T *, const T *, const T *, const U *, const int *, const uint8_t *) kernel )
 The integration kernel.
 
std::vector< std::int32_t > entities
 The entities to integrate over.
 

Detailed Description

template<dolfinx::scalar T, std::floating_point U = scalar_value_type_t<T>>
struct dolfinx::fem::integral_data< T, U >

Represents integral data, containing the integral ID, the kernel, and a list of entities to integrate over.

Constructor & Destructor Documentation

◆ integral_data() [1/2]

template<dolfinx::scalar T, std::floating_point U = scalar_value_type_t<T>>
template<typename K , typename V >
requires std::is_convertible_v< std::remove_cvref_t<K>, std::function<void(T*, const T*, const T*, const U*, const int*, const uint8_t*)>> and std::is_convertible_v<std::remove_cvref_t<V>, std::vector<std::int32_t>>
integral_data ( int id,
K && kernel,
V && entities )
inline

Create a structure to hold integral data.

Template Parameters
UEntity indices type.
Parameters
idDomain ID.
kernelIntegration kernel.
entitiesEntities to integrate over.

◆ integral_data() [2/2]

template<dolfinx::scalar T, std::floating_point U = scalar_value_type_t<T>>
template<typename K >
requires std::is_convertible_v< std::remove_cvref_t<K>, std::function<void(T*, const T*, const T*, const U*, const int*, const uint8_t*)>>
integral_data ( int id,
K && kernel,
std::span< const std::int32_t > e )
inline

Create a structure to hold integral data.

Parameters
idDomain ID
kernelIntegration kernel.
eEntities to integrate over.

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