SpECTRE  v2023.12.08
control_system::Tags::FunctionsOfTimeInitialize Struct Reference

The FunctionsOfTime initialized from a DomainCreator, initial time, and control system OptionHolders. More...

#include <FunctionsOfTimeInitialize.hpp>

Public Types

using type = std::unordered_map< std::string, std::unique_ptr< domain::FunctionsOfTime::FunctionOfTime > >
 
template<typename Metavariables >
using option_holders = control_system::inputs< tmpl::transform< tmpl::filter< typename Metavariables::component_list, tt::is_a< ControlComponent, tmpl::_1 > >, tmpl::bind< tmpl::back, tmpl::_1 > > >
 
template<typename Metavariables >
using option_tags = tmpl::push_front< tmpl::conditional_t< metavars_has_control_systems< Metavariables >, tmpl::flatten< tmpl::list< control_system::OptionTags::MeasurementsPerUpdate, ::OptionTags::InitialTime, option_holders< Metavariables > > >, tmpl::list<> >, domain::OptionTags::DomainCreator< Metavariables::volume_dim > >
 

Static Public Member Functions

static std::string name ()
 
template<typename Metavariables , typename... OptionHolders>
static type create_from_options (const std::unique_ptr<::DomainCreator< Metavariables::volume_dim > > &domain_creator, const int measurements_per_update, const double initial_time, const OptionHolders &... option_holders)
 This version of create_from_options is used if the metavariables did define control systems.
 
template<typename Metavariables >
static type create_from_options (const std::unique_ptr<::DomainCreator< Metavariables::volume_dim > > &domain_creator)
 This version of create_from_options is used if the metavariables did not define control systems.
 

Static Public Attributes

static constexpr bool pass_metavariables = true
 
template<typename Metavariables >
static constexpr bool metavars_has_control_systems
 

Detailed Description

The FunctionsOfTime initialized from a DomainCreator, initial time, and control system OptionHolders.

Member Data Documentation

◆ metavars_has_control_systems

template<typename Metavariables >
constexpr bool control_system::Tags::FunctionsOfTimeInitialize::metavars_has_control_systems
staticconstexpr
Initial value:
=
tmpl::size<option_holders<Metavariables>>::value > 0
constexpr T & value(T &t)
Returns t.value() if t is a std::optional otherwise returns t.
Definition: OptionalHelpers.hpp:32

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