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

Generated by: LCOV version 2.0-1