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/Psi4Real.hpp"
120 : #include "PointwiseFunctions/GeneralRelativity/Ricci.hpp"
121 : #include "PointwiseFunctions/GeneralRelativity/SpacetimeNormalVector.hpp"
122 : #include "PointwiseFunctions/GeneralRelativity/Surfaces/Tags.hpp"
123 : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
124 : #include "PointwiseFunctions/GeneralRelativity/WeylElectric.hpp"
125 : #include "PointwiseFunctions/GeneralRelativity/WeylTypeD1.hpp"
126 : #include "PointwiseFunctions/InitialDataUtilities/InitialData.hpp"
127 : #include "PointwiseFunctions/InitialDataUtilities/Tags/InitialData.hpp"
128 : #include "PointwiseFunctions/MathFunctions/Factory.hpp"
129 : #include "PointwiseFunctions/MathFunctions/MathFunction.hpp"
130 : #include "Time/ChangeTimeStepperOrder.hpp"
131 : #include "Time/CleanHistory.hpp"
132 : #include "Time/RecordTimeStepperData.hpp"
133 : #include "Time/StepChoosers/Factory.hpp"
134 : #include "Time/StepChoosers/StepChooser.hpp"
135 : #include "Time/Tags/Time.hpp"
136 : #include "Time/TimeSequence.hpp"
137 : #include "Time/TimeSteppers/Factory.hpp"
138 : #include "Time/TimeSteppers/TimeStepper.hpp"
139 : #include "Time/Triggers/TimeTriggers.hpp"
140 : #include "Time/UpdateU.hpp"
141 : #include "Utilities/ErrorHandling/Error.hpp"
142 : #include "Utilities/Functional.hpp"
143 : #include "Utilities/ProtocolHelpers.hpp"
144 : #include "Utilities/TMPL.hpp"
145 :
146 : /// \cond
147 : namespace Frame {
148 :
149 : struct Inertial;
150 : } // namespace Frame
151 : namespace PUP {
152 : class er;
153 : } // namespace PUP
154 : namespace Parallel {
155 : template <typename Metavariables>
156 : class CProxy_GlobalCache;
157 : } // namespace Parallel
158 : /// \endcond
159 :
160 : namespace detail {
161 :
162 : template <size_t volume_dim>
163 : struct ObserverTags {
164 : using system = gh::System<volume_dim>;
165 :
166 : using variables_tag = typename system::variables_tag;
167 : using analytic_solution_fields = typename variables_tag::tags_list;
168 :
169 : using initial_data_list = gh::Solutions::all_solutions<volume_dim>;
170 :
171 : using analytic_compute = evolution::Tags::AnalyticSolutionsCompute<
172 : volume_dim, analytic_solution_fields, false, initial_data_list>;
173 : using deriv_compute = ::Tags::DerivCompute<
174 : variables_tag, domain::Tags::Mesh<volume_dim>,
175 : domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
176 : Frame::Inertial>,
177 : typename system::gradient_variables,
178 : domain::Tags::Coordinates<volume_dim, Frame::Inertial>>;
179 : using error_compute = Tags::ErrorsCompute<analytic_solution_fields>;
180 : using error_tags = db::wrap_tags_in<Tags::Error, analytic_solution_fields>;
181 :
182 : using observe_fields = tmpl::append<
183 : tmpl::push_back<
184 : analytic_solution_fields, gh::Tags::GaugeH<DataVector, volume_dim>,
185 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>,
186 : gr::Tags::SpatialMetric<DataVector, volume_dim>,
187 : gr::Tags::DetSpatialMetric<DataVector>,
188 : gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
189 : gr::Tags::Shift<DataVector, volume_dim>, gr::Tags::Lapse<DataVector>,
190 : gr::Tags::SqrtDetSpatialMetricCompute<DataVector, volume_dim,
191 : Frame::Inertial>,
192 : gr::Tags::SpacetimeNormalOneFormCompute<DataVector, volume_dim,
193 : Frame::Inertial>,
194 : gr::Tags::SpacetimeNormalVectorCompute<DataVector, volume_dim,
195 : Frame::Inertial>,
196 : gr::Tags::InverseSpacetimeMetricCompute<DataVector, volume_dim,
197 : Frame::Inertial>,
198 : gh::Tags::DerivLapseCompute<volume_dim, Frame::Inertial>,
199 : gh::Tags::DerivShiftCompute<volume_dim, Frame::Inertial>,
200 : gh::Tags::DerivSpatialMetricCompute<volume_dim, Frame::Inertial>,
201 : gr::Tags::DerivInverseSpatialMetricCompute<volume_dim,
202 : Frame::Inertial>,
203 :
204 : gh::Tags::GaugeConstraintCompute<volume_dim, Frame::Inertial>,
205 : gh::Tags::TwoIndexConstraintCompute<volume_dim, Frame::Inertial>,
206 : gh::Tags::ThreeIndexConstraintCompute<volume_dim, Frame::Inertial>,
207 : gh::Tags::VSpacetimeMetricSpeedCompute<volume_dim, Frame::Inertial,
208 : Frame::ElementLogical>,
209 : gh::Tags::VZeroSpeedCompute<volume_dim, Frame::Inertial,
210 : Frame::ElementLogical>,
211 : gh::Tags::VMinusSpeedCompute<volume_dim, Frame::Inertial,
212 : Frame::ElementLogical>,
213 : gh::Tags::VPlusSpeedCompute<volume_dim, Frame::Inertial,
214 : Frame::ElementLogical>,
215 : gh::Tags::DerivSpatialMetricCompute<volume_dim, ::Frame::Inertial>,
216 : gr::Tags::SpatialChristoffelFirstKindCompute<DataVector, volume_dim,
217 : ::Frame::Inertial>,
218 : gr::Tags::SpatialChristoffelSecondKindCompute<DataVector, volume_dim,
219 : ::Frame::Inertial>,
220 : ::Tags::DerivTensorCompute<
221 : gr::Tags::SpatialChristoffelSecondKind<DataVector, volume_dim>,
222 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
223 : Frame::Inertial>,
224 : ::domain::Tags::Mesh<volume_dim>>,
225 : gr::Tags::SpatialRicciCompute<DataVector, volume_dim,
226 : ::Frame::Inertial>,
227 : gr::Tags::SpatialRicciScalarCompute<DataVector, volume_dim,
228 : ::Frame::Inertial>,
229 : // following tags added to observe constraints
230 : ::Tags::PointwiseL2NormCompute<
231 : gh::Tags::GaugeConstraint<DataVector, volume_dim>>,
232 : ::Tags::PointwiseL2NormCompute<
233 : gh::Tags::TwoIndexConstraint<DataVector, volume_dim>>,
234 : ::Tags::PointwiseL2NormCompute<
235 : gh::Tags::ThreeIndexConstraint<DataVector, volume_dim>>,
236 : ::domain::Tags::Coordinates<volume_dim, Frame::Grid>,
237 : ::domain::Tags::Coordinates<volume_dim, Frame::Inertial>>,
238 : error_tags,
239 : // The 4-index constraint is only implemented in 3d
240 : tmpl::conditional_t<
241 : volume_dim == 3,
242 : tmpl::list<
243 : gh::Tags::FourIndexConstraintCompute<3, Frame::Inertial>,
244 : gh::Tags::FConstraintCompute<3, Frame::Inertial>,
245 : ::Tags::PointwiseL2NormCompute<
246 : gh::Tags::FConstraint<DataVector, 3>>,
247 : ::Tags::PointwiseL2NormCompute<
248 : gh::Tags::FourIndexConstraint<DataVector, 3>>,
249 : gh::Tags::ConstraintEnergyCompute<3, Frame::Inertial>,
250 : gh::Tags::NormalizedConstraintEnergyCompute<3, Frame::Inertial>,
251 : gh::Tags::ExtrinsicCurvatureCompute<3, Frame::Inertial>,
252 : ::Tags::DerivTensorCompute<
253 : gr::Tags::ExtrinsicCurvature<DataVector, 3>,
254 : ::domain::Tags::InverseJacobian<
255 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
256 : ::domain::Tags::Mesh<volume_dim>>,
257 : gr::Tags::WeylElectricCompute<DataVector, 3, Frame::Inertial>,
258 : gr::Tags::WeylElectricScalarCompute<DataVector, 3,
259 : Frame::Inertial>,
260 : gr::Tags::WeylTypeD1Compute<DataVector, 3, Frame::Inertial>,
261 : gr::Tags::WeylTypeD1ScalarCompute<DataVector, 3, Frame::Inertial>,
262 : gr::Tags::Psi4RealCompute<Frame::Inertial>>,
263 : tmpl::list<>>>;
264 : using non_tensor_compute_tags = tmpl::list<
265 : ::Events::Tags::ObserverMeshCompute<volume_dim>,
266 : ::Events::Tags::ObserverCoordinatesCompute<volume_dim, Frame::Inertial>,
267 : ::Events::Tags::ObserverInverseJacobianCompute<
268 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
269 : ::Events::Tags::ObserverJacobianCompute<volume_dim, Frame::ElementLogical,
270 : Frame::Inertial>,
271 : ::Events::Tags::ObserverDetInvJacobianCompute<Frame::ElementLogical,
272 : Frame::Inertial>,
273 : ::Events::Tags::ObserverMeshVelocityCompute<volume_dim, Frame::Inertial>,
274 : analytic_compute, error_compute,
275 : gh::gauges::Tags::GaugeAndDerivativeCompute<
276 : volume_dim, gh::Solutions::all_solutions<volume_dim>>>;
277 :
278 : using field_observations =
279 : dg::Events::field_observations<volume_dim, observe_fields,
280 : non_tensor_compute_tags>;
281 : };
282 :
283 : template <size_t volume_dim>
284 : struct FactoryCreation : tt::ConformsTo<Options::protocols::FactoryCreation> {
285 : using system = gh::System<volume_dim>;
286 :
287 : using factory_classes = tmpl::map<
288 : tmpl::pair<
289 : amr::Criterion,
290 : tmpl::push_back<
291 : amr::Criteria::standard_criteria<
292 : volume_dim, typename system::variables_tag::tags_list>,
293 : amr::Criteria::Constraints<
294 : volume_dim, tmpl::list<gh::Tags::ThreeIndexConstraintCompute<
295 : volume_dim, Frame::Inertial>>>>>,
296 : tmpl::pair<DenseTrigger, DenseTriggers::standard_dense_triggers>,
297 : tmpl::pair<DomainCreator<volume_dim>, domain_creators<volume_dim>>,
298 : tmpl::pair<
299 : Event,
300 : tmpl::flatten<tmpl::list<
301 : Events::Completion, Events::MonitorMemory<volume_dim>,
302 : typename detail::ObserverTags<volume_dim>::field_observations,
303 : Events::time_events<system>,
304 : dg::Events::ObserveTimeStepVolume<system>,
305 : dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
306 : tmpl::pair<
307 : evolution::BoundaryCorrection,
308 : gh::BoundaryCorrections::standard_boundary_corrections<volume_dim>>,
309 : tmpl::pair<
310 : gh::BoundaryConditions::BoundaryCondition<volume_dim>,
311 : gh::BoundaryConditions::standard_boundary_conditions<volume_dim>>,
312 : tmpl::pair<gh::gauges::GaugeCondition, gh::gauges::all_gauges>,
313 : tmpl::pair<
314 : evolution::initial_data::InitialData,
315 : tmpl::append<gh::Solutions::all_solutions<volume_dim>,
316 : tmpl::conditional_t<volume_dim == 3,
317 : tmpl::list<gh::NumericInitialData>,
318 : tmpl::list<>>>>,
319 : tmpl::pair<MathFunction<1, Frame::Inertial>,
320 : MathFunctions::all_math_functions<1, Frame::Inertial>>,
321 : tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
322 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
323 : StepChoosers::standard_step_choosers<system>>,
324 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
325 : tmpl::push_back<
326 : StepChoosers::standard_slab_choosers<system>,
327 : evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
328 : tmpl::pair<TimeSequence<double>,
329 : TimeSequences::all_time_sequences<double>>,
330 : tmpl::pair<TimeSequence<std::uint64_t>,
331 : TimeSequences::all_time_sequences<std::uint64_t>>,
332 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
333 : tmpl::pair<Trigger, tmpl::append<Triggers::logical_triggers,
334 : Triggers::time_triggers>>,
335 : tmpl::pair<Filters::Filter<volume_dim,
336 : typename system::variables_tag::tags_list>,
337 : gh::all_filters<volume_dim>>>;
338 : };
339 : } // namespace detail
340 :
341 : template <size_t VolumeDim>
342 0 : struct GeneralizedHarmonicTemplateBase {
343 0 : static constexpr size_t volume_dim = VolumeDim;
344 0 : using system = gh::System<volume_dim>;
345 :
346 0 : static constexpr bool use_dg_element_collection = false;
347 :
348 : // NOLINTNEXTLINE(google-runtime-references)
349 0 : void pup(PUP::er& /*p*/) {}
350 :
351 0 : using factory_creation = detail::FactoryCreation<volume_dim>;
352 :
353 0 : using observed_reduction_data_tags =
354 : observers::collect_reduction_data_tags<tmpl::push_back<
355 : tmpl::at<typename factory_creation::factory_classes, Event>>>;
356 :
357 0 : using initialize_initial_data_dependent_quantities_actions =
358 : tmpl::list<gh::gauges::SetPiAndPhiFromConstraints<
359 : gh::Solutions::all_solutions<volume_dim>, volume_dim>,
360 : Parallel::Actions::TerminatePhase>;
361 :
362 : // A tmpl::list of tags to be added to the GlobalCache by the
363 : // metavariables
364 0 : using const_global_cache_tags =
365 : tmpl::list<gh::gauges::Tags::GaugeCondition,
366 : evolution::initial_data::Tags::InitialData,
367 : gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
368 : gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
369 : gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>;
370 :
371 0 : using dg_registration_list =
372 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
373 :
374 0 : using equal_rate_regions =
375 : tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>;
376 :
377 : // Register needs to be before InitializeTimeStepperHistory so that CCE is
378 : // properly registered when the self-start happens
379 0 : static constexpr auto default_phase_order =
380 : std::array{Parallel::Phase::Initialization,
381 : Parallel::Phase::RegisterWithElementDataReader,
382 : Parallel::Phase::ImportInitialData,
383 : Parallel::Phase::InitializeInitialDataDependentQuantities,
384 : Parallel::Phase::Register,
385 : Parallel::Phase::InitializeTimeStepperHistory,
386 : Parallel::Phase::CheckDomain,
387 : Parallel::Phase::Evolve,
388 : Parallel::Phase::Exit};
389 :
390 : template <typename DerivedMetavars, typename ControlSystems>
391 0 : using step_actions = tmpl::list<
392 : evolution::dg::Actions::ComputeTimeDerivative<
393 : volume_dim, system, AllStepChoosers, use_dg_element_collection>,
394 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
395 : volume_dim, use_dg_element_collection>,
396 : Actions::MutateApply<RecordTimeStepperData<system>>,
397 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
398 : ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
399 : evolution::dg::ApplyLtsDenseBoundaryCorrections<DerivedMetavars>>>,
400 : control_system::Actions::LimitTimeStep<ControlSystems>,
401 : Actions::MutateApply<UpdateU<system>>,
402 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
403 : volume_dim, use_dg_element_collection>,
404 : Actions::MutateApply<ChangeTimeStepperOrder<system>>,
405 : Actions::MutateApply<CleanHistory<system>>,
406 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
407 : dg::Actions::SpectralFilter<volume_dim,
408 : typename system::variables_tag::tags_list>>;
409 :
410 : template <typename DerivedMetavars, bool UseControlSystems>
411 0 : using initialization_actions = tmpl::list<
412 : Initialization::Actions::InitializeItems<
413 : Initialization::TimeStepping<DerivedMetavars, TimeStepper,
414 : UseControlSystems, true>,
415 : evolution::dg::Initialization::Domain<DerivedMetavars,
416 : UseControlSystems>,
417 : ::amr::Initialization::Initialize<volume_dim, DerivedMetavars>>,
418 : Initialization::Actions::NonconservativeSystem<system>,
419 : Initialization::Actions::InitializeItems<
420 : Initialization::TimeStepperHistory<system>>,
421 : Initialization::Actions::AddComputeTags<::Tags::DerivCompute<
422 : typename system::variables_tag, domain::Tags::Mesh<volume_dim>,
423 : domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
424 : Frame::Inertial>,
425 : typename system::gradient_variables,
426 : domain::Tags::Coordinates<volume_dim, Frame::Inertial>>>,
427 : gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
428 : Initialization::Actions::AddComputeTags<
429 : StepChoosers::step_chooser_compute_tags<
430 : GeneralizedHarmonicTemplateBase>>,
431 : ::evolution::dg::Initialization::Mortars<volume_dim>,
432 : evolution::dg::Initialization::Actions::SetupEqualRateRegions<
433 : DerivedMetavars, volume_dim, equal_rate_regions>,
434 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
435 : Initialization::Actions::InitializeItems<
436 : evolution::dg::Initialization::SpectralFilters<
437 : volume_dim, typename system::variables_tag::tags_list>>,
438 : Parallel::Actions::TerminatePhase>;
439 : };
|