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/DisableLts.hpp"
25 : #include "Evolution/DgSubcell/GetTciDecision.hpp"
26 : #include "Evolution/DgSubcell/NeighborReconstructedFaceSolution.hpp"
27 : #include "Evolution/DgSubcell/NeighborTciDecision.hpp"
28 : #include "Evolution/DgSubcell/PrepareNeighborData.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/Initialization/Mortars.hpp"
37 : #include "Evolution/DiscontinuousGalerkin/Initialization/QuadratureTag.hpp"
38 : #include "Evolution/DiscontinuousGalerkin/Limiters/Minmod.hpp"
39 : #include "Evolution/DiscontinuousGalerkin/Limiters/Tags.hpp"
40 : #include "Evolution/Initialization/ConservativeSystem.hpp"
41 : #include "Evolution/Initialization/DgDomain.hpp"
42 : #include "Evolution/Initialization/Evolution.hpp"
43 : #include "Evolution/Initialization/Limiter.hpp"
44 : #include "Evolution/Initialization/SetVariables.hpp"
45 : #include "Evolution/Systems/ScalarAdvection/BoundaryConditions/Factory.hpp"
46 : #include "Evolution/Systems/ScalarAdvection/BoundaryCorrections/Factory.hpp"
47 : #include "Evolution/Systems/ScalarAdvection/FiniteDifference/Factory.hpp"
48 : #include "Evolution/Systems/ScalarAdvection/FiniteDifference/Tags.hpp"
49 : #include "Evolution/Systems/ScalarAdvection/Subcell/GhostData.hpp"
50 : #include "Evolution/Systems/ScalarAdvection/Subcell/NeighborPackagedData.hpp"
51 : #include "Evolution/Systems/ScalarAdvection/Subcell/SetInitialRdmpData.hpp"
52 : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOnDgGrid.hpp"
53 : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOnFdGrid.hpp"
54 : #include "Evolution/Systems/ScalarAdvection/Subcell/TciOptions.hpp"
55 : #include "Evolution/Systems/ScalarAdvection/Subcell/TimeDerivative.hpp"
56 : #include "Evolution/Systems/ScalarAdvection/Subcell/VelocityAtFace.hpp"
57 : #include "Evolution/Systems/ScalarAdvection/System.hpp"
58 : #include "Evolution/Systems/ScalarAdvection/VelocityField.hpp"
59 : #include "IO/Observer/Actions/RegisterEvents.hpp"
60 : #include "IO/Observer/Helpers.hpp"
61 : #include "IO/Observer/ObserverComponent.hpp"
62 : #include "NumericalAlgorithms/DiscontinuousGalerkin/Formulation.hpp"
63 : #include "NumericalAlgorithms/DiscontinuousGalerkin/Tags.hpp"
64 : #include "Options/Protocols/FactoryCreation.hpp"
65 : #include "Options/String.hpp"
66 : #include "Parallel/Local.hpp"
67 : #include "Parallel/Phase.hpp"
68 : #include "Parallel/PhaseControl/ExecutePhaseChange.hpp"
69 : #include "Parallel/PhaseControl/Factory.hpp"
70 : #include "Parallel/PhaseControl/VisitAndReturn.hpp"
71 : #include "Parallel/PhaseDependentActionList.hpp"
72 : #include "Parallel/Protocols/RegistrationMetavariables.hpp"
73 : #include "ParallelAlgorithms/Actions/AddComputeTags.hpp"
74 : #include "ParallelAlgorithms/Actions/AddSimpleTags.hpp"
75 : #include "ParallelAlgorithms/Actions/InitializeItems.hpp"
76 : #include "ParallelAlgorithms/Actions/LimiterActions.hpp"
77 : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
78 : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
79 : #include "ParallelAlgorithms/Events/Completion.hpp"
80 : #include "ParallelAlgorithms/Events/Factory.hpp"
81 : #include "ParallelAlgorithms/Events/Tags.hpp"
82 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
83 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
84 : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
85 : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
86 : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
87 : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
88 : #include "PointwiseFunctions/AnalyticData/AnalyticData.hpp"
89 : #include "PointwiseFunctions/AnalyticSolutions/AnalyticSolution.hpp"
90 : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Krivodonova.hpp"
91 : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Kuzmin.hpp"
92 : #include "PointwiseFunctions/AnalyticSolutions/ScalarAdvection/Sinusoid.hpp"
93 : #include "PointwiseFunctions/AnalyticSolutions/Tags.hpp"
94 : #include "Time/Actions/SelfStartActions.hpp"
95 : #include "Time/AdvanceTime.hpp"
96 : #include "Time/ChangeSlabSize/Action.hpp"
97 : #include "Time/ChangeStepSize.hpp"
98 : #include "Time/ChangeTimeStepperOrder.hpp"
99 : #include "Time/CleanHistory.hpp"
100 : #include "Time/RecordTimeStepperData.hpp"
101 : #include "Time/StepChoosers/Factory.hpp"
102 : #include "Time/StepChoosers/FixedLtsRatio.hpp"
103 : #include "Time/StepChoosers/StepChooser.hpp"
104 : #include "Time/Tags/Time.hpp"
105 : #include "Time/Tags/TimeStepId.hpp"
106 : #include "Time/TimeSequence.hpp"
107 : #include "Time/TimeSteppers/Factory.hpp"
108 : #include "Time/TimeSteppers/LtsTimeStepper.hpp"
109 : #include "Time/TimeSteppers/TimeStepper.hpp"
110 : #include "Time/Triggers/TimeTriggers.hpp"
111 : #include "Time/UpdateU.hpp"
112 : #include "Utilities/ProtocolHelpers.hpp"
113 : #include "Utilities/TMPL.hpp"
114 :
115 : /// \cond
116 : namespace PUP {
117 : class er;
118 : } // namespace PUP
119 : namespace Parallel {
120 : template <typename Metavariables>
121 : class CProxy_GlobalCache;
122 : } // namespace Parallel
123 : /// \endcond
124 :
125 : template <size_t Dim>
126 : struct EvolutionMetavars {
127 : static constexpr size_t volume_dim = Dim;
128 0 : using system = ScalarAdvection::System<Dim>;
129 0 : using temporal_id = Tags::TimeStepId;
130 0 : using TimeStepperBase = TimeStepper;
131 :
132 : static constexpr bool local_time_stepping =
133 : TimeStepperBase::local_time_stepping;
134 : static constexpr bool use_dg_element_collection = false;
135 :
136 : // The use_dg_subcell flag controls whether to use "standard" limiting (false)
137 : // or a DG-FD hybrid scheme (true).
138 : static constexpr bool use_dg_subcell = true;
139 :
140 0 : using initial_data_list =
141 : tmpl::conditional_t<Dim == 1,
142 : tmpl::list<ScalarAdvection::Solutions::Krivodonova,
143 : ScalarAdvection::Solutions::Sinusoid>,
144 : tmpl::list<ScalarAdvection::Solutions::Kuzmin>>;
145 :
146 0 : using limiter = Tags::Limiter<
147 : Limiters::Minmod<Dim, typename system::variables_tag::tags_list>>;
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 : tmpl::pair<evolution::BoundaryCorrection,
208 : ScalarAdvection::BoundaryCorrections::
209 : standard_boundary_corrections<Dim>>,
210 : tmpl::pair<evolution::initial_data::InitialData, initial_data_list>,
211 : tmpl::pair<LtsTimeStepper, TimeSteppers::lts_time_steppers>,
212 : tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
213 : tmpl::pair<ScalarAdvection::BoundaryConditions::BoundaryCondition<Dim>,
214 : ScalarAdvection::BoundaryConditions::
215 : standard_boundary_conditions<Dim>>,
216 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
217 : StepChoosers::standard_step_choosers<system>>,
218 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
219 : tmpl::append<StepChoosers::standard_slab_choosers<
220 : system, local_time_stepping>,
221 : tmpl::conditional_t<
222 : use_dg_subcell and local_time_stepping,
223 : tmpl::list<StepChoosers::FixedLtsRatio>,
224 : tmpl::list<>>>>,
225 : tmpl::pair<TimeSequence<double>,
226 : TimeSequences::all_time_sequences<double>>,
227 : tmpl::pair<TimeSequence<std::uint64_t>,
228 : TimeSequences::all_time_sequences<std::uint64_t>>,
229 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
230 : tmpl::pair<Trigger, tmpl::append<Triggers::logical_triggers,
231 : Triggers::time_triggers>>>;
232 : };
233 :
234 : struct SubcellOptions {
235 : static constexpr bool subcell_enabled = use_dg_subcell;
236 : static constexpr bool subcell_enabled_at_external_boundary = false;
237 :
238 : // We send `ghost_zone_size` cell-centered grid points for variable
239 : // reconstruction, of which we need `ghost_zone_size-1` for reconstruction
240 : // to the internal side of the element face, and `ghost_zone_size` for
241 : // reconstruction to the external side of the element face.
242 : template <typename DbTagsList>
243 0 : static constexpr size_t ghost_zone_size(
244 : const db::DataBox<DbTagsList>& box) {
245 : return db::get<ScalarAdvection::fd::Tags::Reconstructor<volume_dim>>(box)
246 : .ghost_zone_size();
247 : }
248 :
249 0 : using DgComputeSubcellNeighborPackagedData =
250 : ScalarAdvection::subcell::NeighborPackagedData;
251 :
252 0 : using GhostVariables = ScalarAdvection::subcell::GhostVariables;
253 : };
254 :
255 0 : using observed_reduction_data_tags =
256 : observers::collect_reduction_data_tags<tmpl::flatten<tmpl::list<
257 : tmpl::at<typename factory_creation::factory_classes, Event>>>>;
258 :
259 0 : using dg_step_actions = tmpl::flatten<tmpl::list<
260 : evolution::dg::Actions::ComputeTimeDerivative<
261 : volume_dim, system, AllStepChoosers, local_time_stepping,
262 : use_dg_element_collection>,
263 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
264 : volume_dim, use_dg_element_collection>,
265 : Actions::MutateApply<RecordTimeStepperData<system>>,
266 : tmpl::conditional_t<
267 : local_time_stepping,
268 : tmpl::list<evolution::Actions::RunEventsAndDenseTriggers<
269 : tmpl::list<evolution::dg::ApplyBoundaryCorrections<
270 : local_time_stepping, EvolutionMetavars, volume_dim,
271 : true>>>,
272 : Actions::MutateApply<UpdateU<system, local_time_stepping>>,
273 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
274 : volume_dim, false, use_dg_element_collection>,
275 : Actions::MutateApply<ChangeTimeStepperOrder<system>>>,
276 : tmpl::list<
277 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<>>,
278 : Actions::MutateApply<UpdateU<system, local_time_stepping>>>>,
279 : tmpl::conditional_t<use_dg_subcell,
280 : evolution::dg::subcell::Actions::TciAndRollback<
281 : ScalarAdvection::subcell::TciOnDgGrid<Dim>>,
282 : tmpl::list<>>,
283 : Actions::MutateApply<CleanHistory<system>>,
284 : tmpl::conditional_t<
285 : local_time_stepping,
286 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
287 : tmpl::list<>>,
288 : tmpl::conditional_t<use_dg_subcell, tmpl::list<>,
289 : tmpl::list<
290 : Limiters::Actions::SendData<EvolutionMetavars>,
291 : Limiters::Actions::Limit<EvolutionMetavars>>>>>;
292 :
293 0 : using dg_subcell_step_actions = tmpl::flatten<tmpl::list<
294 : evolution::dg::subcell::Actions::SelectNumericalMethod,
295 : Actions::Label<evolution::dg::subcell::Actions::Labels::BeginDg>,
296 : dg_step_actions,
297 : Actions::Goto<evolution::dg::subcell::Actions::Labels::EndOfSolvers>,
298 : Actions::Label<evolution::dg::subcell::Actions::Labels::BeginSubcell>,
299 : tmpl::conditional_t<local_time_stepping,
300 : // This is just to adjust for FixedLtsRatio, so we
301 : // can pass an empty list of StepChoosers.
302 : Actions::MutateApply<ChangeStepSize<tmpl::list<>>>,
303 : tmpl::list<>>,
304 : evolution::dg::subcell::Actions::SendDataForReconstruction<
305 : volume_dim, ScalarAdvection::subcell::GhostVariables,
306 : use_dg_element_collection>,
307 : evolution::dg::subcell::Actions::ReceiveDataForReconstruction<volume_dim>,
308 : Actions::Label<
309 : evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback>,
310 : evolution::dg::subcell::fd::Actions::TakeTimeStep<
311 : ScalarAdvection::subcell::TimeDerivative<volume_dim>>,
312 : Actions::MutateApply<RecordTimeStepperData<system>>,
313 : Actions::MutateApply<UpdateU<system, local_time_stepping>>,
314 : Actions::MutateApply<CleanHistory<system>>,
315 : tmpl::conditional_t<
316 : local_time_stepping,
317 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
318 : tmpl::list<>>,
319 : evolution::dg::subcell::Actions::TciAndSwitchToDg<
320 : ScalarAdvection::subcell::TciOnFdGrid<volume_dim>>,
321 : Actions::Label<evolution::dg::subcell::Actions::Labels::EndOfSolvers>>>;
322 :
323 0 : using step_actions =
324 : tmpl::conditional_t<use_dg_subcell, dg_subcell_step_actions,
325 : dg_step_actions>;
326 :
327 0 : using const_global_cache_tags =
328 : tmpl::list<evolution::initial_data::Tags::InitialData,
329 : tmpl::conditional_t<
330 : use_dg_subcell,
331 : tmpl::list<ScalarAdvection::fd::Tags::Reconstructor<Dim>,
332 : ScalarAdvection::subcell::Tags::TciOptions>,
333 : tmpl::list<>>>;
334 :
335 0 : using dg_registration_list =
336 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
337 :
338 0 : using initialization_actions = tmpl::list<
339 : Initialization::Actions::InitializeItems<
340 : Initialization::TimeStepping<EvolutionMetavars, TimeStepperBase>,
341 : evolution::dg::Initialization::Domain<EvolutionMetavars>,
342 : Initialization::TimeStepperHistory<EvolutionMetavars>>,
343 : Initialization::Actions::ConservativeSystem<system>,
344 :
345 : tmpl::conditional_t<
346 : use_dg_subcell,
347 : tmpl::list<
348 : evolution::dg::subcell::Actions::SetSubcellGrid<volume_dim,
349 : system, false>,
350 : Initialization::Actions::AddSimpleTags<
351 : ScalarAdvection::subcell::VelocityAtFace<volume_dim>>,
352 : evolution::dg::subcell::Actions::SetAndCommunicateInitialRdmpData<
353 : volume_dim,
354 : ScalarAdvection::subcell::SetInitialRdmpData<volume_dim>>,
355 : evolution::dg::subcell::Actions::ComputeAndSendTciOnInitialGrid<
356 : volume_dim, system,
357 : ScalarAdvection::subcell::TciOnFdGrid<volume_dim>>,
358 : evolution::dg::subcell::Actions::SetInitialGridFromTciData<
359 : volume_dim, system>>,
360 : tmpl::list<evolution::Initialization::Actions::SetVariables<
361 : domain::Tags::Coordinates<Dim, Frame::ElementLogical>>>>,
362 :
363 : Initialization::Actions::AddComputeTags<
364 : tmpl::list<ScalarAdvection::Tags::VelocityFieldCompute<Dim>>>,
365 : Initialization::Actions::AddComputeTags<
366 : StepChoosers::step_chooser_compute_tags<EvolutionMetavars,
367 : local_time_stepping>>,
368 : ::evolution::dg::Initialization::Mortars<volume_dim>,
369 : tmpl::conditional_t<use_dg_subcell and local_time_stepping,
370 : Initialization::Actions::InitializeItems<
371 : evolution::dg::subcell::DisableLts<Dim>>,
372 : tmpl::list<>>,
373 : tmpl::conditional_t<use_dg_subcell, tmpl::list<>,
374 : Initialization::Actions::Minmod<Dim>>,
375 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
376 : Parallel::Actions::TerminatePhase>;
377 :
378 0 : using dg_element_array = DgElementArray<
379 : EvolutionMetavars,
380 : tmpl::list<
381 : Parallel::PhaseActions<Parallel::Phase::Initialization,
382 : initialization_actions>,
383 :
384 : Parallel::PhaseActions<Parallel::Phase::Register,
385 : tmpl::list<dg_registration_list,
386 : Parallel::Actions::TerminatePhase>>,
387 :
388 : Parallel::PhaseActions<Parallel::Phase::Restart,
389 : tmpl::list<dg_registration_list,
390 : Parallel::Actions::TerminatePhase>>,
391 :
392 : Parallel::PhaseActions<
393 : Parallel::Phase::WriteCheckpoint,
394 : tmpl::list<evolution::Actions::RunEventsAndTriggers<
395 : Triggers::WhenToCheck::AtCheckpoints>,
396 : Parallel::Actions::TerminatePhase>>,
397 :
398 : Parallel::PhaseActions<
399 : Parallel::Phase::InitializeTimeStepperHistory,
400 : SelfStart::self_start_procedure<step_actions, system>>,
401 :
402 : Parallel::PhaseActions<
403 : Parallel::Phase::Evolve,
404 : tmpl::flatten<tmpl::list<
405 : std::conditional_t<local_time_stepping,
406 : evolution::Actions::RunEventsAndTriggers<
407 : Triggers::WhenToCheck::AtSteps>,
408 : tmpl::list<>>,
409 : evolution::Actions::RunEventsAndTriggers<
410 : Triggers::WhenToCheck::AtSlabs>,
411 : Actions::ChangeSlabSize, step_actions,
412 : Actions::MutateApply<AdvanceTime<>>,
413 : PhaseControl::Actions::ExecutePhaseChange>>>>>;
414 :
415 : struct registration
416 : : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
417 0 : using element_registrars =
418 : tmpl::map<tmpl::pair<dg_element_array, dg_registration_list>>;
419 : };
420 :
421 0 : using component_list =
422 : tmpl::list<observers::Observer<EvolutionMetavars>,
423 : observers::ObserverWriter<EvolutionMetavars>,
424 : dg_element_array>;
425 :
426 : static constexpr Options::String help{
427 : "Evolve the scalar advection equation.\n\n"};
428 :
429 : static constexpr std::array<Parallel::Phase, 5> default_phase_order{
430 : {Parallel::Phase::Initialization,
431 : Parallel::Phase::InitializeTimeStepperHistory, Parallel::Phase::Register,
432 : Parallel::Phase::Evolve, Parallel::Phase::Exit}};
433 :
434 : // NOLINTNEXTLINE(google-runtime-references)
435 0 : void pup(PUP::er& /*p*/) {}
436 : };
|