Template Struct element_data_element_competence

Inheritance Relationships

Base Type

Struct Documentation

template<typename TUnderlying>
struct element_data_element_competence : public t8_crtp_basic<TUnderlying>

Element competence to enable that element data can be accessed directly for each element of the mesh.

Note

This competence requires that the mesh has the element_data_mesh_competence_impl (or element_data_mesh_competence) competence that defines the element data vector and the element data type.

Template Parameters:

TUnderlying – Use the element with specified competences as template parameter.

Public Functions

inline void set_element_data(auto element_data)

Set the element data for the element.

Note

You can only set element data for non-ghost elements.

Parameters:

element_data[in] The element data to be set of Type TMeshClass::ElementDataType. element_data is moved, not copied.

inline const auto &get_element_data() const

Getter for the element data.

For ghost elements ensure that element_data_mesh_competence_impl::exchange_ghost_data is called on each process first. Element data for non-ghost elements can be accessed (if set) directly.

Returns:

Element data with data of Type TMeshClass::ElementDataType.