|
SpECTRE
v2025.08.19
|
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< evolution::dg::subcell::Tags::Coordinates< 3, Frame::Inertial >, ::Tags::VariableFixer< grmhd::ValenciaDivClean::FixConservatives >, hydro::Tags::GrmhdEquationOfState, grmhd::ValenciaDivClean::Tags::PrimitiveFromConservativeOptions > |
Static Public Member Functions | |
| 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 tnsr::I< DataVector, 3, Frame::Inertial > &subcell_coords, const grmhd::ValenciaDivClean::FixConservatives &fix_conservatives, const EquationsOfState::EquationOfState< true, 3 > &eos, const grmhd::ValenciaDivClean::PrimitiveFromConservativeOptions &primitive_from_conservative_options) |
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.