SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Executables/ScalarAdvection - EvolveScalarAdvection.hpp Hit Total Coverage
Commit: c3e43f8d41800b0ecefb9d1393f1de1d5a280c8f Lines: 0 27 0.0 %
Date: 2026-07-24 22:09:25
Legend: Lines: hit not hit

          Line data    Source code
       1           0 : // Distributed under the MIT License.
       2             : // See LICENSE.txt for details.
       3             : 
       4             : #pragma once
       5             : 
       6             : #include <cstddef>
       7             : #include <cstdint>
       8             : #include <vector>
       9             : 
      10             : #include "Domain/Creators/Factory1D.hpp"
      11             : #include "Domain/Creators/Factory2D.hpp"
      12             : #include "Domain/Tags.hpp"
      13             : #include "Evolution/Actions/RunEventsAndDenseTriggers.hpp"
      14             : #include "Evolution/Actions/RunEventsAndTriggers.hpp"
      15             : #include "Evolution/BoundaryCorrection.hpp"
      16             : #include "Evolution/ComputeTags.hpp"
      17             : #include "Evolution/DgSubcell/Actions/Initialize.hpp"
      18             : #include "Evolution/DgSubcell/Actions/Labels.hpp"
      19             : #include "Evolution/DgSubcell/Actions/ReconstructionCommunication.hpp"
      20             : #include "Evolution/DgSubcell/Actions/SelectNumericalMethod.hpp"
      21             : #include "Evolution/DgSubcell/Actions/TakeTimeStep.hpp"
      22             : #include "Evolution/DgSubcell/Actions/TciAndRollback.hpp"
      23             : #include "Evolution/DgSubcell/Actions/TciAndSwitchToDg.hpp"
      24             : #include "Evolution/DgSubcell/GetTciDecision.hpp"
      25             : #include "Evolution/DgSubcell/NeighborReconstructedFaceSolution.hpp"
      26             : #include "Evolution/DgSubcell/NeighborTciDecision.hpp"
      27             : #include "Evolution/DgSubcell/PrepareNeighborData.hpp"
      28             : #include "Evolution/DgSubcell/SubcellEqualRateRegion.hpp"
      29             : #include "Evolution/DgSubcell/Tags/ObserverCoordinates.hpp"
      30             : #include "Evolution/DgSubcell/Tags/ObserverMesh.hpp"
      31             : #include "Evolution/DgSubcell/Tags/TciStatus.hpp"
      32             : #include "Evolution/DiscontinuousGalerkin/Actions/ApplyBoundaryCorrections.hpp"
      33             : #include "Evolution/DiscontinuousGalerkin/Actions/ComputeTimeDerivative.hpp"
      34             : #include "Evolution/DiscontinuousGalerkin/CleanMortarHistory.hpp"
      35             : #include "Evolution/DiscontinuousGalerkin/DgElementArray.hpp"
      36             : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/ChangeFixedLtsRatio.hpp"
      37             : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/FixedLtsRatio.hpp"
      38             : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/NonconformingEqualRateRegions.hpp"
      39             : #include "Evolution/DiscontinuousGalerkin/Initialization/Mortars.hpp"
      40             : #include "Evolution/DiscontinuousGalerkin/Initialization/QuadratureTag.hpp"
      41             : #include "Evolution/DiscontinuousGalerkin/Initialization/SetupEqualRateRegions.hpp"
      42             : #include "Evolution/DiscontinuousGalerkin/Initialization/SpectralFilters.hpp"
      43             : #include "Evolution/Initialization/ConservativeSystem.hpp"
      44             : #include "Evolution/Initialization/DgDomain.hpp"
      45             : #include "Evolution/Initialization/Evolution.hpp"
      46             : #include "Evolution/Initialization/SetVariables.hpp"
      47             : #include "Evolution/Systems/ScalarAdvection/BoundaryConditions/Factory.hpp"
      48             : #include "Evolution/Systems/ScalarAdvection/BoundaryCorrections/Factory.hpp"
      49             : #include "Evolution/Systems/ScalarAdvection/FiniteDifference/Factory.hpp"
      50             : #include "Evolution/Systems/ScalarAdvection/FiniteDifference/Tags.hpp"
      51             : #include "Evolution/Systems/ScalarAdvection/Subcell/GhostData.hpp"
      52             : #include "Evolution/Systems/ScalarAdvection/Subcell/NeighborPackagedData.hpp"
      53             : #include "Evolution/Systems/ScalarAdvection/Subcell/SetInitialRdmpData.hpp"
      54             : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOnDgGrid.hpp"
      55             : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOnFdGrid.hpp"
      56             : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOptions.hpp"
      57             : #include "Evolution/Systems/ScalarAdvection/Subcell/TimeDerivative.hpp"
      58             : #include "Evolution/Systems/ScalarAdvection/Subcell/VelocityAtFace.hpp"
      59             : #include "Evolution/Systems/ScalarAdvection/System.hpp"
      60             : #include "Evolution/Systems/ScalarAdvection/VelocityField.hpp"
      61             : #include "IO/Observer/Actions/RegisterEvents.hpp"
      62             : #include "IO/Observer/Helpers.hpp"
      63             : #include "IO/Observer/ObserverComponent.hpp"
      64             : #include "NumericalAlgorithms/DiscontinuousGalerkin/Formulation.hpp"
      65             : #include "NumericalAlgorithms/DiscontinuousGalerkin/Tags.hpp"
      66             : #include "NumericalAlgorithms/LinearOperators/Filters/Factory.hpp"
      67             : #include "Options/Protocols/FactoryCreation.hpp"
      68             : #include "Options/String.hpp"
      69             : #include "Parallel/Local.hpp"
      70             : #include "Parallel/Phase.hpp"
      71             : #include "Parallel/PhaseControl/ExecutePhaseChange.hpp"
      72             : #include "Parallel/PhaseControl/Factory.hpp"
      73             : #include "Parallel/PhaseControl/VisitAndReturn.hpp"
      74             : #include "Parallel/PhaseDependentActionList.hpp"
      75             : #include "Parallel/Protocols/RegistrationMetavariables.hpp"
      76             : #include "ParallelAlgorithms/Actions/AddComputeTags.hpp"
      77             : #include "ParallelAlgorithms/Actions/AddSimpleTags.hpp"
      78             : #include "ParallelAlgorithms/Actions/InitializeItems.hpp"
      79             : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
      80             : #include "ParallelAlgorithms/Actions/SpectralFilter.hpp"
      81             : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
      82             : #include "ParallelAlgorithms/Events/ChangeFixedLtsRatio.hpp"
      83             : #include "ParallelAlgorithms/Events/Completion.hpp"
      84             : #include "ParallelAlgorithms/Events/Factory.hpp"
      85             : #include "ParallelAlgorithms/Events/Tags.hpp"
      86             : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
      87             : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
      88             : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
      89             : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
      90             : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
      91             : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
      92             : #include "PointwiseFunctions/AnalyticData/AnalyticData.hpp"
      93             : #include "PointwiseFunctions/AnalyticSolutions/AnalyticSolution.hpp"
      94             : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Krivodonova.hpp"
      95             : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Kuzmin.hpp"
      96             : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Sinusoid.hpp"
      97             : #include "PointwiseFunctions/AnalyticSolutions/Tags.hpp"
      98             : #include "Time/Actions/SelfStartActions.hpp"
      99             : #include "Time/AdvanceTime.hpp"
     100             : #include "Time/ChangeSlabSize/Action.hpp"
     101             : #include "Time/ChangeStepSize.hpp"
     102             : #include "Time/ChangeTimeStepperOrder.hpp"
     103             : #include "Time/CleanHistory.hpp"
     104             : #include "Time/RecordTimeStepperData.hpp"
     105             : #include "Time/StepChoosers/Factory.hpp"
     106             : #include "Time/StepChoosers/StepChooser.hpp"
     107             : #include "Time/Tags/Time.hpp"
     108             : #include "Time/Tags/TimeStepId.hpp"
     109             : #include "Time/TimeSequence.hpp"
     110             : #include "Time/TimeSteppers/Factory.hpp"
     111             : #include "Time/TimeSteppers/LtsTimeStepper.hpp"
     112             : #include "Time/TimeSteppers/TimeStepper.hpp"
     113             : #include "Time/Triggers/TimeTriggers.hpp"
     114             : #include "Time/UpdateU.hpp"
     115             : #include "Utilities/ProtocolHelpers.hpp"
     116             : #include "Utilities/TMPL.hpp"
     117             : 
     118             : /// \cond
     119             : namespace PUP {
     120             : class er;
     121             : }  // namespace PUP
     122             : namespace Parallel {
     123             : template <typename Metavariables>
     124             : class CProxy_GlobalCache;
     125             : }  // namespace Parallel
     126             : /// \endcond
     127             : 
     128             : template <size_t Dim>
     129             : struct EvolutionMetavars {
     130             :   static constexpr size_t volume_dim = Dim;
     131           0 :   using system = ScalarAdvection::System<Dim>;
     132           0 :   using temporal_id = Tags::TimeStepId;
     133           0 :   using TimeStepperBase = TimeStepper;
     134             : 
     135             :   static constexpr bool local_time_stepping =
     136             :       TimeStepperBase::local_time_stepping;
     137             :   static constexpr bool use_dg_element_collection = false;
     138             : 
     139             :   // The use_dg_subcell flag controls whether to use unlimited DG (false)
     140             :   // or a DG-FD hybrid scheme (true).
     141             :   static constexpr bool use_dg_subcell = true;
     142             : 
     143           0 :   using initial_data_list =
     144             :       tmpl::conditional_t<Dim == 1,
     145             :                           tmpl::list<ScalarAdvection::Solutions::Krivodonova,
     146             :                                      ScalarAdvection::Solutions::Sinusoid>,
     147             :                           tmpl::list<ScalarAdvection::Solutions::Kuzmin>>;
     148             : 
     149           0 :   using analytic_variables_tags = typename system::variables_tag::tags_list;
     150           0 :   using analytic_compute = evolution::Tags::AnalyticSolutionsCompute<
     151             :       volume_dim, analytic_variables_tags, use_dg_subcell, initial_data_list>;
     152           0 :   using error_compute = Tags::ErrorsCompute<analytic_variables_tags>;
     153           0 :   using error_tags = db::wrap_tags_in<Tags::Error, analytic_variables_tags>;
     154           0 :   using observe_fields = tmpl::push_back<
     155             :       tmpl::append<
     156             :           typename system::variables_tag::tags_list, error_tags,
     157             :           tmpl::conditional_t<use_dg_subcell,
     158             :                               tmpl::list<evolution::dg::subcell::Tags::
     159             :                                              TciStatusCompute<volume_dim>>,
     160             :                               tmpl::list<>>>,
     161             :       tmpl::conditional_t<
     162             :           use_dg_subcell,
     163             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     164             :               volume_dim, Frame::ElementLogical>,
     165             :           ::Events::Tags::ObserverCoordinatesCompute<volume_dim,
     166             :                                                      Frame::ElementLogical>>,
     167             :       tmpl::conditional_t<
     168             :           use_dg_subcell,
     169             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<volume_dim,
     170             :                                                                    Frame::Grid>,
     171             :           domain::Tags::Coordinates<volume_dim, Frame::Grid>>,
     172             :       tmpl::conditional_t<
     173             :           use_dg_subcell,
     174             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     175             :               volume_dim, Frame::Inertial>,
     176             :           domain::Tags::Coordinates<volume_dim, Frame::Inertial>>>;
     177           0 :   using non_tensor_compute_tags = tmpl::list<
     178             :       tmpl::conditional_t<
     179             :           use_dg_subcell,
     180             :           tmpl::list<
     181             :               evolution::dg::subcell::Tags::ObserverMeshCompute<volume_dim>,
     182             :               evolution::dg::subcell::Tags::ObserverInverseJacobianCompute<
     183             :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     184             :               evolution::dg::subcell::Tags::
     185             :                   ObserverJacobianAndDetInvJacobianCompute<
     186             :                       volume_dim, Frame::ElementLogical, Frame::Inertial>>,
     187             :           tmpl::list<::Events::Tags::ObserverMeshCompute<volume_dim>,
     188             :                      ::Events::Tags::ObserverInverseJacobianCompute<
     189             :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     190             :                      ::Events::Tags::ObserverJacobianCompute<
     191             :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     192             :                      ::Events::Tags::ObserverDetInvJacobianCompute<
     193             :                          Frame::ElementLogical, Frame::Inertial>>>,
     194             :       tmpl::list<analytic_compute, error_compute>>;
     195             : 
     196             :   struct factory_creation
     197             :       : tt::ConformsTo<Options::protocols::FactoryCreation> {
     198           0 :     using factory_classes = tmpl::map<
     199             :         tmpl::pair<DenseTrigger, DenseTriggers::standard_dense_triggers>,
     200             :         tmpl::pair<DomainCreator<volume_dim>, domain_creators<volume_dim>>,
     201             :         tmpl::pair<Event,
     202             :                    tmpl::flatten<tmpl::list<
     203             :                        Events::Completion,
     204             :                        dg::Events::field_observations<
     205             :                            volume_dim, observe_fields, non_tensor_compute_tags>,
     206             :                        Events::time_events<system>,
     207             :                        dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
     208             :         tmpl::pair<evolution::BoundaryCorrection,
     209             :                    ScalarAdvection::BoundaryCorrections::
     210             :                        standard_boundary_corrections<Dim>>,
     211             :         tmpl::pair<evolution::initial_data::InitialData, initial_data_list>,
     212             :         tmpl::pair<LtsTimeStepper, TimeSteppers::lts_time_steppers>,
     213             :         tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
     214             :         tmpl::pair<ScalarAdvection::BoundaryConditions::BoundaryCondition<Dim>,
     215             :                    ScalarAdvection::BoundaryConditions::
     216             :                        standard_boundary_conditions<Dim>>,
     217             :         tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
     218             :                    StepChoosers::standard_step_choosers<system>>,
     219             :         tmpl::pair<StepChooser<StepChooserUse::Slab>,
     220             :                    tmpl::push_back<
     221             :                        StepChoosers::standard_slab_choosers<system>,
     222             :                        evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
     223             :         tmpl::pair<TimeSequence<double>,
     224             :                    TimeSequences::all_time_sequences<double>>,
     225             :         tmpl::pair<TimeSequence<std::uint64_t>,
     226             :                    TimeSequences::all_time_sequences<std::uint64_t>>,
     227             :         tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
     228             :         tmpl::pair<Trigger, tmpl::append<Triggers::logical_triggers,
     229             :                                          Triggers::time_triggers>>,
     230             :         tmpl::pair<Filters::Filter<volume_dim,
     231             :                                    typename system::variables_tag::tags_list>,
     232             :                    Filters::all_filters<
     233             :                        volume_dim, typename system::variables_tag::tags_list>>>;
     234             :   };
     235             : 
     236             :   struct SubcellOptions {
     237             :     static constexpr bool subcell_enabled = use_dg_subcell;
     238             :     static constexpr bool subcell_enabled_at_external_boundary = false;
     239             : 
     240             :     // We send `ghost_zone_size` cell-centered grid points for variable
     241             :     // reconstruction, of which we need `ghost_zone_size-1` for reconstruction
     242             :     // to the internal side of the element face, and `ghost_zone_size` for
     243             :     // reconstruction to the external side of the element face.
     244             :     template <typename DbTagsList>
     245           0 :     static constexpr size_t ghost_zone_size(
     246             :         const db::DataBox<DbTagsList>& box) {
     247             :       return db::get<ScalarAdvection::fd::Tags::Reconstructor<volume_dim>>(box)
     248             :           .ghost_zone_size();
     249             :     }
     250             : 
     251           0 :     using DgComputeSubcellNeighborPackagedData =
     252             :         ScalarAdvection::subcell::NeighborPackagedData;
     253             : 
     254           0 :     using GhostVariables = ScalarAdvection::subcell::GhostVariables;
     255             :   };
     256             : 
     257           0 :   using observed_reduction_data_tags =
     258             :       observers::collect_reduction_data_tags<tmpl::flatten<tmpl::list<
     259             :           tmpl::at<typename factory_creation::factory_classes, Event>>>>;
     260             : 
     261           0 :   using dg_step_actions = tmpl::flatten<tmpl::list<
     262             :       evolution::dg::Actions::ComputeTimeDerivative<
     263             :           volume_dim, system, AllStepChoosers, local_time_stepping,
     264             :           use_dg_element_collection>,
     265             :       evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
     266             :           volume_dim, use_dg_element_collection>,
     267             :       Actions::MutateApply<RecordTimeStepperData<system>>,
     268             :       evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
     269             :           evolution::dg::ApplyLtsDenseBoundaryCorrections<EvolutionMetavars>>>,
     270             :       Actions::MutateApply<UpdateU<system, local_time_stepping>>,
     271             :       evolution::dg::Actions::ApplyLtsBoundaryCorrections<
     272             :           volume_dim, use_dg_element_collection>,
     273             :       tmpl::conditional_t<
     274             :           local_time_stepping,
     275             :           tmpl::list<Actions::MutateApply<ChangeTimeStepperOrder<system>>>,
     276             :           tmpl::list<>>,
     277             :       tmpl::conditional_t<use_dg_subcell,
     278             :                           evolution::dg::subcell::Actions::TciAndRollback<
     279             :                               ScalarAdvection::subcell::TciOnDgGrid<Dim>>,
     280             :                           tmpl::list<>>,
     281             :       Actions::MutateApply<CleanHistory<system>>,
     282             :       Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     283             :       dg::Actions::SpectralFilter>>;
     284             : 
     285           0 :   using dg_subcell_step_actions = tmpl::flatten<tmpl::list<
     286             :       evolution::dg::subcell::Actions::SelectNumericalMethod,
     287             :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginDg>,
     288             :       dg_step_actions,
     289             :       Actions::Goto<evolution::dg::subcell::Actions::Labels::EndOfSolvers>,
     290             :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginSubcell>,
     291             :       tmpl::conditional_t<local_time_stepping,
     292             :                           // This is just to adjust for FixedLtsRatio, so we
     293             :                           // can pass an empty list of StepChoosers.
     294             :                           Actions::MutateApply<ChangeStepSize<tmpl::list<>>>,
     295             :                           tmpl::list<>>,
     296             :       evolution::dg::subcell::Actions::SendDataForReconstruction<
     297             :           volume_dim, ScalarAdvection::subcell::GhostVariables,
     298             :           use_dg_element_collection>,
     299             :       evolution::dg::subcell::Actions::ReceiveDataForReconstruction<volume_dim>,
     300             :       Actions::Label<
     301             :           evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback>,
     302             :       evolution::dg::subcell::fd::Actions::TakeTimeStep<
     303             :           ScalarAdvection::subcell::TimeDerivative<volume_dim>>,
     304             :       Actions::MutateApply<RecordTimeStepperData<system>>,
     305             :       Actions::MutateApply<UpdateU<system, local_time_stepping>>,
     306             :       Actions::MutateApply<CleanHistory<system>>,
     307             :       Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     308             :       evolution::dg::subcell::Actions::TciAndSwitchToDg<
     309             :           ScalarAdvection::subcell::TciOnFdGrid<volume_dim>>,
     310             :       Actions::Label<evolution::dg::subcell::Actions::Labels::EndOfSolvers>>>;
     311             : 
     312           0 :   using step_actions =
     313             :       tmpl::conditional_t<use_dg_subcell, dg_subcell_step_actions,
     314             :                           dg_step_actions>;
     315             : 
     316           0 :   using const_global_cache_tags =
     317             :       tmpl::list<evolution::initial_data::Tags::InitialData,
     318             :                  tmpl::conditional_t<
     319             :                      use_dg_subcell,
     320             :                      tmpl::list<ScalarAdvection::fd::Tags::Reconstructor<Dim>,
     321             :                                 ScalarAdvection::subcell::Tags::TciOptions>,
     322             :                      tmpl::list<>>>;
     323             : 
     324           0 :   using dg_registration_list =
     325             :       tmpl::list<observers::Actions::RegisterEventsWithObservers>;
     326             : 
     327           0 :   using equal_rate_regions = tmpl::flatten<
     328             :       tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>,
     329             :                  tmpl::conditional_t<
     330             :                      use_dg_subcell,
     331             :                      evolution::dg::subcell::SubcellEqualRateRegion<volume_dim>,
     332             :                      tmpl::list<>>>>;
     333             : 
     334           0 :   using initialization_actions = tmpl::list<
     335             :       Initialization::Actions::InitializeItems<
     336             :           Initialization::TimeStepping<EvolutionMetavars, TimeStepperBase,
     337             :                                        false, local_time_stepping>,
     338             :           evolution::dg::Initialization::Domain<EvolutionMetavars>,
     339             :           Initialization::TimeStepperHistory<EvolutionMetavars>>,
     340             :       Initialization::Actions::ConservativeSystem<system>,
     341             : 
     342             :       tmpl::conditional_t<
     343             :           use_dg_subcell,
     344             :           tmpl::list<
     345             :               evolution::dg::subcell::Actions::SetSubcellGrid<volume_dim,
     346             :                                                               system, false>,
     347             :               Initialization::Actions::AddSimpleTags<
     348             :                   ScalarAdvection::subcell::VelocityAtFace<volume_dim>>,
     349             :               evolution::dg::subcell::Actions::SetAndCommunicateInitialRdmpData<
     350             :                   volume_dim,
     351             :                   ScalarAdvection::subcell::SetInitialRdmpData<volume_dim>>,
     352             :               evolution::dg::subcell::Actions::ComputeAndSendTciOnInitialGrid<
     353             :                   volume_dim, system,
     354             :                   ScalarAdvection::subcell::TciOnFdGrid<volume_dim>>,
     355             :               evolution::dg::subcell::Actions::SetInitialGridFromTciData<
     356             :                   volume_dim, system>>,
     357             :           tmpl::list<evolution::Initialization::Actions::SetVariables<
     358             :               domain::Tags::Coordinates<Dim, Frame::ElementLogical>>>>,
     359             : 
     360             :       Initialization::Actions::AddComputeTags<
     361             :           tmpl::list<ScalarAdvection::Tags::VelocityFieldCompute<Dim>>>,
     362             :       Initialization::Actions::AddComputeTags<
     363             :           StepChoosers::step_chooser_compute_tags<EvolutionMetavars>>,
     364             :       ::evolution::dg::Initialization::Mortars<volume_dim>,
     365             :       evolution::dg::Initialization::Actions::SetupEqualRateRegions<
     366             :           EvolutionMetavars, volume_dim, equal_rate_regions>,
     367             :       evolution::Actions::InitializeRunEventsAndDenseTriggers,
     368             :       Initialization::Actions::InitializeItems<
     369             :           evolution::dg::Initialization::SpectralFilters<
     370             :               volume_dim, typename system::variables_tag::tags_list>>,
     371             :       Parallel::Actions::TerminatePhase>;
     372             : 
     373           0 :   using dg_element_array = DgElementArray<
     374             :       EvolutionMetavars,
     375             :       tmpl::list<
     376             :           Parallel::PhaseActions<Parallel::Phase::Initialization,
     377             :                                  initialization_actions>,
     378             : 
     379             :           Parallel::PhaseActions<Parallel::Phase::Register,
     380             :                                  tmpl::list<dg_registration_list,
     381             :                                             Parallel::Actions::TerminatePhase>>,
     382             : 
     383             :           Parallel::PhaseActions<Parallel::Phase::Restart,
     384             :                                  tmpl::list<dg_registration_list,
     385             :                                             Parallel::Actions::TerminatePhase>>,
     386             : 
     387             :           Parallel::PhaseActions<
     388             :               Parallel::Phase::WriteCheckpoint,
     389             :               tmpl::list<evolution::Actions::RunEventsAndTriggers<
     390             :                              Triggers::WhenToCheck::AtCheckpoints>,
     391             :                          Parallel::Actions::TerminatePhase>>,
     392             : 
     393             :           Parallel::PhaseActions<
     394             :               Parallel::Phase::InitializeTimeStepperHistory,
     395             :               SelfStart::self_start_procedure<step_actions, system>>,
     396             : 
     397             :           Parallel::PhaseActions<
     398             :               Parallel::Phase::Evolve,
     399             :               tmpl::flatten<tmpl::list<
     400             :                   std::conditional_t<local_time_stepping,
     401             :                                      evolution::Actions::RunEventsAndTriggers<
     402             :                                          Triggers::WhenToCheck::AtSteps>,
     403             :                                      tmpl::list<>>,
     404             :                   evolution::Actions::RunEventsAndTriggers<
     405             :                       Triggers::WhenToCheck::AtSlabs>,
     406             :                   Actions::ChangeSlabSize,
     407             :                   evolution::dg::Actions::ChangeFixedLtsRatio, step_actions,
     408             :                   Actions::MutateApply<AdvanceTime<>>,
     409             :                   PhaseControl::Actions::ExecutePhaseChange>>>>>;
     410             : 
     411             :   struct registration
     412             :       : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
     413           0 :     using element_registrars =
     414             :         tmpl::map<tmpl::pair<dg_element_array, dg_registration_list>>;
     415             :   };
     416             : 
     417           0 :   using component_list =
     418             :       tmpl::list<observers::Observer<EvolutionMetavars>,
     419             :                  observers::ObserverWriter<EvolutionMetavars>,
     420             :                  dg_element_array>;
     421             : 
     422             :   static constexpr Options::String help{
     423             :       "Evolve the scalar advection equation.\n\n"};
     424             : 
     425             :   static constexpr std::array<Parallel::Phase, 5> default_phase_order{
     426             :       {Parallel::Phase::Initialization,
     427             :        Parallel::Phase::InitializeTimeStepperHistory, Parallel::Phase::Register,
     428             :        Parallel::Phase::Evolve, Parallel::Phase::Exit}};
     429             : 
     430             :   // NOLINTNEXTLINE(google-runtime-references)
     431           0 :   void pup(PUP::er& /*p*/) {}
     432             : };

Generated by: LCOV version 1.14