Public Types | Static Public Member Functions | List of all members
NewtonianEuler::subcell::PrimsAfterRollback< Dim > Struct Template Reference

Mutator that resizes the primitive variables to the subcell mesh and computes the primitives, but only if evolution::dg::subcell::Tags::DidRollback is true. More...

#include <PrimsAfterRollback.hpp>

Public Types

using return_tags = tmpl::list<::Tags::Variables< tmpl::list< MassDensity, Velocity, SpecificInternalEnergy, Pressure > >>
 
using argument_tags = tmpl::list< evolution::dg::subcell::Tags::DidRollback, evolution::dg::subcell::Tags::Mesh< Dim >, Tags::MassDensityCons, Tags::MomentumDensity< Dim >, Tags::EnergyDensity, hydro::Tags::EquationOfStateBase >
 

Static Public Member Functions

template<size_t ThermodynamicDim>
static void apply (gsl::not_null< Variables< tmpl::list< MassDensity, Velocity, SpecificInternalEnergy, Pressure >> * > prim_vars, bool did_rollback, const Mesh< Dim > &subcell_mesh, const Scalar< DataVector > &mass_density_cons, const tnsr::I< DataVector, Dim > &momentum_density, const Scalar< DataVector > &energy_density, const EquationsOfState::EquationOfState< false, ThermodynamicDim > &equation_of_state) noexcept
 

Detailed Description

template<size_t Dim>
struct NewtonianEuler::subcell::PrimsAfterRollback< Dim >

Mutator that resizes the primitive variables to the subcell mesh and computes the primitives, but only if evolution::dg::subcell::Tags::DidRollback is true.

In the DG-subcell step_actions list this will normally be called using the Actions::MutateApply action right after the evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback label.


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