SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
Tags::DivVectorCompute< Tag, MeshTag, InverseJacobianTag, InertialCoordsTag > Struct Template Reference

Compute the divergence of a tnsr::I (vector) More...

#include <Divergence.hpp>

Public Types

using base = div<Tag>
using return_type = typename base::type
using argument_tags
Public Types inherited from Tags::div< Tag >
using tag = Tag
using type = TensorMetafunctions::remove_first_index<typename Tag::type>

Static Public Member Functions

static constexpr void function (const gsl::not_null< return_type * > div_input, const typename Tag::type &input, const Mesh< dim > &mesh, const typename InverseJacobianTag::type &inverse_jacobian)
static constexpr void function (const gsl::not_null< return_type * > div_input, const typename Tag::type &input, const Mesh< dim > &mesh, const typename InverseJacobianTag::type &inverse_jacobian, const tnsr::I< DataVector, dim, Frame::Inertial > &inertial_coords)

Detailed Description

template<typename Tag, typename MeshTag, typename InverseJacobianTag, typename InertialCoordsTag = void>
struct Tags::DivVectorCompute< Tag, MeshTag, InverseJacobianTag, InertialCoordsTag >

Compute the divergence of a tnsr::I (vector)

This tag inherits from db::add_tag_prefix<Tags::div, Tag>.

For an executable that does not allow a Cartoon basis, the last parameter, InertialCoordsTag, should not be passed.

Member Typedef Documentation

◆ argument_tags

template<typename Tag, typename MeshTag, typename InverseJacobianTag, typename InertialCoordsTag = void>
using Tags::DivVectorCompute< Tag, MeshTag, InverseJacobianTag, InertialCoordsTag >::argument_tags
Initial value:
tmpl::conditional_t<
tmpl::list<Tag, MeshTag, InverseJacobianTag>,
tmpl::list<Tag, MeshTag, InverseJacobianTag, InertialCoordsTag>>
T is_same_v

The documentation for this struct was generated from the following file:
  • src/NumericalAlgorithms/LinearOperators/Divergence.hpp