SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Executables/NewtonianEuler - EvolveNewtonianEuler.hpp Hit Total Coverage
Commit: c428a3e2e0ca78fe0364ec1b0e0493c627d428d4 Lines: 0 29 0.0 %
Date: 2026-04-26 20:20:36
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/Creators/Factory3D.hpp"
      13             : #include "Domain/Tags.hpp"
      14             : #include "Evolution/Actions/RunEventsAndDenseTriggers.hpp"
      15             : #include "Evolution/Actions/RunEventsAndTriggers.hpp"
      16             : #include "Evolution/BoundaryCorrection.hpp"
      17             : #include "Evolution/ComputeTags.hpp"
      18             : #include "Evolution/Conservative/UpdateConservatives.hpp"
      19             : #include "Evolution/DgSubcell/Actions/Initialize.hpp"
      20             : #include "Evolution/DgSubcell/Actions/Labels.hpp"
      21             : #include "Evolution/DgSubcell/Actions/ReconstructionCommunication.hpp"
      22             : #include "Evolution/DgSubcell/Actions/SelectNumericalMethod.hpp"
      23             : #include "Evolution/DgSubcell/Actions/TakeTimeStep.hpp"
      24             : #include "Evolution/DgSubcell/Actions/TciAndRollback.hpp"
      25             : #include "Evolution/DgSubcell/Actions/TciAndSwitchToDg.hpp"
      26             : #include "Evolution/DgSubcell/DisableLts.hpp"
      27             : #include "Evolution/DgSubcell/GetTciDecision.hpp"
      28             : #include "Evolution/DgSubcell/NeighborReconstructedFaceSolution.hpp"
      29             : #include "Evolution/DgSubcell/NeighborTciDecision.hpp"
      30             : #include "Evolution/DgSubcell/PrepareNeighborData.hpp"
      31             : #include "Evolution/DgSubcell/Tags/ObserverCoordinates.hpp"
      32             : #include "Evolution/DgSubcell/Tags/ObserverMesh.hpp"
      33             : #include "Evolution/DgSubcell/Tags/TciStatus.hpp"
      34             : #include "Evolution/DiscontinuousGalerkin/Actions/ApplyBoundaryCorrections.hpp"
      35             : #include "Evolution/DiscontinuousGalerkin/Actions/ComputeTimeDerivative.hpp"
      36             : #include "Evolution/DiscontinuousGalerkin/CleanMortarHistory.hpp"
      37             : #include "Evolution/DiscontinuousGalerkin/DgElementArray.hpp"
      38             : #include "Evolution/DiscontinuousGalerkin/Initialization/Mortars.hpp"
      39             : #include "Evolution/DiscontinuousGalerkin/Initialization/QuadratureTag.hpp"
      40             : #include "Evolution/Initialization/ConservativeSystem.hpp"
      41             : #include "Evolution/Initialization/DgDomain.hpp"
      42             : #include "Evolution/Initialization/Evolution.hpp"
      43             : #include "Evolution/Initialization/SetVariables.hpp"
      44             : #include "Evolution/Systems/NewtonianEuler/AllSolutions.hpp"
      45             : #include "Evolution/Systems/NewtonianEuler/BoundaryConditions/Factory.hpp"
      46             : #include "Evolution/Systems/NewtonianEuler/BoundaryCorrections/Factory.hpp"
      47             : #include "Evolution/Systems/NewtonianEuler/FiniteDifference/Factory.hpp"
      48             : #include "Evolution/Systems/NewtonianEuler/FiniteDifference/Tag.hpp"
      49             : #include "Evolution/Systems/NewtonianEuler/SoundSpeedSquared.hpp"
      50             : #include "Evolution/Systems/NewtonianEuler/Sources/Factory.hpp"
      51             : #include "Evolution/Systems/NewtonianEuler/Subcell/NeighborPackagedData.hpp"
      52             : #include "Evolution/Systems/NewtonianEuler/Subcell/PrimitiveGhostData.hpp"
      53             : #include "Evolution/Systems/NewtonianEuler/Subcell/PrimsAfterRollback.hpp"
      54             : #include "Evolution/Systems/NewtonianEuler/Subcell/ResizeAndComputePrimitives.hpp"
      55             : #include "Evolution/Systems/NewtonianEuler/Subcell/SetInitialRdmpData.hpp"
      56             : #include "Evolution/Systems/NewtonianEuler/Subcell/TciOnDgGrid.hpp"
      57             : #include "Evolution/Systems/NewtonianEuler/Subcell/TciOnFdGrid.hpp"
      58             : #include "Evolution/Systems/NewtonianEuler/Subcell/TimeDerivative.hpp"
      59             : #include "Evolution/Systems/NewtonianEuler/System.hpp"
      60             : #include "Evolution/Systems/NewtonianEuler/Tags.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 "Options/Protocols/FactoryCreation.hpp"
      67             : #include "Options/String.hpp"
      68             : #include "Parallel/Local.hpp"
      69             : #include "Parallel/Phase.hpp"
      70             : #include "Parallel/PhaseControl/CheckpointAndExitAfterWallclock.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/InitializeItems.hpp"
      78             : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
      79             : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
      80             : #include "ParallelAlgorithms/Events/Completion.hpp"
      81             : #include "ParallelAlgorithms/Events/Factory.hpp"
      82             : #include "ParallelAlgorithms/Events/Tags.hpp"
      83             : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
      84             : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
      85             : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
      86             : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
      87             : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
      88             : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
      89             : #include "PointwiseFunctions/AnalyticData/AnalyticData.hpp"
      90             : #include "PointwiseFunctions/AnalyticData/NewtonianEuler/KhInstability.hpp"
      91             : #include "PointwiseFunctions/AnalyticSolutions/AnalyticSolution.hpp"
      92             : #include "PointwiseFunctions/AnalyticSolutions/NewtonianEuler/IsentropicVortex.hpp"
      93             : #include "PointwiseFunctions/AnalyticSolutions/NewtonianEuler/LaneEmdenStar.hpp"
      94             : #include "PointwiseFunctions/AnalyticSolutions/NewtonianEuler/RiemannProblem.hpp"
      95             : #include "PointwiseFunctions/AnalyticSolutions/NewtonianEuler/SmoothFlow.hpp"
      96             : #include "PointwiseFunctions/AnalyticSolutions/Tags.hpp"
      97             : #include "PointwiseFunctions/Hydro/EquationsOfState/Factory.hpp"
      98             : #include "PointwiseFunctions/Hydro/EquationsOfState/RegisterDerivedWithCharm.hpp"
      99             : #include "PointwiseFunctions/Hydro/Tags.hpp"
     100             : #include "Time/Actions/SelfStartActions.hpp"
     101             : #include "Time/AdvanceTime.hpp"
     102             : #include "Time/ChangeSlabSize/Action.hpp"
     103             : #include "Time/ChangeStepSize.hpp"
     104             : #include "Time/ChangeTimeStepperOrder.hpp"
     105             : #include "Time/CleanHistory.hpp"
     106             : #include "Time/RecordTimeStepperData.hpp"
     107             : #include "Time/StepChoosers/Factory.hpp"
     108             : #include "Time/StepChoosers/FixedLtsRatio.hpp"
     109             : #include "Time/StepChoosers/StepChooser.hpp"
     110             : #include "Time/Tags/Time.hpp"
     111             : #include "Time/Tags/TimeStepId.hpp"
     112             : #include "Time/TimeSequence.hpp"
     113             : #include "Time/TimeSteppers/Factory.hpp"
     114             : #include "Time/TimeSteppers/LtsTimeStepper.hpp"
     115             : #include "Time/TimeSteppers/TimeStepper.hpp"
     116             : #include "Time/Triggers/TimeTriggers.hpp"
     117             : #include "Time/UpdateU.hpp"
     118             : #include "Utilities/Functional.hpp"
     119             : #include "Utilities/ProtocolHelpers.hpp"
     120             : #include "Utilities/TMPL.hpp"
     121             : 
     122             : /// \cond
     123             : namespace PUP {
     124             : class er;
     125             : }  // namespace PUP
     126             : namespace Parallel {
     127             : template <typename Metavariables>
     128             : class CProxy_GlobalCache;
     129             : }  // namespace Parallel
     130             : /// \endcond
     131             : 
     132             : template <size_t Dim>
     133             : struct EvolutionMetavars {
     134             :   static constexpr size_t volume_dim = Dim;
     135             :   // The use_dg_subcell flag controls whether to use unlimited DG (false)
     136             :   // or a DG-FD hybrid scheme (true).
     137             :   static constexpr bool use_dg_subcell = true;
     138             : 
     139           0 :   using system = NewtonianEuler::System<Dim>;
     140             : 
     141           0 :   using temporal_id = Tags::TimeStepId;
     142           0 :   using TimeStepperBase = TimeStepper;
     143             : 
     144             :   static constexpr bool local_time_stepping =
     145             :       TimeStepperBase::local_time_stepping;
     146             :   static constexpr bool use_dg_element_collection = false;
     147             : 
     148           0 :   using initial_data_tag = evolution::initial_data::Tags::InitialData;
     149           0 :   using initial_data_list = NewtonianEuler::InitialData::initial_data_list<Dim>;
     150             : 
     151           0 :   using analytic_variables_tags =
     152             :       typename system::primitive_variables_tag::tags_list;
     153             : 
     154           0 :   using equation_of_state_tag = hydro::Tags::EquationOfState<false, 2>;
     155             : 
     156           0 :   using analytic_compute = evolution::Tags::AnalyticSolutionsCompute<
     157             :       volume_dim, analytic_variables_tags, use_dg_subcell, initial_data_list>;
     158           0 :   using error_compute = Tags::ErrorsCompute<analytic_variables_tags>;
     159           0 :   using error_tags = db::wrap_tags_in<Tags::Error, analytic_variables_tags>;
     160           0 :   using observe_fields = tmpl::push_back<
     161             :       tmpl::append<
     162             :           typename system::variables_tag::tags_list,
     163             :           typename system::primitive_variables_tag::tags_list, error_tags,
     164             :           tmpl::conditional_t<use_dg_subcell,
     165             :                               tmpl::list<evolution::dg::subcell::Tags::
     166             :                                              TciStatusCompute<volume_dim>>,
     167             :                               tmpl::list<>>>,
     168             :       tmpl::conditional_t<
     169             :           use_dg_subcell,
     170             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     171             :               volume_dim, Frame::ElementLogical>,
     172             :           ::Events::Tags::ObserverCoordinatesCompute<volume_dim,
     173             :                                                      Frame::ElementLogical>>,
     174             :       tmpl::conditional_t<
     175             :           use_dg_subcell,
     176             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<volume_dim,
     177             :                                                                    Frame::Grid>,
     178             :           domain::Tags::Coordinates<volume_dim, Frame::Grid>>,
     179             :       tmpl::conditional_t<
     180             :           use_dg_subcell,
     181             :           evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     182             :               volume_dim, Frame::Inertial>,
     183             :           domain::Tags::Coordinates<volume_dim, Frame::Inertial>>>;
     184           0 :   using non_tensor_compute_tags = tmpl::append<
     185             :       tmpl::conditional_t<
     186             :           use_dg_subcell,
     187             :           tmpl::list<
     188             :               evolution::dg::subcell::Tags::ObserverMeshCompute<volume_dim>,
     189             :               evolution::dg::subcell::Tags::ObserverInverseJacobianCompute<
     190             :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     191             :               evolution::dg::subcell::Tags::
     192             :                   ObserverJacobianAndDetInvJacobianCompute<
     193             :                       volume_dim, Frame::ElementLogical, Frame::Inertial>>,
     194             :           tmpl::list<::Events::Tags::ObserverMeshCompute<volume_dim>,
     195             :                      ::Events::Tags::ObserverInverseJacobianCompute<
     196             :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     197             :                      ::Events::Tags::ObserverJacobianCompute<
     198             :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     199             :                      ::Events::Tags::ObserverDetInvJacobianCompute<
     200             :                          Frame::ElementLogical, Frame::Inertial>>>,
     201             :       tmpl::list<analytic_compute, error_compute>>;
     202             : 
     203             :   struct factory_creation
     204             :       : tt::ConformsTo<Options::protocols::FactoryCreation> {
     205           0 :     using factory_classes = tmpl::map<
     206             :         tmpl::pair<DenseTrigger, DenseTriggers::standard_dense_triggers>,
     207             :         tmpl::pair<DomainCreator<volume_dim>, domain_creators<volume_dim>>,
     208             :         tmpl::pair<NewtonianEuler::Sources::Source<Dim>,
     209             :                    NewtonianEuler::Sources::all_sources<Dim>>,
     210             :         tmpl::pair<evolution::initial_data::InitialData,
     211             :                    NewtonianEuler::InitialData::initial_data_list<Dim>>,
     212             :         tmpl::pair<Event,
     213             :                    tmpl::flatten<tmpl::list<
     214             :                        Events::Completion,
     215             :                        dg::Events::field_observations<
     216             :                            volume_dim, observe_fields, non_tensor_compute_tags>,
     217             :                        Events::time_events<system>>>>,
     218             :         tmpl::pair<evolution::BoundaryCorrection,
     219             :                    NewtonianEuler::BoundaryCorrections::
     220             :                        standard_boundary_corrections<volume_dim>>,
     221             :         tmpl::pair<LtsTimeStepper, TimeSteppers::lts_time_steppers>,
     222             :         tmpl::pair<
     223             :             NewtonianEuler::BoundaryConditions::BoundaryCondition<volume_dim>,
     224             :             NewtonianEuler::BoundaryConditions::standard_boundary_conditions<
     225             :                 volume_dim>>,
     226             :         tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
     227             :         tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
     228             :                    StepChoosers::standard_step_choosers<system>>,
     229             :         tmpl::pair<StepChooser<StepChooserUse::Slab>,
     230             :                    tmpl::append<StepChoosers::standard_slab_choosers<
     231             :                                     system, local_time_stepping>,
     232             :                                 tmpl::conditional_t<
     233             :                                     use_dg_subcell and local_time_stepping,
     234             :                                     tmpl::list<StepChoosers::FixedLtsRatio>,
     235             :                                     tmpl::list<>>>>,
     236             :         tmpl::pair<TimeSequence<double>,
     237             :                    TimeSequences::all_time_sequences<double>>,
     238             :         tmpl::pair<TimeSequence<std::uint64_t>,
     239             :                    TimeSequences::all_time_sequences<std::uint64_t>>,
     240             :         tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
     241             :         tmpl::pair<Trigger, tmpl::append<Triggers::logical_triggers,
     242             :                                          Triggers::time_triggers>>>;
     243             :   };
     244             : 
     245           0 :   using observed_reduction_data_tags =
     246             :       observers::collect_reduction_data_tags<tmpl::flatten<tmpl::list<
     247             :           tmpl::at<typename factory_creation::factory_classes, Event>>>>;
     248             : 
     249           0 :   using dg_registration_list =
     250             :       tmpl::list<observers::Actions::RegisterEventsWithObservers>;
     251             : 
     252           0 :   using initialization_actions = tmpl::flatten<tmpl::list<
     253             :       Initialization::Actions::InitializeItems<
     254             :           Initialization::TimeStepping<EvolutionMetavars, TimeStepperBase>,
     255             :           evolution::dg::Initialization::Domain<EvolutionMetavars>,
     256             :           Initialization::TimeStepperHistory<EvolutionMetavars>>,
     257             :       Initialization::Actions::ConservativeSystem<system>,
     258             : 
     259             :       tmpl::conditional_t<
     260             :           use_dg_subcell,
     261             :           tmpl::list<
     262             :               evolution::dg::subcell::Actions::SetSubcellGrid<volume_dim,
     263             :                                                               system, false>,
     264             :               Actions::UpdateConservatives,
     265             :               evolution::dg::subcell::Actions::SetAndCommunicateInitialRdmpData<
     266             :                   volume_dim,
     267             :                   NewtonianEuler::subcell::SetInitialRdmpData<volume_dim>>,
     268             :               evolution::dg::subcell::Actions::ComputeAndSendTciOnInitialGrid<
     269             :                   volume_dim, system,
     270             :                   NewtonianEuler::subcell::TciOnFdGrid<volume_dim>>,
     271             :               evolution::dg::subcell::Actions::SetInitialGridFromTciData<
     272             :                   volume_dim, system>,
     273             :               Actions::MutateApply<
     274             :                   NewtonianEuler::subcell::ResizeAndComputePrims<volume_dim>>,
     275             :               Actions::UpdateConservatives>,
     276             :           tmpl::list<evolution::Initialization::Actions::SetVariables<
     277             :                          domain::Tags::Coordinates<Dim, Frame::ElementLogical>>,
     278             :                      Actions::UpdateConservatives>>,
     279             :       Initialization::Actions::AddComputeTags<
     280             :           tmpl::list<NewtonianEuler::Tags::SoundSpeedSquaredCompute<DataVector>,
     281             :                      NewtonianEuler::Tags::SoundSpeedCompute<DataVector>>>,
     282             :       Initialization::Actions::AddComputeTags<
     283             :           StepChoosers::step_chooser_compute_tags<EvolutionMetavars,
     284             :                                                   local_time_stepping>>,
     285             :       ::evolution::dg::Initialization::Mortars<volume_dim>,
     286             :       tmpl::conditional_t<use_dg_subcell and local_time_stepping,
     287             :                           Initialization::Actions::InitializeItems<
     288             :                               evolution::dg::subcell::DisableLts<Dim>>,
     289             :                           tmpl::list<>>,
     290             :       evolution::Actions::InitializeRunEventsAndDenseTriggers,
     291             :       Parallel::Actions::TerminatePhase>>;
     292             : 
     293           0 :   using events_and_dense_triggers_postprocessors = tmpl::list<
     294             :       AlwaysReadyPostprocessor<typename system::primitive_from_conservative>>;
     295             : 
     296           0 :   using dg_step_actions = tmpl::flatten<tmpl::list<
     297             :       evolution::dg::Actions::ComputeTimeDerivative<
     298             :           volume_dim, system, AllStepChoosers, local_time_stepping,
     299             :           use_dg_element_collection>,
     300             :       evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
     301             :           volume_dim, use_dg_element_collection>,
     302             :       Actions::MutateApply<RecordTimeStepperData<system>>,
     303             :       tmpl::conditional_t<
     304             :           local_time_stepping,
     305             :           tmpl::list<
     306             :               evolution::Actions::RunEventsAndDenseTriggers<tmpl::push_front<
     307             :                   events_and_dense_triggers_postprocessors,
     308             :                   evolution::dg::ApplyLtsDenseBoundaryCorrections<
     309             :                       EvolutionMetavars>>>,
     310             :               Actions::MutateApply<UpdateU<system, local_time_stepping>>,
     311             :               evolution::dg::Actions::ApplyLtsBoundaryCorrections<
     312             :                   volume_dim, use_dg_element_collection>,
     313             :               Actions::MutateApply<ChangeTimeStepperOrder<system>>>,
     314             :           tmpl::list<
     315             :               evolution::Actions::RunEventsAndDenseTriggers<
     316             :                   events_and_dense_triggers_postprocessors>,
     317             :               Actions::MutateApply<UpdateU<system, local_time_stepping>>>>,
     318             :       tmpl::conditional_t<
     319             :           use_dg_subcell,
     320             :           // Note: The primitive variables are computed as part of the TCI.
     321             :           evolution::dg::subcell::Actions::TciAndRollback<
     322             :               NewtonianEuler::subcell::TciOnDgGrid<volume_dim>>,
     323             :           tmpl::list<
     324             :               // Conservative `UpdatePrimitives` expects system to
     325             :               // possess list of recovery schemes so we use
     326             :               // `MutateApply` instead.
     327             :               Actions::MutateApply<
     328             :                   typename system::primitive_from_conservative>>>,
     329             :       Actions::MutateApply<CleanHistory<system>>,
     330             :       tmpl::conditional_t<
     331             :           local_time_stepping,
     332             :           Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     333             :           tmpl::list<>>>>;
     334             : 
     335             :   struct SubcellOptions {
     336             :     static constexpr bool subcell_enabled = use_dg_subcell;
     337             :     static constexpr bool subcell_enabled_at_external_boundary = false;
     338             : 
     339             :     // We send `ghost_zone_size` cell-centered grid points for variable
     340             :     // reconstruction, of which we need `ghost_zone_size-1` for reconstruction
     341             :     // to the internal side of the element face, and `ghost_zone_size` for
     342             :     // reconstruction to the external side of the element face.
     343             :     template <typename DbTagsList>
     344           0 :     static constexpr size_t ghost_zone_size(
     345             :         const db::DataBox<DbTagsList>& box) {
     346             :       return db::get<NewtonianEuler::fd::Tags::Reconstructor<Dim>>(box)
     347             :           .ghost_zone_size();
     348             :     }
     349             : 
     350           0 :     using DgComputeSubcellNeighborPackagedData =
     351             :         NewtonianEuler::subcell::NeighborPackagedData;
     352             : 
     353           0 :     using GhostVariables =
     354             :         NewtonianEuler::subcell::PrimitiveGhostVariables<volume_dim>;
     355             :   };
     356             : 
     357           0 :   using dg_subcell_step_actions = tmpl::flatten<tmpl::list<
     358             :       evolution::dg::subcell::Actions::SelectNumericalMethod,
     359             : 
     360             :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginDg>,
     361             :       dg_step_actions,
     362             :       Actions::Goto<evolution::dg::subcell::Actions::Labels::EndOfSolvers>,
     363             : 
     364             :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginSubcell>,
     365             :       tmpl::conditional_t<local_time_stepping,
     366             :                           // This is just to adjust for FixedLtsRatio, so we
     367             :                           // can pass an empty list of StepChoosers.
     368             :                           Actions::MutateApply<ChangeStepSize<tmpl::list<>>>,
     369             :                           tmpl::list<>>,
     370             :       evolution::dg::subcell::Actions::SendDataForReconstruction<
     371             :           volume_dim,
     372             :           NewtonianEuler::subcell::PrimitiveGhostVariables<volume_dim>,
     373             :           use_dg_element_collection>,
     374             :       evolution::dg::subcell::Actions::ReceiveDataForReconstruction<volume_dim>,
     375             :       Actions::Label<
     376             :           evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback>,
     377             :       Actions::MutateApply<
     378             :           NewtonianEuler::subcell::PrimsAfterRollback<volume_dim>>,
     379             :       evolution::dg::subcell::fd::Actions::TakeTimeStep<
     380             :           NewtonianEuler::subcell::TimeDerivative<volume_dim>>,
     381             :       Actions::MutateApply<RecordTimeStepperData<system>>,
     382             :       evolution::Actions::RunEventsAndDenseTriggers<
     383             :           events_and_dense_triggers_postprocessors>,
     384             :       Actions::MutateApply<UpdateU<system, local_time_stepping>>,
     385             :       Actions::MutateApply<CleanHistory<system>>,
     386             :       tmpl::conditional_t<
     387             :           local_time_stepping,
     388             :           Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     389             :           tmpl::list<>>,
     390             :       Actions::MutateApply<typename system::primitive_from_conservative>,
     391             :       evolution::dg::subcell::Actions::TciAndSwitchToDg<
     392             :           NewtonianEuler::subcell::TciOnFdGrid<volume_dim>>,
     393             :       Actions::MutateApply<
     394             :           NewtonianEuler::subcell::ResizeAndComputePrims<volume_dim>>,
     395             : 
     396             :       Actions::Label<evolution::dg::subcell::Actions::Labels::EndOfSolvers>>>;
     397             : 
     398           0 :   using step_actions =
     399             :       tmpl::conditional_t<use_dg_subcell, dg_subcell_step_actions,
     400             :                           dg_step_actions>;
     401             : 
     402           0 :   using dg_element_array = DgElementArray<
     403             :       EvolutionMetavars,
     404             :       tmpl::list<
     405             :           Parallel::PhaseActions<Parallel::Phase::Initialization,
     406             :                                  initialization_actions>,
     407             : 
     408             :           Parallel::PhaseActions<
     409             :               Parallel::Phase::InitializeTimeStepperHistory,
     410             :               SelfStart::self_start_procedure<step_actions, system>>,
     411             : 
     412             :           Parallel::PhaseActions<Parallel::Phase::Register,
     413             :                                  tmpl::list<dg_registration_list,
     414             :                                             Parallel::Actions::TerminatePhase>>,
     415             : 
     416             :           Parallel::PhaseActions<Parallel::Phase::Restart,
     417             :                                  tmpl::list<dg_registration_list,
     418             :                                             Parallel::Actions::TerminatePhase>>,
     419             : 
     420             :           Parallel::PhaseActions<
     421             :               Parallel::Phase::WriteCheckpoint,
     422             :               tmpl::list<evolution::Actions::RunEventsAndTriggers<
     423             :                              Triggers::WhenToCheck::AtCheckpoints>,
     424             :                          Parallel::Actions::TerminatePhase>>,
     425             : 
     426             :           Parallel::PhaseActions<
     427             :               Parallel::Phase::Evolve,
     428             :               tmpl::flatten<tmpl::list<
     429             :                   std::conditional_t<local_time_stepping,
     430             :                                      evolution::Actions::RunEventsAndTriggers<
     431             :                                          Triggers::WhenToCheck::AtSteps>,
     432             :                                      tmpl::list<>>,
     433             :                   evolution::Actions::RunEventsAndTriggers<
     434             :                       Triggers::WhenToCheck::AtSlabs>,
     435             :                   Actions::ChangeSlabSize, step_actions,
     436             :                   Actions::MutateApply<AdvanceTime<>>,
     437             :                   PhaseControl::Actions::ExecutePhaseChange>>>>>;
     438             : 
     439             :   struct registration
     440             :       : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
     441           0 :     using element_registrars =
     442             :         tmpl::map<tmpl::pair<dg_element_array, dg_registration_list>>;
     443             :   };
     444             : 
     445           0 :   using component_list =
     446             :       tmpl::list<observers::Observer<EvolutionMetavars>,
     447             :                  observers::ObserverWriter<EvolutionMetavars>,
     448             :                  dg_element_array>;
     449             : 
     450           0 :   using const_global_cache_tags = tmpl::push_back<
     451             :       tmpl::conditional_t<
     452             :           use_dg_subcell,
     453             :           tmpl::list<NewtonianEuler::fd::Tags::Reconstructor<volume_dim>>,
     454             :           tmpl::list<>>,
     455             :       initial_data_tag, equation_of_state_tag,
     456             :       NewtonianEuler::Tags::SourceTerm<Dim>>;
     457             : 
     458             :   static constexpr Options::String help{
     459             :       "Evolve the Newtonian Euler system in conservative form.\n\n"};
     460             : 
     461             :   static constexpr std::array<Parallel::Phase, 5> default_phase_order{
     462             :       {Parallel::Phase::Initialization,
     463             :        Parallel::Phase::InitializeTimeStepperHistory, Parallel::Phase::Register,
     464             :        Parallel::Phase::Evolve, Parallel::Phase::Exit}};
     465             : 
     466             :   // NOLINTNEXTLINE(google-runtime-references)
     467           0 :   void pup(PUP::er& /*p*/) {}
     468             : };

Generated by: LCOV version 1.14