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