specfem::point::field_derivatives

template<specfem::dimension::type DimensionTag, specfem::element::medium_tag MediumTag, bool UseSIMD>
struct field_derivatives : public specfem::data_access::Accessor<specfem::data_access::AccessorType::point, specfem::data_access::DataClassType::field_derivatives, DimensionTag, UseSIMD>

Store field derivatives for a quadrature point.

The field derivatives are given by: \( du_{i,k} = \partial_i u_k \)

Template Parameters:
  • DimensionTag – The dimension of the element where the quadrature point is located

  • MediumTag – The medium of the element where the quadrature point is located

  • UseSIMD – Use SIMD instructions

Typedefs

using simd = typename base_type::template simd<type_real>

SIMD data type.

Compile time constants

static constexpr auto medium_tag = MediumTag

Medium tag for the element.

Constructors

field_derivatives() = default

Default constructor.

inline field_derivatives(const value_type &du)

Constructor.

Parameters:

du – Field derivatives

Public Members

value_type du

View to store the field derivatives.