SpECTRE  v2025.08.19
Initialization::ProjectTimeStepperHistory< Metavariables > Struct Template Reference

Initialize/update items related to time stepper history after an AMR change. More...

#include <Evolution.hpp>

Public Types

using variables_tag = typename Metavariables::system::variables_tag
 
using dt_variables_tag = db::add_tag_prefix<::Tags::dt, variables_tag >
 
using history_tag = ::Tags::HistoryEvolvedVariables< variables_tag >
 
using return_tags = tmpl::list< dt_variables_tag, history_tag, ::Tags::Next<::Tags::TimeStepId >, ::Tags::TimeStep >
 
using argument_tags = tmpl::list< domain::Tags::Mesh< dim >, Parallel::Tags::ArrayIndex< ElementId< dim > >, ::Tags::TimeStepper< TimeStepper > >
 

Static Public Member Functions

static void apply (const gsl::not_null< typename dt_variables_tag::type * > dt_vars, const gsl::not_null< typename history_tag::type * > history, const gsl::not_null< TimeStepId * >, const gsl::not_null< TimeDelta * >, const Mesh< dim > &new_mesh, const ElementId< dim > &, const TimeStepper &, const std::pair< Mesh< dim >, Element< dim > > &old_mesh_and_element)
 
template<typename... Tags>
static void apply (const gsl::not_null< typename dt_variables_tag::type * > dt_vars, const gsl::not_null< typename history_tag::type * > history, const gsl::not_null< TimeStepId * > next_time_step_id, const gsl::not_null< TimeDelta * > time_step, const Mesh< dim > &new_mesh, const ElementId< dim > &element_id, const TimeStepper &time_stepper, const tuples::TaggedTuple< Tags... > &parent_items)
 
template<typename... Tags>
static void apply (const gsl::not_null< typename dt_variables_tag::type * > dt_vars, const gsl::not_null< typename history_tag::type * > history, const gsl::not_null< TimeStepId * > next_time_step_id, const gsl::not_null< TimeDelta * > time_step, const Mesh< dim > &new_mesh, const ElementId< dim > &element_id, const TimeStepper &time_stepper, const std::unordered_map< ElementId< dim >, tuples::TaggedTuple< Tags... > > &children_items)
 

Static Public Attributes

static constexpr size_t dim = Metavariables::volume_dim
 

Detailed Description

template<typename Metavariables>
struct Initialization::ProjectTimeStepperHistory< Metavariables >

Initialize/update items related to time stepper history after an AMR change.

Note
Tags::TimeStep and Tags::Next<Tags::TimeStepId> are not initially set by this projector. They are only updated if the time stepper must be restarted because of LTS h-refinement.

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