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