SpECTRE  2021.08.02
grmhd::ValenciaDivClean::subcell::FixConservativesAndComputePrims< OrderedListOfRecoverySchemes > Struct Template Reference

Fix the conservative variables and compute the primitive variables. More...

#include <FixConservativesAndComputePrims.hpp>

Public Types

using return_tags = tmpl::list< ValenciaDivClean::Tags::VariablesNeededFixing, typename System::variables_tag, typename System::primitive_variables_tag >
 
using argument_tags = tmpl::list< ::Tags::VariableFixer< grmhd::ValenciaDivClean::FixConservatives >, hydro::Tags::EquationOfStateBase, gr::Tags::SpatialMetric< 3, Frame::Inertial, DataVector >, gr::Tags::InverseSpatialMetric< 3, Frame::Inertial, DataVector >, gr::Tags::SqrtDetSpatialMetric< DataVector > >
 

Static Public Member Functions

template<size_t ThermodynamicDim>
static void apply (gsl::not_null< bool * > needed_fixing, gsl::not_null< typename System::variables_tag::type * > conserved_vars_ptr, gsl::not_null< Variables< hydro::grmhd_tags< DataVector > > * > primitive_vars_ptr, const grmhd::ValenciaDivClean::FixConservatives &fix_conservatives, const EquationsOfState::EquationOfState< true, ThermodynamicDim > &eos, const tnsr::ii< DataVector, 3, Frame::Inertial > &spatial_metric, const tnsr::II< DataVector, 3, Frame::Inertial > &inv_spatial_metric, const Scalar< DataVector > &sqrt_det_spatial_metric) noexcept
 

Detailed Description

template<typename OrderedListOfRecoverySchemes>
struct grmhd::ValenciaDivClean::subcell::FixConservativesAndComputePrims< OrderedListOfRecoverySchemes >

Fix the conservative variables and compute the primitive variables.

Sets ValenciaDivClean::Tags::VariablesNeededFixing to true if the conservative variables needed fixing, otherwise sets the tag to false.