|
SpECTRE
v2026.04.01
|
Swaps the inactive and active GR variables. More...
#include <SwapGrTags.hpp>
Public Types | |
| using | return_tags |
| using | argument_tags |
Static Public Member Functions | |
| static void | apply (gsl::not_null< Variables< typename System::spacetime_variables_tag::tags_list > * > active_gr_vars, gsl::not_null< typename evolution::dg::subcell::Tags::Inactive< typename System::spacetime_variables_tag >::type * > inactive_gr_vars, const Mesh< 3 > &dg_mesh, const Mesh< 3 > &subcell_mesh, evolution::dg::subcell::ActiveGrid active_grid) |
Swaps the inactive and active GR variables.
The values on the subcells are at the cell-centers.
It should be possible to reduce memory usage by deallocating the GR variables on the DG grid when switching to subcell. However, the opposite case is not true since the GR variables are needed on the subcells if a neighbor is using subcell in order to compute the neighbor's fluxes.
| using Particles::MonteCarlo::SwapGrTags::argument_tags |
| using Particles::MonteCarlo::SwapGrTags::return_tags |