SpECTRE  v2025.08.19
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 = tmpl::conditional_t< std::is_same_v< void, InertialCoordsTag >, tmpl::list< Tag, MeshTag, InverseJacobianTag >, tmpl::list< Tag, MeshTag, InverseJacobianTag, InertialCoordsTag > >
 
- 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.


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