Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <cstdint>
7 : #include <optional>
8 : #include <vector>
9 :
10 : #include "ControlSystem/Actions/InitializeMeasurements.hpp"
11 : #include "ControlSystem/Actions/LimitTimeStep.hpp"
12 : #include "ControlSystem/CleanFunctionsOfTime.hpp"
13 : #include "ControlSystem/Component.hpp"
14 : #include "ControlSystem/ControlErrors/Size/Factory.hpp"
15 : #include "ControlSystem/ControlErrors/Size/State.hpp"
16 : #include "ControlSystem/Measurements/BothHorizons.hpp"
17 : #include "ControlSystem/Metafunctions.hpp"
18 : #include "ControlSystem/Systems/Expansion.hpp"
19 : #include "ControlSystem/Systems/Rotation.hpp"
20 : #include "ControlSystem/Systems/Shape.hpp"
21 : #include "ControlSystem/Systems/Size.hpp"
22 : #include "ControlSystem/Systems/Skew.hpp"
23 : #include "ControlSystem/Systems/Translation.hpp"
24 : #include "ControlSystem/Trigger.hpp"
25 : #include "DataStructures/DataBox/PrefixHelpers.hpp"
26 : #include "DataStructures/DataBox/Tag.hpp"
27 : #include "DataStructures/LinkedMessageId.hpp"
28 : #include "DataStructures/Tensor/EagerMath/RaiseOrLowerIndex.hpp"
29 : #include "Domain/Creators/BinaryCompactObject.hpp"
30 : #include "Domain/Creators/CylindricalBinaryCompactObject.hpp"
31 : #include "Domain/Structure/ObjectLabel.hpp"
32 : #include "Domain/Tags.hpp"
33 : #include "Domain/TagsCharacteristicSpeeds.hpp"
34 : #include "Evolution/Actions/RunEventsAndDenseTriggers.hpp"
35 : #include "Evolution/Actions/RunEventsAndTriggers.hpp"
36 : #include "Evolution/BoundaryCorrection.hpp"
37 : #include "Evolution/ComputeTags.hpp"
38 : #include "Evolution/DiscontinuousGalerkin/Actions/ApplyBoundaryCorrections.hpp"
39 : #include "Evolution/DiscontinuousGalerkin/Actions/ComputeTimeDerivative.hpp"
40 : #include "Evolution/DiscontinuousGalerkin/CleanMortarHistory.hpp"
41 : #include "Evolution/DiscontinuousGalerkin/DgElementArray.hpp"
42 : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/ChangeFixedLtsRatio.hpp"
43 : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/FixedLtsRatio.hpp"
44 : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/NonconformingEqualRateRegions.hpp"
45 : #include "Evolution/DiscontinuousGalerkin/Initialization/Mortars.hpp"
46 : #include "Evolution/DiscontinuousGalerkin/Initialization/ProjectSpectralFilters.hpp"
47 : #include "Evolution/DiscontinuousGalerkin/Initialization/SetupEqualRateRegions.hpp"
48 : #include "Evolution/DiscontinuousGalerkin/Initialization/SpectralFilters.hpp"
49 : #include "Evolution/Executables/GeneralizedHarmonic/Deadlock.hpp"
50 : #include "Evolution/Initialization/DgDomain.hpp"
51 : #include "Evolution/Initialization/Evolution.hpp"
52 : #include "Evolution/Initialization/NonconservativeSystem.hpp"
53 : #include "Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp"
54 : #include "Evolution/Systems/GeneralizedHarmonic/Actions/SetInitialData.hpp"
55 : #include "Evolution/Systems/GeneralizedHarmonic/Bbh/Callbacks/UpdateCompletionCriteria.hpp"
56 : #include "Evolution/Systems/GeneralizedHarmonic/Bbh/CompletionCriteria.hpp"
57 : #include "Evolution/Systems/GeneralizedHarmonic/Bbh/CompletionSingleton.hpp"
58 : #include "Evolution/Systems/GeneralizedHarmonic/Bbh/Events/CheckConstraintThresholds.hpp"
59 : #include "Evolution/Systems/GeneralizedHarmonic/Bbh/PhaseControl/CheckpointAndExitIfComplete.hpp"
60 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/Bjorhus.hpp"
61 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/DemandOutgoingCharSpeeds.hpp"
62 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/DirichletMinkowski.hpp"
63 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/Factory.hpp"
64 : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryCorrections/Factory.hpp"
65 : #include "Evolution/Systems/GeneralizedHarmonic/Characteristics.hpp"
66 : #include "Evolution/Systems/GeneralizedHarmonic/Equations.hpp"
67 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Factory.hpp"
68 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Gauges.hpp"
69 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/SetPiAndPhiFromConstraints.hpp"
70 : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Tags/GaugeCondition.hpp"
71 : #include "Evolution/Systems/GeneralizedHarmonic/Initialize.hpp"
72 : #include "Evolution/Systems/GeneralizedHarmonic/SpectralFilter.hpp"
73 : #include "Evolution/Systems/GeneralizedHarmonic/System.hpp"
74 : #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp"
75 : #include "Evolution/Triggers/SeparationLessThan.hpp"
76 : #include "Evolution/TypeTraits.hpp"
77 : #include "IO/Importers/Actions/RegisterWithElementDataReader.hpp"
78 : #include "IO/Importers/ElementDataReader.hpp"
79 : #include "IO/Observer/Actions/ObserverRegistration.hpp"
80 : #include "IO/Observer/Actions/RegisterEvents.hpp"
81 : #include "IO/Observer/Helpers.hpp"
82 : #include "IO/Observer/ObserverComponent.hpp"
83 : #include "IO/Observer/Tags.hpp"
84 : #include "NumericalAlgorithms/DiscontinuousGalerkin/Tags.hpp"
85 : #include "NumericalAlgorithms/LinearOperators/Filters/Factory.hpp"
86 : #include "NumericalAlgorithms/LinearOperators/Filters/Tag.hpp"
87 : #include "NumericalAlgorithms/Strahlkorper/IO/InitialShapeFromFile.hpp"
88 : #include "NumericalAlgorithms/Strahlkorper/InitialShape.hpp"
89 : #include "Options/Options.hpp"
90 : #include "Options/ParseOptions.hpp"
91 : #include "Options/Protocols/FactoryCreation.hpp"
92 : #include "Options/String.hpp"
93 : #include "Parallel/Algorithms/AlgorithmSingleton.hpp"
94 : #include "Parallel/ArrayCollection/DgElementCollection.hpp"
95 : #include "Parallel/ArrayCollection/SimpleActionOnElement.hpp"
96 : #include "Parallel/GlobalCache.hpp"
97 : #include "Parallel/Invoke.hpp"
98 : #include "Parallel/Local.hpp"
99 : #include "Parallel/MemoryMonitor/MemoryMonitor.hpp"
100 : #include "Parallel/Phase.hpp"
101 : #include "Parallel/PhaseControl/CheckpointAndExitAfterWallclock.hpp"
102 : #include "Parallel/PhaseControl/ExecutePhaseChange.hpp"
103 : #include "Parallel/PhaseControl/Factory.hpp"
104 : #include "Parallel/PhaseControl/VisitAndReturn.hpp"
105 : #include "Parallel/PhaseDependentActionList.hpp"
106 : #include "Parallel/Protocols/RegistrationMetavariables.hpp"
107 : #include "Parallel/Reduction.hpp"
108 : #include "ParallelAlgorithms/Actions/AddComputeTags.hpp"
109 : #include "ParallelAlgorithms/Actions/FunctionsOfTimeAreReady.hpp"
110 : #include "ParallelAlgorithms/Actions/InitializeItems.hpp"
111 : #include "ParallelAlgorithms/Actions/MemoryMonitor/ContributeMemoryData.hpp"
112 : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
113 : #include "ParallelAlgorithms/Actions/SpectralFilter.hpp"
114 : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
115 : #include "ParallelAlgorithms/Amr/Actions/CollectDataFromChildren.hpp"
116 : #include "ParallelAlgorithms/Amr/Actions/Component.hpp"
117 : #include "ParallelAlgorithms/Amr/Actions/CreateChild.hpp"
118 : #include "ParallelAlgorithms/Amr/Actions/Initialize.hpp"
119 : #include "ParallelAlgorithms/Amr/Actions/SendAmrDiagnostics.hpp"
120 : #include "ParallelAlgorithms/Amr/Criteria/Constraints.hpp"
121 : #include "ParallelAlgorithms/Amr/Criteria/Criterion.hpp"
122 : #include "ParallelAlgorithms/Amr/Criteria/Factory.hpp"
123 : #include "ParallelAlgorithms/Amr/Events/ObserveAmrCriteria.hpp"
124 : #include "ParallelAlgorithms/Amr/Events/ObserveAmrStats.hpp"
125 : #include "ParallelAlgorithms/Amr/Events/RefineMesh.hpp"
126 : #include "ParallelAlgorithms/Amr/Projectors/CopyFromCreatorOrLeaveAsIs.hpp"
127 : #include "ParallelAlgorithms/Amr/Projectors/DefaultInitialize.hpp"
128 : #include "ParallelAlgorithms/Amr/Projectors/Tensors.hpp"
129 : #include "ParallelAlgorithms/Amr/Projectors/Variables.hpp"
130 : #include "ParallelAlgorithms/Amr/Protocols/AmrMetavariables.hpp"
131 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/FailedHorizonFind.hpp"
132 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveCenters.hpp"
133 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveFieldsOnHorizon.hpp"
134 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveTimeSeriesOnHorizon.hpp"
135 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/SendDependencyToObserverWriter.hpp"
136 : #include "ParallelAlgorithms/ApparentHorizonFinder/Component.hpp"
137 : #include "ParallelAlgorithms/ApparentHorizonFinder/Criteria/Criterion.hpp"
138 : #include "ParallelAlgorithms/ApparentHorizonFinder/Criteria/Factory.hpp"
139 : #include "ParallelAlgorithms/ApparentHorizonFinder/Destination.hpp"
140 : #include "ParallelAlgorithms/ApparentHorizonFinder/Events/FindApparentHorizon.hpp"
141 : #include "ParallelAlgorithms/ApparentHorizonFinder/Events/FindCommonHorizon.hpp"
142 : #include "ParallelAlgorithms/ApparentHorizonFinder/HorizonAliases.hpp"
143 : #include "ParallelAlgorithms/ApparentHorizonFinder/KerrSchild.hpp"
144 : #include "ParallelAlgorithms/ApparentHorizonFinder/Protocols/HorizonMetavars.hpp"
145 : #include "ParallelAlgorithms/ApparentHorizonFinder/Tags.hpp"
146 : #include "ParallelAlgorithms/Events/ChangeFixedLtsRatio.hpp"
147 : #include "ParallelAlgorithms/Events/Completion.hpp"
148 : #include "ParallelAlgorithms/Events/Factory.hpp"
149 : #include "ParallelAlgorithms/Events/MonitorMemory.hpp"
150 : #include "ParallelAlgorithms/Events/ObserveTimeStepVolume.hpp"
151 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
152 : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
153 : #include "ParallelAlgorithms/EventsAndTriggers/Actions/RunEventsOnFailure.hpp"
154 : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
155 : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
156 : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
157 : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
158 : #include "ParallelAlgorithms/Interpolation/Actions/ElementInitInterpPoints.hpp"
159 : #include "ParallelAlgorithms/Interpolation/Actions/InitializeInterpolationTarget.hpp"
160 : #include "ParallelAlgorithms/Interpolation/Callbacks/ObserveSurfaceData.hpp"
161 : #include "ParallelAlgorithms/Interpolation/Callbacks/ObserveTimeSeriesOnSurface.hpp"
162 : #include "ParallelAlgorithms/Interpolation/ComputeExcisionBoundaryVolumeQuantities.hpp"
163 : #include "ParallelAlgorithms/Interpolation/ComputeExcisionBoundaryVolumeQuantities.tpp"
164 : #include "ParallelAlgorithms/Interpolation/Events/InterpolateWithoutInterpComponent.hpp"
165 : #include "ParallelAlgorithms/Interpolation/InterpolationTarget.hpp"
166 : #include "ParallelAlgorithms/Interpolation/Protocols/InterpolationTargetTag.hpp"
167 : #include "ParallelAlgorithms/Interpolation/Tags.hpp"
168 : #include "ParallelAlgorithms/Interpolation/Targets/Sphere.hpp"
169 : #include "PointwiseFunctions/GeneralRelativity/Christoffel.hpp"
170 : #include "PointwiseFunctions/GeneralRelativity/DerivativeSpatialMetric.hpp"
171 : #include "PointwiseFunctions/GeneralRelativity/DetAndInverseSpatialMetric.hpp"
172 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ConstraintGammas.hpp"
173 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/DerivSpatialMetric.hpp"
174 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ExtrinsicCurvature.hpp"
175 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfLapse.hpp"
176 : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SpatialDerivOfShift.hpp"
177 : #include "PointwiseFunctions/GeneralRelativity/Psi4Real.hpp"
178 : #include "PointwiseFunctions/GeneralRelativity/Ricci.hpp"
179 : #include "PointwiseFunctions/GeneralRelativity/Surfaces/Tags.hpp"
180 : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
181 : #include "PointwiseFunctions/GeneralRelativity/WeylElectric.hpp"
182 : #include "PointwiseFunctions/GeneralRelativity/WeylTypeD1.hpp"
183 : #include "PointwiseFunctions/InitialDataUtilities/InitialData.hpp"
184 : #include "PointwiseFunctions/MathFunctions/Factory.hpp"
185 : #include "PointwiseFunctions/MathFunctions/MathFunction.hpp"
186 : #include "Time/Actions/SelfStartActions.hpp"
187 : #include "Time/AdvanceTime.hpp"
188 : #include "Time/ChangeSlabSize/Action.hpp"
189 : #include "Time/ChangeSlabSize/Tags.hpp"
190 : #include "Time/ChangeTimeStepperOrder.hpp"
191 : #include "Time/CleanHistory.hpp"
192 : #include "Time/RecordTimeStepperData.hpp"
193 : #include "Time/StepChoosers/Factory.hpp"
194 : #include "Time/StepChoosers/StepChooser.hpp"
195 : #include "Time/Tags/StepperErrors.hpp"
196 : #include "Time/Tags/Time.hpp"
197 : #include "Time/Tags/TimeStepId.hpp"
198 : #include "Time/TimeSequence.hpp"
199 : #include "Time/TimeSteppers/Factory.hpp"
200 : #include "Time/TimeSteppers/LtsTimeStepper.hpp"
201 : #include "Time/TimeSteppers/TimeStepper.hpp"
202 : #include "Time/Triggers/TimeTriggers.hpp"
203 : #include "Time/UpdateU.hpp"
204 : #include "Utilities/Algorithm.hpp"
205 : #include "Utilities/ErrorHandling/Error.hpp"
206 : #include "Utilities/Functional.hpp"
207 : #include "Utilities/GetOutput.hpp"
208 : #include "Utilities/NoSuchType.hpp"
209 : #include "Utilities/ProtocolHelpers.hpp"
210 : #include "Utilities/TMPL.hpp"
211 :
212 : // Check if SpEC is linked and therefore we can load SpEC initial data
213 : #ifdef HAS_SPEC_EXPORTER
214 : #include "PointwiseFunctions/AnalyticData/GeneralRelativity/SpecInitialData.hpp"
215 : using SpecInitialData = gr::AnalyticData::SpecInitialData;
216 : #else
217 0 : using SpecInitialData = NoSuchType;
218 : #endif
219 :
220 : /// \cond
221 : namespace Frame {
222 :
223 : struct Inertial;
224 : } // namespace Frame
225 : namespace PUP {
226 : class er;
227 : } // namespace PUP
228 : namespace Parallel {
229 : template <typename Metavariables>
230 : class CProxy_GlobalCache;
231 : } // namespace Parallel
232 : /// \endcond
233 :
234 : // Note: this executable does not use GeneralizedHarmonicBase.hpp, because
235 : // using it would require a number of changes in GeneralizedHarmonicBase.hpp
236 : // that would apply only when evolving binary black holes. This would
237 : // require adding a number of compile-time switches, an outcome we would prefer
238 : // to avoid.
239 : struct EvolutionMetavars {
240 : struct BondiSachs;
241 :
242 : static constexpr size_t volume_dim = 3;
243 0 : static constexpr bool use_damped_harmonic_rollon = false;
244 0 : using system = gh::System<volume_dim>;
245 0 : using temporal_id = Tags::TimeStepId;
246 0 : using TimeStepperBase = LtsTimeStepper;
247 :
248 : static constexpr bool local_time_stepping =
249 : TimeStepperBase::local_time_stepping;
250 : static constexpr bool use_dg_element_collection = false;
251 :
252 0 : using initialize_initial_data_dependent_quantities_actions =
253 : tmpl::list<gh::gauges::SetPiAndPhiFromConstraints<
254 : gh::Solutions::all_solutions<volume_dim>, volume_dim>,
255 : Parallel::Actions::TerminatePhase>;
256 :
257 : // NOLINTNEXTLINE(google-runtime-references)
258 0 : void pup(PUP::er& /*p*/) {}
259 :
260 : template <::domain::ObjectLabel Horizon, typename Frame>
261 0 : struct Ah : tt::ConformsTo<ah::protocols::HorizonMetavars> {
262 0 : static constexpr size_t index = 10 + static_cast<size_t>(Horizon);
263 :
264 0 : using time_tag = ah::Tags::ObservationTime<index>;
265 :
266 0 : using frame = Frame;
267 :
268 0 : using horizon_find_callbacks = tmpl::append<
269 : tmpl::conditional_t<
270 : Horizon == ::domain::ObjectLabel::C,
271 : tmpl::list<ah::callbacks::SendDependencyToObserverWriter<Ah, true>,
272 : gh::bbh::callbacks::UpdateCompletionCriteria<Ah>>,
273 : tmpl::list<>>,
274 : tmpl::list<ah::callbacks::ObserveFieldsOnHorizon<
275 : ::ah::surface_tags_for_observing, Ah>,
276 : ah::callbacks::ObserveTimeSeriesOnHorizon<
277 : ::ah::tags_for_observing<Frame>, Ah>>>;
278 0 : using horizon_find_failure_callbacks = tmpl::append<
279 : // Only ignore errors for AhC
280 : tmpl::list<ah::callbacks::FailedHorizonFind<
281 : Ah, Horizon == ::domain::ObjectLabel::C>>,
282 : tmpl::conditional_t<
283 : Horizon == ::domain::ObjectLabel::C,
284 : tmpl::list<
285 : ah::callbacks::SendDependencyToObserverWriter<Ah, false>>,
286 : tmpl::list<>>>;
287 :
288 0 : using compute_tags_on_element =
289 : tmpl::list<ah::Tags::ObservationTimeCompute<index>>;
290 :
291 0 : static constexpr ah::Destination destination = ah::Destination::Observation;
292 :
293 0 : static std::string name() {
294 : return "ObservationAh" + ::domain::name(Horizon);
295 : }
296 : };
297 :
298 0 : using AhA = Ah<::domain::ObjectLabel::A, ::Frame::Distorted>;
299 0 : using AhB = Ah<::domain::ObjectLabel::B, ::Frame::Distorted>;
300 0 : using AhC = Ah<::domain::ObjectLabel::C, ::Frame::Inertial>;
301 :
302 : template <::domain::ObjectLabel Excision>
303 0 : struct ExcisionBoundary
304 : : tt::ConformsTo<intrp::protocols::InterpolationTargetTag> {
305 0 : using temporal_id = ::Tags::Time;
306 0 : using tags_to_observe =
307 : tmpl::list<gr::Tags::Lapse<DataVector>,
308 : gr::Tags::Shift<DataVector, 3, Frame::Grid>>;
309 0 : using compute_vars_to_interpolate =
310 : intrp::ComputeExcisionBoundaryVolumeQuantities;
311 0 : using vars_to_interpolate_to_target = tags_to_observe;
312 0 : using compute_items_on_source = tmpl::list<>;
313 0 : using compute_items_on_target = tmpl::list<>;
314 0 : using compute_target_points =
315 : intrp::TargetPoints::Sphere<ExcisionBoundary<Excision>, ::Frame::Grid>;
316 0 : using post_interpolation_callbacks =
317 : tmpl::list<intrp::callbacks::ObserveSurfaceData<
318 : tags_to_observe, ExcisionBoundary<Excision>, ::Frame::Grid>>;
319 : // run_callbacks
320 : template <typename metavariables>
321 0 : using interpolating_component = typename metavariables::gh_dg_element_array;
322 0 : static std::string name() {
323 : return "ObservationExcisionBoundary" + ::domain::name(Excision);
324 : }
325 : };
326 :
327 0 : using ExcisionBoundaryA = ExcisionBoundary<::domain::ObjectLabel::A>;
328 0 : using ExcisionBoundaryB = ExcisionBoundary<::domain::ObjectLabel::B>;
329 0 : using both_horizons = control_system::measurements::BothHorizons;
330 0 : using control_systems =
331 : tmpl::list<control_system::Systems::Rotation<3, both_horizons>,
332 : control_system::Systems::Expansion<2, both_horizons>,
333 : control_system::Systems::Translation<2, both_horizons, 2>,
334 : control_system::Systems::Skew<2, both_horizons>,
335 : control_system::Systems::Shape<::domain::ObjectLabel::A, 2,
336 : both_horizons>,
337 : control_system::Systems::Shape<::domain::ObjectLabel::B, 2,
338 : both_horizons>,
339 : control_system::Systems::Size<::domain::ObjectLabel::A, 2>,
340 : control_system::Systems::Size<::domain::ObjectLabel::B, 2>>;
341 :
342 0 : static constexpr bool use_control_systems =
343 : tmpl::size<control_systems>::value > 0;
344 :
345 0 : using source_vars_no_deriv =
346 : tmpl::list<gr::Tags::SpacetimeMetric<DataVector, volume_dim>,
347 : gh::Tags::Pi<DataVector, volume_dim>,
348 : gh::Tags::Phi<DataVector, volume_dim>>;
349 :
350 0 : struct BondiSachs : tt::ConformsTo<intrp::protocols::InterpolationTargetTag> {
351 0 : static std::string name() { return "BondiSachsInterpolation"; }
352 0 : using temporal_id = ::Tags::Time;
353 0 : using vars_to_interpolate_to_target = source_vars_no_deriv;
354 0 : using compute_target_points =
355 : intrp::TargetPoints::Sphere<BondiSachs, ::Frame::Inertial>;
356 0 : using post_interpolation_callbacks =
357 : tmpl::list<intrp::callbacks::DumpBondiSachsOnWorldtube<BondiSachs>>;
358 0 : using compute_items_on_target = tmpl::list<>;
359 : template <typename metavariables>
360 0 : using interpolating_component = typename metavariables::gh_dg_element_array;
361 : };
362 :
363 0 : using interpolation_target_tags = tmpl::push_back<
364 : control_system::metafunctions::interpolation_target_tags<control_systems>,
365 : BondiSachs, ExcisionBoundaryA, ExcisionBoundaryB>;
366 :
367 0 : using observe_fields = tmpl::append<
368 : tmpl::list<
369 : gr::Tags::SpacetimeMetric<DataVector, volume_dim>,
370 : gh::Tags::Pi<DataVector, volume_dim>,
371 : gh::Tags::Phi<DataVector, volume_dim>,
372 : gh::Tags::GaugeH<DataVector, volume_dim>,
373 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>,
374 : gr::Tags::Lapse<DataVector>, gr::Tags::Shift<DataVector, volume_dim>,
375 : gr::Tags::SpatialMetric<DataVector, volume_dim>,
376 : gr::Tags::DetSpatialMetric<DataVector>,
377 : gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
378 : gr::Tags::SqrtDetSpatialMetricCompute<DataVector, volume_dim,
379 : ::Frame::Inertial>,
380 : gr::Tags::SpacetimeNormalOneFormCompute<DataVector, volume_dim,
381 : ::Frame::Inertial>,
382 : gr::Tags::SpacetimeNormalVectorCompute<DataVector, volume_dim,
383 : ::Frame::Inertial>,
384 : gr::Tags::InverseSpacetimeMetricCompute<DataVector, volume_dim,
385 : ::Frame::Inertial>,
386 : gh::Tags::DerivLapseCompute<volume_dim, Frame::Inertial>,
387 : gh::Tags::DerivShiftCompute<volume_dim, Frame::Inertial>,
388 : gh::Tags::DerivSpatialMetricCompute<volume_dim, Frame::Inertial>,
389 : gr::Tags::DerivInverseSpatialMetricCompute<volume_dim,
390 : Frame::Inertial>,
391 : gh::Tags::GaugeConstraintCompute<volume_dim, ::Frame::Inertial>,
392 : gh::Tags::TwoIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
393 : gh::Tags::ThreeIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
394 : gh::Tags::DerivSpatialMetricCompute<volume_dim, ::Frame::Inertial>,
395 : gr::Tags::SpatialChristoffelFirstKindCompute<DataVector, volume_dim,
396 : ::Frame::Inertial>,
397 : gr::Tags::SpatialChristoffelSecondKindCompute<DataVector, volume_dim,
398 : ::Frame::Inertial>,
399 : ::Tags::DerivTensorCompute<
400 : gr::Tags::SpatialChristoffelSecondKind<DataVector, volume_dim>,
401 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
402 : Frame::Inertial>,
403 : ::domain::Tags::Mesh<volume_dim>>,
404 : gr::Tags::SpatialRicciCompute<DataVector, volume_dim,
405 : ::Frame::Inertial>,
406 : gr::Tags::SpatialRicciScalarCompute<DataVector, volume_dim,
407 : ::Frame::Inertial>,
408 : // observe norms of tensors
409 : ::Tags::PointwiseL2NormCompute<
410 : gr::Tags::Shift<DataVector, volume_dim>>,
411 : ::Tags::PointwiseL2NormCompute<
412 : gr::Tags::SpatialMetric<DataVector, volume_dim>>,
413 : ::Tags::PointwiseL2NormCompute<
414 : gr::Tags::SpacetimeMetric<DataVector, volume_dim>>,
415 : ::Tags::PointwiseL2NormCompute<gh::Tags::Pi<DataVector, volume_dim>>,
416 : ::Tags::PointwiseL2NormCompute<gh::Tags::Phi<DataVector, volume_dim>>,
417 : ::Tags::PointwiseL2NormCompute<
418 : gh::Tags::GaugeH<DataVector, volume_dim>>,
419 : ::Tags::PointwiseL2NormCompute<
420 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>>,
421 : // following tags added to observe constraints
422 : ::Tags::PointwiseL2NormCompute<
423 : gh::Tags::GaugeConstraint<DataVector, volume_dim>>,
424 : ::Tags::PointwiseL2NormCompute<
425 : gh::Tags::TwoIndexConstraint<DataVector, volume_dim>>,
426 : ::Tags::PointwiseL2NormCompute<
427 : gh::Tags::ThreeIndexConstraint<DataVector, volume_dim>>,
428 : ::domain::Tags::Coordinates<volume_dim, Frame::Grid>,
429 : ::domain::Tags::Coordinates<volume_dim, Frame::Inertial>>,
430 : // The 4-index constraint is only implemented in 3d
431 : tmpl::conditional_t<
432 : volume_dim == 3,
433 : tmpl::list<
434 : gh::Tags::FourIndexConstraintCompute<3, ::Frame::Inertial>,
435 : gh::Tags::FConstraintCompute<3, ::Frame::Inertial>,
436 : ::Tags::PointwiseL2NormCompute<
437 : gh::Tags::FConstraint<DataVector, 3>>,
438 : ::Tags::PointwiseL2NormCompute<
439 : gh::Tags::FourIndexConstraint<DataVector, 3>>,
440 : gh::Tags::ConstraintEnergyCompute<3, ::Frame::Inertial>,
441 : gh::Tags::NormalizedConstraintEnergyCompute<3, ::Frame::Inertial>,
442 : gh::Tags::ExtrinsicCurvatureCompute<3, ::Frame::Inertial>,
443 : ::Tags::DerivTensorCompute<
444 : gr::Tags::ExtrinsicCurvature<DataVector, 3>,
445 : ::domain::Tags::InverseJacobian<
446 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
447 : ::domain::Tags::Mesh<volume_dim>>,
448 : gr::Tags::WeylElectricCompute<DataVector, 3, Frame::Inertial>,
449 : gr::Tags::WeylElectricScalarCompute<DataVector, 3,
450 : Frame::Inertial>,
451 : gr::Tags::WeylTypeD1Compute<DataVector, 3, Frame::Inertial>,
452 : gr::Tags::WeylTypeD1ScalarCompute<DataVector, 3, Frame::Inertial>,
453 : gr::Tags::Psi4RealCompute<Frame::Inertial>>,
454 : tmpl::list<>>>;
455 0 : using non_tensor_compute_tags = tmpl::list<
456 : ::Events::Tags::ObserverMeshCompute<volume_dim>,
457 : ::Events::Tags::ObserverCoordinatesCompute<volume_dim, Frame::Inertial>,
458 : ::Events::Tags::ObserverInverseJacobianCompute<
459 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
460 : ::Events::Tags::ObserverJacobianCompute<volume_dim, Frame::ElementLogical,
461 : Frame::Inertial>,
462 : ::Events::Tags::ObserverDetInvJacobianCompute<Frame::ElementLogical,
463 : Frame::Inertial>,
464 : ::Events::Tags::ObserverMeshVelocityCompute<volume_dim, Frame::Inertial>,
465 : gh::gauges::Tags::GaugeAndDerivativeCompute<
466 : volume_dim, gh::Solutions::all_solutions<volume_dim>>>;
467 :
468 : struct factory_creation
469 : : tt::ConformsTo<Options::protocols::FactoryCreation> {
470 0 : using factory_classes = tmpl::map<
471 : tmpl::pair<ah::Criterion, ah::Criteria::standard_criteria>,
472 : tmpl::pair<ylm::InitialShape<Frame::Distorted>,
473 : tmpl::list<ylm::InitialShapes::Sphere<Frame::Distorted>,
474 : ylm::InitialShapes::FromFile<Frame::Distorted>,
475 : ah::InitialShapes::KerrSchild<Frame::Distorted>>>,
476 : tmpl::pair<ylm::InitialShape<Frame::Inertial>,
477 : tmpl::list<ylm::InitialShapes::Sphere<Frame::Inertial>,
478 : ylm::InitialShapes::FromFile<Frame::Inertial>,
479 : ah::InitialShapes::KerrSchild<Frame::Inertial>>>,
480 : tmpl::pair<
481 : amr::Criterion,
482 : tmpl::push_back<
483 : amr::Criteria::standard_criteria<
484 : volume_dim, typename system::variables_tag::tags_list>,
485 : amr::Criteria::Constraints<
486 : volume_dim,
487 : tmpl::list<gh::Tags::ThreeIndexConstraintCompute<
488 : volume_dim, Frame::Inertial>>>>>,
489 : tmpl::pair<
490 : evolution::initial_data::InitialData,
491 : tmpl::flatten<tmpl::list<
492 : gh::NumericInitialData,
493 : tmpl::conditional_t<std::is_same_v<SpecInitialData, NoSuchType>,
494 : tmpl::list<>, SpecInitialData>>>>,
495 : tmpl::pair<DenseTrigger,
496 : tmpl::flatten<tmpl::list<
497 : control_system::control_system_triggers<control_systems>,
498 : DenseTriggers::standard_dense_triggers>>>,
499 : tmpl::pair<
500 : DomainCreator<volume_dim>,
501 : tmpl::list<::domain::creators::BinaryCompactObject,
502 : ::domain::creators::CylindricalBinaryCompactObject>>,
503 : tmpl::pair<Event,
504 : tmpl::flatten<tmpl::list<
505 : ah::Events::FindApparentHorizon<AhA>,
506 : ah::Events::FindApparentHorizon<AhB>,
507 : ah::Events::FindCommonHorizon<AhC, observe_fields,
508 : non_tensor_compute_tags>,
509 : gh::bbh::Events::CheckConstraintThresholds,
510 : intrp::Events::InterpolateWithoutInterpComponent<
511 : 3, BondiSachs, source_vars_no_deriv>,
512 : intrp::Events::InterpolateWithoutInterpComponent<
513 : 3, ExcisionBoundaryA, ah::source_vars<3>>,
514 : intrp::Events::InterpolateWithoutInterpComponent<
515 : 3, ExcisionBoundaryB, ah::source_vars<3>>,
516 : Events::MonitorMemory<3>, Events::Completion,
517 : dg::Events::field_observations<
518 : volume_dim, observe_fields, non_tensor_compute_tags>,
519 : control_system::metafunctions::control_system_events<
520 : control_systems>,
521 : control_system::CleanFunctionsOfTime,
522 : Events::time_events<system>,
523 : dg::Events::ObserveTimeStepVolume<system>,
524 : amr::Events::RefineMesh,
525 : amr::Events::ObserveAmrStats<volume_dim>,
526 : amr::Events::ObserveAmrCriteria<EvolutionMetavars>,
527 : dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
528 : tmpl::pair<
529 : evolution::BoundaryCorrection,
530 : gh::BoundaryCorrections::standard_boundary_corrections<volume_dim>>,
531 : tmpl::pair<control_system::size::State,
532 : control_system::size::States::factory_creatable_states>,
533 : tmpl::pair<
534 : gh::BoundaryConditions::BoundaryCondition<volume_dim>,
535 : tmpl::list<
536 : gh::BoundaryConditions::ConstraintPreservingBjorhus<volume_dim>,
537 : gh::BoundaryConditions::DirichletMinkowski<volume_dim>,
538 : gh::BoundaryConditions::DemandOutgoingCharSpeeds<volume_dim>>>,
539 : tmpl::pair<
540 : gh::gauges::GaugeCondition,
541 : tmpl::list<gh::gauges::DampedHarmonic, gh::gauges::Harmonic>>,
542 : tmpl::pair<MathFunction<1, Frame::Inertial>,
543 : MathFunctions::all_math_functions<1, Frame::Inertial>>,
544 : // Restrict to monotonic time steppers in LTS to avoid control
545 : // systems deadlocking.
546 : tmpl::pair<LtsTimeStepper, TimeSteppers::monotonic_lts_time_steppers>,
547 : tmpl::pair<PhaseChange,
548 : tmpl::push_back<
549 : PhaseControl::factory_creatable_classes,
550 : gh::bbh::phase_control::CheckpointAndExitIfComplete>>,
551 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
552 : StepChoosers::standard_step_choosers<system>>,
553 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
554 : tmpl::push_back<
555 : StepChoosers::standard_slab_choosers<system>,
556 : evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
557 : tmpl::pair<TimeSequence<double>,
558 : TimeSequences::all_time_sequences<double>>,
559 : tmpl::pair<TimeSequence<std::uint64_t>,
560 : TimeSequences::all_time_sequences<std::uint64_t>>,
561 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
562 : tmpl::pair<
563 : Trigger,
564 : tmpl::append<Triggers::logical_triggers, Triggers::time_triggers,
565 : tmpl::list<Triggers::SeparationLessThan<false>>>>,
566 : tmpl::pair<Filters::Filter<volume_dim,
567 : typename system::variables_tag::tags_list>,
568 : gh::all_filters<volume_dim>>>;
569 : };
570 :
571 : // A tmpl::list of tags to be added to the GlobalCache by the
572 : // metavariables
573 0 : using const_global_cache_tags =
574 : tmpl::list<gh::gauges::Tags::GaugeCondition,
575 : gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
576 : gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
577 : gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>;
578 :
579 0 : using mutable_global_cache_tags = tmpl::list<>;
580 :
581 0 : using dg_registration_list =
582 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
583 :
584 0 : using equal_rate_regions =
585 : tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>;
586 :
587 : static constexpr auto default_phase_order =
588 : std::array{Parallel::Phase::Initialization,
589 : Parallel::Phase::RegisterWithElementDataReader,
590 : Parallel::Phase::ImportInitialData,
591 : Parallel::Phase::InitializeInitialDataDependentQuantities,
592 : Parallel::Phase::Register,
593 : Parallel::Phase::InitializeTimeStepperHistory,
594 : Parallel::Phase::CheckDomain,
595 : Parallel::Phase::Evolve,
596 : Parallel::Phase::Exit};
597 :
598 0 : using step_actions = tmpl::list<
599 : evolution::dg::Actions::ComputeTimeDerivative<
600 : volume_dim, system, AllStepChoosers, local_time_stepping,
601 : use_dg_element_collection>,
602 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
603 : volume_dim, use_dg_element_collection>,
604 : Actions::MutateApply<RecordTimeStepperData<system>>,
605 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
606 : ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
607 : evolution::dg::ApplyLtsDenseBoundaryCorrections<EvolutionMetavars>>>,
608 : control_system::Actions::LimitTimeStep<control_systems>,
609 : Actions::MutateApply<UpdateU<system, local_time_stepping>>,
610 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
611 : volume_dim, use_dg_element_collection>,
612 : tmpl::conditional_t<
613 : local_time_stepping,
614 : tmpl::list<Actions::MutateApply<ChangeTimeStepperOrder<system>>>,
615 : tmpl::list<>>,
616 : Actions::MutateApply<CleanHistory<system>>,
617 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
618 : dg::Actions::SpectralFilter>;
619 :
620 0 : using initialization_actions = tmpl::list<
621 : Initialization::Actions::InitializeItems<
622 : Initialization::TimeStepping<EvolutionMetavars, TimeStepperBase,
623 : use_control_systems,
624 : local_time_stepping>,
625 : evolution::dg::Initialization::Domain<EvolutionMetavars,
626 : use_control_systems>,
627 : ::amr::Initialization::Initialize<volume_dim, EvolutionMetavars>,
628 : Initialization::TimeStepperHistory<EvolutionMetavars>>,
629 : Initialization::Actions::NonconservativeSystem<system>,
630 : Initialization::Actions::AddComputeTags<tmpl::list<::Tags::DerivCompute<
631 : typename system::variables_tag, ::domain::Tags::Mesh<volume_dim>,
632 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
633 : Frame::Inertial>,
634 : typename system::gradient_variables>>>,
635 : gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
636 : Initialization::Actions::AddComputeTags<
637 : StepChoosers::step_chooser_compute_tags<EvolutionMetavars>>,
638 : Initialization::Actions::AddSimpleTags<
639 : gh::bbh::Actions::InitializeElementCompletionRequested>,
640 : ::evolution::dg::Initialization::Mortars<volume_dim>,
641 : intrp::Actions::ElementInitInterpPoints<volume_dim,
642 : interpolation_target_tags>,
643 : evolution::dg::Initialization::Actions::SetupEqualRateRegions<
644 : EvolutionMetavars, volume_dim, equal_rate_regions>,
645 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
646 : control_system::Actions::InitializeMeasurements<control_systems>,
647 : Initialization::Actions::InitializeItems<
648 : evolution::dg::Initialization::SpectralFilters<
649 : volume_dim, typename system::variables_tag::tags_list>>,
650 : Parallel::Actions::TerminatePhase>;
651 :
652 0 : using gh_dg_element_array = DgElementArray<
653 : EvolutionMetavars,
654 : tmpl::flatten<tmpl::list<
655 : Parallel::PhaseActions<Parallel::Phase::Initialization,
656 : initialization_actions>,
657 : Parallel::PhaseActions<
658 : Parallel::Phase::RegisterWithElementDataReader,
659 : tmpl::list<importers::Actions::RegisterWithElementDataReader,
660 : Parallel::Actions::TerminatePhase>>,
661 : Parallel::PhaseActions<
662 : Parallel::Phase::ImportInitialData,
663 : tmpl::list<gh::Actions::SetInitialData,
664 : gh::Actions::ReceiveNumericInitialData,
665 : Parallel::Actions::TerminatePhase>>,
666 : Parallel::PhaseActions<
667 : Parallel::Phase::InitializeInitialDataDependentQuantities,
668 : initialize_initial_data_dependent_quantities_actions>,
669 : Parallel::PhaseActions<Parallel::Phase::Register,
670 : tmpl::list<dg_registration_list,
671 : Parallel::Actions::TerminatePhase>>,
672 : Parallel::PhaseActions<Parallel::Phase::Restart,
673 : tmpl::list<dg_registration_list,
674 : Parallel::Actions::TerminatePhase>>,
675 : Parallel::PhaseActions<
676 : Parallel::Phase::WriteCheckpoint,
677 : tmpl::list<evolution::Actions::RunEventsAndTriggers<
678 : Triggers::WhenToCheck::AtCheckpoints>,
679 : Parallel::Actions::TerminatePhase>>,
680 : Parallel::PhaseActions<
681 : Parallel::Phase::InitializeTimeStepperHistory,
682 : SelfStart::self_start_procedure<step_actions, system>>,
683 : Parallel::PhaseActions<Parallel::Phase::CheckDomain,
684 : tmpl::list<::amr::Actions::SendAmrDiagnostics,
685 : Parallel::Actions::TerminatePhase>>,
686 : Parallel::PhaseActions<
687 : Parallel::Phase::Evolve,
688 : tmpl::flatten<tmpl::list<
689 : ::domain::Actions::CheckFunctionsOfTimeAreReady<volume_dim>,
690 : std::conditional_t<local_time_stepping,
691 : evolution::Actions::RunEventsAndTriggers<
692 : Triggers::WhenToCheck::AtSteps>,
693 : tmpl::list<>>,
694 : evolution::Actions::RunEventsAndTriggers<
695 : Triggers::WhenToCheck::AtSlabs>,
696 : Actions::ChangeSlabSize,
697 : evolution::dg::Actions::ChangeFixedLtsRatio, step_actions,
698 : Actions::MutateApply<AdvanceTime<>>,
699 : PhaseControl::Actions::ExecutePhaseChange>>>,
700 : Parallel::PhaseActions<
701 : Parallel::Phase::PostFailureCleanup,
702 : tmpl::list<Actions::RunEventsOnFailure<::Tags::Time>,
703 : Parallel::Actions::TerminatePhase>>>>>;
704 :
705 0 : using observed_reduction_data_tags = observers::collect_reduction_data_tags<
706 : tmpl::at<typename factory_creation::factory_classes, Event>>;
707 :
708 : struct registration
709 : : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
710 0 : using element_registrars =
711 : tmpl::map<tmpl::pair<gh_dg_element_array, dg_registration_list>>;
712 : };
713 :
714 0 : using control_system_horizon_metavars =
715 : control_system::metafunctions::horizon_metavars<control_systems>;
716 0 : using control_components =
717 : control_system::control_components<EvolutionMetavars, control_systems>;
718 :
719 0 : static void run_deadlock_analysis_simple_actions(
720 : Parallel::GlobalCache<EvolutionMetavars>& cache,
721 : const std::vector<std::string>& deadlocked_components) {
722 : gh::deadlock::run_deadlock_analysis_simple_actions<
723 : gh_dg_element_array, control_components, interpolation_target_tags,
724 : control_system_horizon_metavars>(cache, deadlocked_components);
725 : }
726 :
727 0 : struct amr : tt::ConformsTo<::amr::protocols::AmrMetavariables> {
728 0 : using element_array = gh_dg_element_array;
729 0 : using projectors = tmpl::list<
730 : Initialization::ProjectTimeStepping<volume_dim>,
731 : evolution::dg::Initialization::ProjectDomain<volume_dim>,
732 : ::amr::projectors::ProjectVariables<volume_dim,
733 : typename system::variables_tag>,
734 : evolution::dg::Initialization::ProjectMortars<volume_dim>,
735 : Initialization::ProjectTimeStepperHistory<EvolutionMetavars>,
736 : evolution::Actions::ProjectRunEventsAndDenseTriggers,
737 : evolution::dg::Initialization::ProjectSpectralFilters<
738 : volume_dim, typename system::variables_tag::tags_list>,
739 : ::amr::projectors::DefaultInitialize<
740 : Initialization::Tags::InitialTimeDelta,
741 : Initialization::Tags::InitialSlabSize<local_time_stepping>,
742 : ::domain::Tags::InitialExtents<volume_dim>,
743 : ::domain::Tags::InitialRefinementLevels<volume_dim>,
744 : evolution::dg::Tags::Quadrature,
745 : Tags::StepperErrors<typename system::variables_tag>,
746 : SelfStart::Tags::InitialValue<typename system::variables_tag>,
747 : SelfStart::Tags::InitialValue<Tags::TimeStep>>,
748 : ::amr::projectors::CopyFromCreatorOrLeaveAsIs<tmpl::push_back<
749 : tmpl::append<
750 : typename control_system::Actions::InitializeMeasurements<
751 : control_systems>::simple_tags,
752 : tmpl::transform<
753 : intrp::InterpolationTarget_detail::
754 : get_non_sequential_target_tags<
755 : interpolation_target_tags>,
756 : tmpl::bind<intrp::Tags::PointInfo, tmpl::_1,
757 : tmpl::pin<tmpl::size_t<volume_dim>>>>>,
758 : gh::bbh::Tags::ElementCompletionRequested,
759 : evolution::dg::Tags::ChangeFixedLtsRatio::NumberOfExpectedMessages,
760 : evolution::dg::Tags::ChangeFixedLtsRatio::NewStepSize,
761 : Tags::FixedLtsRatio,
762 : Parallel::Tags::Section<gh_dg_element_array,
763 : evolution::dg::Tags::EqualRateRegionId>,
764 : Tags::ChangeSlabSize::NumberOfExpectedMessages,
765 : Tags::ChangeSlabSize::NewSlabSize>>>;
766 0 : static constexpr bool keep_coarse_grids = false;
767 0 : static constexpr bool p_refine_only_in_event = true;
768 : };
769 :
770 0 : using component_list = tmpl::flatten<tmpl::list<
771 : ::amr::Component<EvolutionMetavars>,
772 : observers::Observer<EvolutionMetavars>,
773 : observers::ObserverWriter<EvolutionMetavars>,
774 : importers::ElementDataReader<EvolutionMetavars>,
775 : mem_monitor::MemoryMonitor<EvolutionMetavars>,
776 : gh::bbh::CompletionSingleton<EvolutionMetavars>,
777 : ah::Component<EvolutionMetavars, AhA>,
778 : ah::Component<EvolutionMetavars, AhB>,
779 : ah::Component<EvolutionMetavars, AhC>,
780 : tmpl::transform<
781 : control_system_horizon_metavars,
782 : tmpl::bind<ah::Component, tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
783 : tmpl::transform<interpolation_target_tags,
784 : tmpl::bind<intrp::InterpolationTarget,
785 : tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
786 : control_system::control_components<EvolutionMetavars, control_systems>,
787 : gh_dg_element_array>>;
788 :
789 : static constexpr Options::String help{
790 : "Evolve a binary black hole using the Generalized Harmonic "
791 : "formulation\n"};
792 : };
|