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 <vector>
8 :
9 : #include "ControlSystem/Actions/LimitTimeStep.hpp"
10 : #include "DataStructures/DataBox/PrefixHelpers.hpp"
11 : #include "DataStructures/DataBox/Tag.hpp"
12 : #include "DataStructures/Tensor/EagerMath/RaiseOrLowerIndex.hpp"
13 : #include "Domain/Creators/Factory1D.hpp"
14 : #include "Domain/Creators/Factory2D.hpp"
15 : #include "Domain/Creators/Factory3D.hpp"
16 : #include "Domain/Tags.hpp"
17 : #include "Domain/TagsCharacteristicSpeeds.hpp"
18 : #include "Evolution/Actions/RunEventsAndDenseTriggers.hpp"
19 : #include "Evolution/BoundaryCorrection.hpp"
20 : #include "Evolution/ComputeTags.hpp"
21 : #include "Evolution/DiscontinuousGalerkin/Actions/ApplyBoundaryCorrections.hpp"
22 : #include "Evolution/DiscontinuousGalerkin/Actions/ComputeTimeDerivative.hpp"
23 : #include "Evolution/DiscontinuousGalerkin/CleanMortarHistory.hpp"
24 : #include "Evolution/DiscontinuousGalerkin/DgElementArray.hpp"
25 : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/FixedLtsRatio.hpp"
26 : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/NonconformingEqualRateRegions.hpp"
27 : #include "Evolution/DiscontinuousGalerkin/Initialization/Mortars.hpp"
28 : #include "Evolution/DiscontinuousGalerkin/Initialization/SetupEqualRateRegions.hpp"
29 : #include "Evolution/DiscontinuousGalerkin/Initialization/SpectralFilters.hpp"
30 : #include "Evolution/Initialization/DgDomain.hpp"
31 : #include "Evolution/Initialization/Evolution.hpp"
32 : #include "Evolution/Initialization/NonconservativeSystem.hpp"
33 : #include "Evolution/Systems/GeneralizedHarmonic/Actions/SetInitialData.hpp"
34 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/Factory.hpp"
35 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryCorrections/Factory.hpp"
36 : #include "Evolution/Systems/GeneralizedHarmonic/Equations.hpp"
37 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Factory.hpp"
38 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Gauges.hpp"
39 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/SetPiAndPhiFromConstraints.hpp"
40 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Tags/GaugeCondition.hpp"
41 : #include "Evolution/Systems/GeneralizedHarmonic/Initialize.hpp"
42 : #include "Evolution/Systems/GeneralizedHarmonic/SpectralFilter.hpp"
43 : #include "Evolution/Systems/GeneralizedHarmonic/System.hpp"
44 : #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp"
45 : #include "Evolution/TypeTraits.hpp"
46 : #include "IO/Importers/Actions/RegisterWithElementDataReader.hpp"
47 : #include "IO/Importers/ElementDataReader.hpp"
48 : #include "IO/Observer/Actions/ObserverRegistration.hpp"
49 : #include "IO/Observer/Actions/RegisterEvents.hpp"
50 : #include "IO/Observer/Helpers.hpp"
51 : #include "IO/Observer/ObserverComponent.hpp"
52 : #include "IO/Observer/Tags.hpp"
53 : #include "NumericalAlgorithms/DiscontinuousGalerkin/Tags.hpp"
54 : #include "NumericalAlgorithms/LinearOperators/Filters/Factory.hpp"
55 : #include "NumericalAlgorithms/LinearOperators/Filters/Tag.hpp"
56 : #include "Options/Protocols/FactoryCreation.hpp"
57 : #include "Options/String.hpp"
58 : #include "Parallel/Algorithms/AlgorithmSingleton.hpp"
59 : #include "Parallel/Local.hpp"
60 : #include "Parallel/Phase.hpp"
61 : #include "Parallel/PhaseControl/CheckpointAndExitAfterWallclock.hpp"
62 : #include "Parallel/PhaseControl/ExecutePhaseChange.hpp"
63 : #include "Parallel/PhaseControl/Factory.hpp"
64 : #include "Parallel/PhaseControl/VisitAndReturn.hpp"
65 : #include "Parallel/PhaseDependentActionList.hpp"
66 : #include "Parallel/Reduction.hpp"
67 : #include "ParallelAlgorithms/Actions/AddComputeTags.hpp"
68 : #include "ParallelAlgorithms/Actions/FunctionsOfTimeAreReady.hpp"
69 : #include "ParallelAlgorithms/Actions/InitializeItems.hpp"
70 : #include "ParallelAlgorithms/Actions/MemoryMonitor/ContributeMemoryData.hpp"
71 : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
72 : #include "ParallelAlgorithms/Actions/SpectralFilter.hpp"
73 : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
74 : #include "ParallelAlgorithms/Amr/Actions/CollectDataFromChildren.hpp"
75 : #include "ParallelAlgorithms/Amr/Actions/Component.hpp"
76 : #include "ParallelAlgorithms/Amr/Actions/CreateChild.hpp"
77 : #include "ParallelAlgorithms/Amr/Actions/Initialize.hpp"
78 : #include "ParallelAlgorithms/Amr/Actions/SendAmrDiagnostics.hpp"
79 : #include "ParallelAlgorithms/Amr/Criteria/Constraints.hpp"
80 : #include "ParallelAlgorithms/Amr/Criteria/Criterion.hpp"
81 : #include "ParallelAlgorithms/Amr/Criteria/Factory.hpp"
82 : #include "ParallelAlgorithms/Amr/Criteria/Tags/Criteria.hpp"
83 : #include "ParallelAlgorithms/Amr/Criteria/Type.hpp"
84 : #include "ParallelAlgorithms/Amr/Projectors/CopyFromCreatorOrLeaveAsIs.hpp"
85 : #include "ParallelAlgorithms/Amr/Projectors/DefaultInitialize.hpp"
86 : #include "ParallelAlgorithms/Amr/Projectors/Tensors.hpp"
87 : #include "ParallelAlgorithms/Amr/Projectors/Variables.hpp"
88 : #include "ParallelAlgorithms/Amr/Protocols/AmrMetavariables.hpp"
89 : #include "ParallelAlgorithms/Events/ChangeFixedLtsRatio.hpp"
90 : #include "ParallelAlgorithms/Events/Completion.hpp"
91 : #include "ParallelAlgorithms/Events/Factory.hpp"
92 : #include "ParallelAlgorithms/Events/MonitorMemory.hpp"
93 : #include "ParallelAlgorithms/Events/ObserveTimeStep.hpp"
94 : #include "ParallelAlgorithms/Events/ObserveTimeStepVolume.hpp"
95 : #include "ParallelAlgorithms/Events/Tags.hpp"
96 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
97 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
98 : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
99 : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
100 : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
101 : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
102 : #include "ParallelAlgorithms/Interpolation/Actions/InitializeInterpolationTarget.hpp"
103 : #include "ParallelAlgorithms/Interpolation/Callbacks/ObserveTimeSeriesOnSurface.hpp"
104 : #include "ParallelAlgorithms/Interpolation/InterpolationTarget.hpp"
105 : #include "ParallelAlgorithms/Interpolation/Tags.hpp"
106 : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Factory.hpp"
107 : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp"
108 : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/SphericalKerrSchild.hpp"
109 : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/WrappedGr.hpp"
110 : #include "PointwiseFunctions/AnalyticSolutions/Tags.hpp"
111 : #include "PointwiseFunctions/GeneralRelativity/Christoffel.hpp"
112 : #include "PointwiseFunctions/GeneralRelativity/DerivativeSpatialMetric.hpp"
113 : #include "PointwiseFunctions/GeneralRelativity/DetAndInverseSpatialMetric.hpp"
114 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ConstraintGammas.hpp"
115 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/DerivSpatialMetric.hpp"
116 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ExtrinsicCurvature.hpp"
117 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfLapse.hpp"
118 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfShift.hpp"
119 : #include "PointwiseFunctions/GeneralRelativity/Psi4Imag.hpp"
120 : #include "PointwiseFunctions/GeneralRelativity/Psi4Real.hpp"
121 : #include "PointwiseFunctions/GeneralRelativity/Ricci.hpp"
122 : #include "PointwiseFunctions/GeneralRelativity/SpacetimeNormalVector.hpp"
123 : #include "PointwiseFunctions/GeneralRelativity/Surfaces/Tags.hpp"
124 : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
125 : #include "PointwiseFunctions/GeneralRelativity/WeylElectric.hpp"
126 : #include "PointwiseFunctions/GeneralRelativity/WeylTypeD1.hpp"
127 : #include "PointwiseFunctions/InitialDataUtilities/InitialData.hpp"
128 : #include "PointwiseFunctions/InitialDataUtilities/Tags/InitialData.hpp"
129 : #include "PointwiseFunctions/InitialDataUtilities/WithNoise.hpp"
130 : #include "PointwiseFunctions/MathFunctions/Factory.hpp"
131 : #include "PointwiseFunctions/MathFunctions/MathFunction.hpp"
132 : #include "Time/ChangeTimeStepperOrder.hpp"
133 : #include "Time/CleanHistory.hpp"
134 : #include "Time/RecordTimeStepperData.hpp"
135 : #include "Time/StepChoosers/Factory.hpp"
136 : #include "Time/StepChoosers/StepChooser.hpp"
137 : #include "Time/Tags/Time.hpp"
138 : #include "Time/TimeSequence.hpp"
139 : #include "Time/TimeSteppers/Factory.hpp"
140 : #include "Time/TimeSteppers/TimeStepper.hpp"
141 : #include "Time/Triggers/TimeTriggers.hpp"
142 : #include "Time/UpdateU.hpp"
143 : #include "Utilities/ErrorHandling/Error.hpp"
144 : #include "Utilities/Functional.hpp"
145 : #include "Utilities/ProtocolHelpers.hpp"
146 : #include "Utilities/TMPL.hpp"
147 :
148 : /// \cond
149 : namespace Frame {
150 :
151 : struct Inertial;
152 : } // namespace Frame
153 : namespace PUP {
154 : class er;
155 : } // namespace PUP
156 : namespace Parallel {
157 : template <typename Metavariables>
158 : class CProxy_GlobalCache;
159 : } // namespace Parallel
160 : /// \endcond
161 :
162 : namespace detail {
163 :
164 : template <size_t volume_dim>
165 : struct ObserverTags {
166 : using system = gh::System<volume_dim>;
167 :
168 : using variables_tag = typename system::variables_tag;
169 : using analytic_solution_fields = typename variables_tag::tags_list;
170 :
171 : using initial_data_list = gh::Solutions::all_solutions<volume_dim>;
172 :
173 : using analytic_compute = evolution::Tags::AnalyticSolutionsCompute<
174 : volume_dim, analytic_solution_fields, false, initial_data_list>;
175 : using deriv_compute = ::Tags::DerivCompute<
176 : variables_tag, domain::Tags::Mesh<volume_dim>,
177 : domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
178 : Frame::Inertial>,
179 : typename system::gradient_variables,
180 : domain::Tags::Coordinates<volume_dim, Frame::Inertial>>;
181 : using error_compute = Tags::ErrorsCompute<analytic_solution_fields>;
182 : using error_tags = db::wrap_tags_in<Tags::Error, analytic_solution_fields>;
183 :
184 : using observe_fields = tmpl::append<
185 : tmpl::push_back<
186 : analytic_solution_fields, gh::Tags::GaugeH<DataVector, volume_dim>,
187 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>,
188 : gr::Tags::SpatialMetric<DataVector, volume_dim>,
189 : gr::Tags::DetSpatialMetric<DataVector>,
190 : gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
191 : gr::Tags::Shift<DataVector, volume_dim>, gr::Tags::Lapse<DataVector>,
192 : gr::Tags::SqrtDetSpatialMetricCompute<DataVector, volume_dim,
193 : Frame::Inertial>,
194 : gr::Tags::SpacetimeNormalOneFormCompute<DataVector, volume_dim,
195 : Frame::Inertial>,
196 : gr::Tags::SpacetimeNormalVectorCompute<DataVector, volume_dim,
197 : Frame::Inertial>,
198 : gr::Tags::InverseSpacetimeMetricCompute<DataVector, volume_dim,
199 : Frame::Inertial>,
200 : gh::Tags::DerivLapseCompute<volume_dim, Frame::Inertial>,
201 : gh::Tags::DerivShiftCompute<volume_dim, Frame::Inertial>,
202 : gh::Tags::DerivSpatialMetricCompute<volume_dim, Frame::Inertial>,
203 : gr::Tags::DerivInverseSpatialMetricCompute<volume_dim,
204 : Frame::Inertial>,
205 :
206 : gh::Tags::GaugeConstraintCompute<volume_dim, Frame::Inertial>,
207 : gh::Tags::TwoIndexConstraintCompute<volume_dim, Frame::Inertial>,
208 : gh::Tags::ThreeIndexConstraintCompute<volume_dim, Frame::Inertial>,
209 : gh::Tags::VSpacetimeMetricSpeedCompute<volume_dim, Frame::Inertial,
210 : Frame::ElementLogical>,
211 : gh::Tags::VZeroSpeedCompute<volume_dim, Frame::Inertial,
212 : Frame::ElementLogical>,
213 : gh::Tags::VMinusSpeedCompute<volume_dim, Frame::Inertial,
214 : Frame::ElementLogical>,
215 : gh::Tags::VPlusSpeedCompute<volume_dim, Frame::Inertial,
216 : Frame::ElementLogical>,
217 : gh::Tags::DerivSpatialMetricCompute<volume_dim, ::Frame::Inertial>,
218 : gr::Tags::SpatialChristoffelFirstKindCompute<DataVector, volume_dim,
219 : ::Frame::Inertial>,
220 : gr::Tags::SpatialChristoffelSecondKindCompute<DataVector, volume_dim,
221 : ::Frame::Inertial>,
222 : ::Tags::DerivTensorCompute<
223 : gr::Tags::SpatialChristoffelSecondKind<DataVector, volume_dim>,
224 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
225 : Frame::Inertial>,
226 : ::domain::Tags::Mesh<volume_dim>>,
227 : gr::Tags::SpatialRicciCompute<DataVector, volume_dim,
228 : ::Frame::Inertial>,
229 : gr::Tags::SpatialRicciScalarCompute<DataVector, volume_dim,
230 : ::Frame::Inertial>,
231 : // following tags added to observe constraints
232 : ::Tags::PointwiseL2NormCompute<
233 : gh::Tags::GaugeConstraint<DataVector, volume_dim>>,
234 : ::Tags::PointwiseL2NormCompute<
235 : gh::Tags::TwoIndexConstraint<DataVector, volume_dim>>,
236 : ::Tags::PointwiseL2NormCompute<
237 : gh::Tags::ThreeIndexConstraint<DataVector, volume_dim>>,
238 : ::domain::Tags::Coordinates<volume_dim, Frame::Grid>,
239 : ::domain::Tags::Coordinates<volume_dim, Frame::Inertial>>,
240 : error_tags,
241 : // The 4-index constraint is only implemented in 3d
242 : tmpl::conditional_t<
243 : volume_dim == 3,
244 : tmpl::list<
245 : gh::Tags::FourIndexConstraintCompute<3, Frame::Inertial>,
246 : gh::Tags::FConstraintCompute<3, Frame::Inertial>,
247 : ::Tags::PointwiseL2NormCompute<
248 : gh::Tags::FConstraint<DataVector, 3>>,
249 : ::Tags::PointwiseL2NormCompute<
250 : gh::Tags::FourIndexConstraint<DataVector, 3>>,
251 : gh::Tags::ConstraintEnergyCompute<3, Frame::Inertial>,
252 : gh::Tags::NormalizedConstraintEnergyCompute<3, Frame::Inertial>,
253 : gh::Tags::ExtrinsicCurvatureCompute<3, Frame::Inertial>,
254 : ::Tags::DerivTensorCompute<
255 : gr::Tags::ExtrinsicCurvature<DataVector, 3>,
256 : ::domain::Tags::InverseJacobian<
257 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
258 : ::domain::Tags::Mesh<volume_dim>>,
259 : gr::Tags::WeylElectricCompute<DataVector, 3, Frame::Inertial>,
260 : gr::Tags::WeylElectricScalarCompute<DataVector, 3,
261 : Frame::Inertial>,
262 : gr::Tags::WeylTypeD1Compute<DataVector, 3, Frame::Inertial>,
263 : gr::Tags::WeylTypeD1ScalarCompute<DataVector, 3, Frame::Inertial>,
264 : gr::Tags::Psi4RealCompute<Frame::Inertial>,
265 : gr::Tags::Psi4ImagCompute<Frame::Inertial>>,
266 : tmpl::list<>>>;
267 : using non_tensor_compute_tags = tmpl::list<
268 : ::Events::Tags::ObserverMeshCompute<volume_dim>,
269 : ::Events::Tags::ObserverCoordinatesCompute<volume_dim, Frame::Inertial>,
270 : ::Events::Tags::ObserverInverseJacobianCompute<
271 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
272 : ::Events::Tags::ObserverJacobianCompute<volume_dim, Frame::ElementLogical,
273 : Frame::Inertial>,
274 : ::Events::Tags::ObserverDetInvJacobianCompute<Frame::ElementLogical,
275 : Frame::Inertial>,
276 : ::Events::Tags::ObserverMeshVelocityCompute<volume_dim, Frame::Inertial>,
277 : analytic_compute, error_compute,
278 : gh::gauges::Tags::GaugeAndDerivativeCompute<
279 : volume_dim, gh::Solutions::all_solutions<volume_dim>>>;
280 :
281 : using field_observations =
282 : dg::Events::field_observations<volume_dim, observe_fields,
283 : non_tensor_compute_tags>;
284 : };
285 :
286 : template <size_t volume_dim>
287 : struct FactoryCreation : tt::ConformsTo<Options::protocols::FactoryCreation> {
288 : using system = gh::System<volume_dim>;
289 :
290 : using factory_classes = tmpl::map<
291 : tmpl::pair<
292 : amr::Criterion,
293 : tmpl::push_back<
294 : amr::Criteria::standard_criteria<
295 : volume_dim, typename system::variables_tag::tags_list>,
296 : amr::Criteria::Constraints<
297 : volume_dim, tmpl::list<gh::Tags::ThreeIndexConstraintCompute<
298 : volume_dim, Frame::Inertial>>>>>,
299 : tmpl::pair<DenseTrigger, DenseTriggers::standard_dense_triggers>,
300 : tmpl::pair<DomainCreator<volume_dim>, domain_creators<volume_dim>>,
301 : tmpl::pair<
302 : Event,
303 : tmpl::flatten<tmpl::list<
304 : Events::Completion, Events::MonitorMemory<volume_dim>,
305 : typename detail::ObserverTags<volume_dim>::field_observations,
306 : Events::time_events<system>,
307 : dg::Events::ObserveTimeStepVolume<system>,
308 : dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
309 : tmpl::pair<
310 : evolution::BoundaryCorrection,
311 : gh::BoundaryCorrections::standard_boundary_corrections<volume_dim>>,
312 : tmpl::pair<
313 : gh::BoundaryConditions::BoundaryCondition<volume_dim>,
314 : gh::BoundaryConditions::standard_boundary_conditions<volume_dim>>,
315 : tmpl::pair<gh::gauges::GaugeCondition, gh::gauges::all_gauges>,
316 : tmpl::pair<
317 : evolution::initial_data::InitialData,
318 : tmpl::append<gh::Solutions::all_solutions<volume_dim>,
319 : tmpl::list<evolution::initial_data::WithNoise>,
320 : tmpl::conditional_t<volume_dim == 3,
321 : tmpl::list<gh::NumericInitialData>,
322 : tmpl::list<>>>>,
323 : tmpl::pair<MathFunction<1, Frame::Inertial>,
324 : MathFunctions::all_math_functions<1, Frame::Inertial>>,
325 : tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
326 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
327 : StepChoosers::standard_step_choosers<system>>,
328 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
329 : tmpl::push_back<
330 : StepChoosers::standard_slab_choosers<system>,
331 : evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
332 : tmpl::pair<TimeSequence<double>,
333 : TimeSequences::all_time_sequences<double>>,
334 : tmpl::pair<TimeSequence<std::uint64_t>,
335 : TimeSequences::all_time_sequences<std::uint64_t>>,
336 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
337 : tmpl::pair<Trigger, tmpl::append<Triggers::logical_triggers,
338 : Triggers::time_triggers>>,
339 : tmpl::pair<Filters::Filter<volume_dim,
340 : typename system::variables_tag::tags_list>,
341 : gh::all_filters<volume_dim>>>;
342 : };
343 : } // namespace detail
344 :
345 : template <size_t VolumeDim>
346 0 : struct GeneralizedHarmonicTemplateBase {
347 0 : static constexpr size_t volume_dim = VolumeDim;
348 0 : using system = gh::System<volume_dim>;
349 :
350 0 : static constexpr bool use_dg_element_collection = false;
351 :
352 : // NOLINTNEXTLINE(google-runtime-references)
353 0 : void pup(PUP::er& /*p*/) {}
354 :
355 0 : using factory_creation = detail::FactoryCreation<volume_dim>;
356 :
357 0 : using observed_reduction_data_tags =
358 : observers::collect_reduction_data_tags<tmpl::push_back<
359 : tmpl::at<typename factory_creation::factory_classes, Event>>>;
360 :
361 0 : using initialize_initial_data_dependent_quantities_actions =
362 : tmpl::list<gh::gauges::SetPiAndPhiFromConstraints<
363 : gh::Solutions::all_solutions<volume_dim>, volume_dim>,
364 : Parallel::Actions::TerminatePhase>;
365 :
366 : // A tmpl::list of tags to be added to the GlobalCache by the
367 : // metavariables
368 0 : using const_global_cache_tags =
369 : tmpl::list<gh::gauges::Tags::GaugeCondition,
370 : evolution::initial_data::Tags::InitialData,
371 : gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
372 : gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
373 : gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>;
374 :
375 0 : using dg_registration_list =
376 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
377 :
378 0 : using equal_rate_regions =
379 : tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>;
380 :
381 : // Register needs to be before InitializeTimeStepperHistory so that CCE is
382 : // properly registered when the self-start happens
383 0 : static constexpr auto default_phase_order =
384 : std::array{Parallel::Phase::Initialization,
385 : Parallel::Phase::RegisterWithElementDataReader,
386 : Parallel::Phase::ImportInitialData,
387 : Parallel::Phase::InitializeInitialDataDependentQuantities,
388 : Parallel::Phase::Register,
389 : Parallel::Phase::InitializeTimeStepperHistory,
390 : Parallel::Phase::CheckDomain,
391 : Parallel::Phase::Evolve,
392 : Parallel::Phase::Exit};
393 :
394 : template <typename DerivedMetavars, typename ControlSystems>
395 0 : using step_actions = tmpl::list<
396 : evolution::dg::Actions::ComputeTimeDerivative<
397 : volume_dim, system, AllStepChoosers, use_dg_element_collection>,
398 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
399 : volume_dim, use_dg_element_collection>,
400 : Actions::MutateApply<RecordTimeStepperData<system>>,
401 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
402 : ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
403 : evolution::dg::ApplyLtsDenseBoundaryCorrections<DerivedMetavars>>>,
404 : control_system::Actions::LimitTimeStep<ControlSystems>,
405 : Actions::MutateApply<UpdateU<system>>,
406 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
407 : volume_dim, use_dg_element_collection>,
408 : Actions::MutateApply<ChangeTimeStepperOrder<system>>,
409 : Actions::MutateApply<CleanHistory<system>>,
410 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
411 : dg::Actions::SpectralFilter<volume_dim,
412 : typename system::variables_tag::tags_list>>;
413 :
414 : template <typename DerivedMetavars, bool UseControlSystems>
415 0 : using initialization_actions = tmpl::list<
416 : Initialization::Actions::InitializeItems<
417 : Initialization::TimeStepping<DerivedMetavars, TimeStepper,
418 : UseControlSystems, true>,
419 : evolution::dg::Initialization::Domain<DerivedMetavars,
420 : UseControlSystems>,
421 : ::amr::Initialization::Initialize<volume_dim, DerivedMetavars>>,
422 : Initialization::Actions::NonconservativeSystem<system>,
423 : Initialization::Actions::InitializeItems<
424 : Initialization::TimeStepperHistory<system>>,
425 : Initialization::Actions::AddComputeTags<::Tags::DerivCompute<
426 : typename system::variables_tag, domain::Tags::Mesh<volume_dim>,
427 : domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
428 : Frame::Inertial>,
429 : typename system::gradient_variables,
430 : domain::Tags::Coordinates<volume_dim, Frame::Inertial>>>,
431 : gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
432 : Initialization::Actions::AddComputeTags<
433 : StepChoosers::step_chooser_compute_tags<
434 : GeneralizedHarmonicTemplateBase>>,
435 : ::evolution::dg::Initialization::Mortars<volume_dim>,
436 : evolution::dg::Initialization::Actions::SetupEqualRateRegions<
437 : DerivedMetavars, volume_dim, equal_rate_regions>,
438 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
439 : Initialization::Actions::InitializeItems<
440 : evolution::dg::Initialization::SpectralFilters<
441 : volume_dim, typename system::variables_tag::tags_list>>,
442 : Parallel::Actions::TerminatePhase>;
443 : };
|