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/RefineMesh.hpp"
125 : #include "ParallelAlgorithms/Amr/Projectors/CopyFromCreatorOrLeaveAsIs.hpp"
126 : #include "ParallelAlgorithms/Amr/Projectors/DefaultInitialize.hpp"
127 : #include "ParallelAlgorithms/Amr/Projectors/Tensors.hpp"
128 : #include "ParallelAlgorithms/Amr/Projectors/Variables.hpp"
129 : #include "ParallelAlgorithms/Amr/Protocols/AmrMetavariables.hpp"
130 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/FailedHorizonFind.hpp"
131 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveCenters.hpp"
132 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveFieldsOnHorizon.hpp"
133 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/ObserveTimeSeriesOnHorizon.hpp"
134 : #include "ParallelAlgorithms/ApparentHorizonFinder/Callbacks/SendDependencyToObserverWriter.hpp"
135 : #include "ParallelAlgorithms/ApparentHorizonFinder/Component.hpp"
136 : #include "ParallelAlgorithms/ApparentHorizonFinder/Criteria/Criterion.hpp"
137 : #include "ParallelAlgorithms/ApparentHorizonFinder/Criteria/Factory.hpp"
138 : #include "ParallelAlgorithms/ApparentHorizonFinder/Destination.hpp"
139 : #include "ParallelAlgorithms/ApparentHorizonFinder/Events/FindApparentHorizon.hpp"
140 : #include "ParallelAlgorithms/ApparentHorizonFinder/Events/FindCommonHorizon.hpp"
141 : #include "ParallelAlgorithms/ApparentHorizonFinder/HorizonAliases.hpp"
142 : #include "ParallelAlgorithms/ApparentHorizonFinder/KerrSchild.hpp"
143 : #include "ParallelAlgorithms/ApparentHorizonFinder/Protocols/HorizonMetavars.hpp"
144 : #include "ParallelAlgorithms/ApparentHorizonFinder/Tags.hpp"
145 : #include "ParallelAlgorithms/Events/ChangeFixedLtsRatio.hpp"
146 : #include "ParallelAlgorithms/Events/Completion.hpp"
147 : #include "ParallelAlgorithms/Events/Factory.hpp"
148 : #include "ParallelAlgorithms/Events/MonitorMemory.hpp"
149 : #include "ParallelAlgorithms/Events/ObserveGridStats.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/Psi4Imag.hpp"
178 : #include "PointwiseFunctions/GeneralRelativity/Psi4Real.hpp"
179 : #include "PointwiseFunctions/GeneralRelativity/Ricci.hpp"
180 : #include "PointwiseFunctions/GeneralRelativity/Surfaces/Tags.hpp"
181 : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
182 : #include "PointwiseFunctions/GeneralRelativity/WeylElectric.hpp"
183 : #include "PointwiseFunctions/GeneralRelativity/WeylTypeD1.hpp"
184 : #include "PointwiseFunctions/InitialDataUtilities/InitialData.hpp"
185 : #include "PointwiseFunctions/MathFunctions/Factory.hpp"
186 : #include "PointwiseFunctions/MathFunctions/MathFunction.hpp"
187 : #include "Time/Actions/SelfStartActions.hpp"
188 : #include "Time/AdvanceTime.hpp"
189 : #include "Time/ChangeSlabSize/Action.hpp"
190 : #include "Time/ChangeSlabSize/Tags.hpp"
191 : #include "Time/ChangeTimeStepperOrder.hpp"
192 : #include "Time/CleanHistory.hpp"
193 : #include "Time/RecordTimeStepperData.hpp"
194 : #include "Time/StepChoosers/Factory.hpp"
195 : #include "Time/StepChoosers/StepChooser.hpp"
196 : #include "Time/Tags/StepperErrors.hpp"
197 : #include "Time/Tags/Time.hpp"
198 : #include "Time/Tags/TimeStepId.hpp"
199 : #include "Time/TimeSequence.hpp"
200 : #include "Time/TimeSteppers/Factory.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 :
247 : static constexpr bool use_dg_element_collection = false;
248 :
249 0 : using initialize_initial_data_dependent_quantities_actions =
250 : tmpl::list<gh::gauges::SetPiAndPhiFromConstraints<
251 : gh::Solutions::all_solutions<volume_dim>, volume_dim>,
252 : Parallel::Actions::TerminatePhase>;
253 :
254 : // NOLINTNEXTLINE(google-runtime-references)
255 0 : void pup(PUP::er& /*p*/) {}
256 :
257 : template <::domain::ObjectLabel Horizon, typename Frame>
258 0 : struct Ah : tt::ConformsTo<ah::protocols::HorizonMetavars> {
259 0 : static constexpr size_t index = 10 + static_cast<size_t>(Horizon);
260 :
261 0 : using time_tag = ah::Tags::ObservationTime<index>;
262 :
263 0 : using frame = Frame;
264 :
265 0 : using horizon_find_callbacks = tmpl::append<
266 : tmpl::conditional_t<
267 : Horizon == ::domain::ObjectLabel::C,
268 : tmpl::list<ah::callbacks::SendDependencyToObserverWriter<Ah, true>,
269 : gh::bbh::callbacks::UpdateCompletionCriteria<Ah>>,
270 : tmpl::list<>>,
271 : tmpl::list<ah::callbacks::ObserveFieldsOnHorizon<
272 : ::ah::surface_tags_for_observing, Ah>,
273 : ah::callbacks::ObserveTimeSeriesOnHorizon<
274 : ::ah::tags_for_observing<Frame>, Ah>>>;
275 0 : using horizon_find_failure_callbacks = tmpl::append<
276 : // Only ignore errors for AhC
277 : tmpl::list<ah::callbacks::FailedHorizonFind<
278 : Ah, Horizon == ::domain::ObjectLabel::C>>,
279 : tmpl::conditional_t<
280 : Horizon == ::domain::ObjectLabel::C,
281 : tmpl::list<
282 : ah::callbacks::SendDependencyToObserverWriter<Ah, false>>,
283 : tmpl::list<>>>;
284 :
285 0 : using compute_tags_on_element =
286 : tmpl::list<ah::Tags::ObservationTimeCompute<index>>;
287 :
288 0 : static constexpr ah::Destination destination = ah::Destination::Observation;
289 :
290 0 : static std::string name() {
291 : return "ObservationAh" + ::domain::name(Horizon);
292 : }
293 : };
294 :
295 0 : using AhA = Ah<::domain::ObjectLabel::A, ::Frame::Distorted>;
296 0 : using AhB = Ah<::domain::ObjectLabel::B, ::Frame::Distorted>;
297 0 : using AhC = Ah<::domain::ObjectLabel::C, ::Frame::Inertial>;
298 :
299 : template <::domain::ObjectLabel Excision>
300 0 : struct ExcisionBoundary
301 : : tt::ConformsTo<intrp::protocols::InterpolationTargetTag> {
302 0 : using temporal_id = ::Tags::Time;
303 0 : using tags_to_observe =
304 : tmpl::list<gr::Tags::Lapse<DataVector>,
305 : gr::Tags::Shift<DataVector, 3, Frame::Grid>>;
306 0 : using compute_vars_to_interpolate =
307 : intrp::ComputeExcisionBoundaryVolumeQuantities;
308 0 : using vars_to_interpolate_to_target = tags_to_observe;
309 0 : using compute_items_on_source = tmpl::list<>;
310 0 : using compute_items_on_target = tmpl::list<>;
311 0 : using compute_target_points =
312 : intrp::TargetPoints::Sphere<ExcisionBoundary<Excision>, ::Frame::Grid>;
313 0 : using post_interpolation_callbacks =
314 : tmpl::list<intrp::callbacks::ObserveSurfaceData<
315 : tags_to_observe, ExcisionBoundary<Excision>, ::Frame::Grid>>;
316 : // run_callbacks
317 : template <typename metavariables>
318 0 : using interpolating_component = typename metavariables::gh_dg_element_array;
319 0 : static std::string name() {
320 : return "ObservationExcisionBoundary" + ::domain::name(Excision);
321 : }
322 : };
323 :
324 0 : using ExcisionBoundaryA = ExcisionBoundary<::domain::ObjectLabel::A>;
325 0 : using ExcisionBoundaryB = ExcisionBoundary<::domain::ObjectLabel::B>;
326 0 : using both_horizons = control_system::measurements::BothHorizons;
327 0 : using control_systems =
328 : tmpl::list<control_system::Systems::Rotation<3, both_horizons>,
329 : control_system::Systems::Expansion<2, both_horizons>,
330 : control_system::Systems::Translation<2, both_horizons, 2>,
331 : control_system::Systems::Skew<2, both_horizons>,
332 : control_system::Systems::Shape<::domain::ObjectLabel::A, 2,
333 : both_horizons>,
334 : control_system::Systems::Shape<::domain::ObjectLabel::B, 2,
335 : both_horizons>,
336 : control_system::Systems::Size<::domain::ObjectLabel::A, 2>,
337 : control_system::Systems::Size<::domain::ObjectLabel::B, 2>>;
338 :
339 0 : static constexpr bool use_control_systems =
340 : tmpl::size<control_systems>::value > 0;
341 :
342 0 : using source_vars_no_deriv =
343 : tmpl::list<gr::Tags::SpacetimeMetric<DataVector, volume_dim>,
344 : gh::Tags::Pi<DataVector, volume_dim>,
345 : gh::Tags::Phi<DataVector, volume_dim>>;
346 :
347 0 : struct BondiSachs : tt::ConformsTo<intrp::protocols::InterpolationTargetTag> {
348 0 : static std::string name() { return "BondiSachsInterpolation"; }
349 0 : using temporal_id = ::Tags::Time;
350 0 : using vars_to_interpolate_to_target = source_vars_no_deriv;
351 0 : using compute_target_points =
352 : intrp::TargetPoints::Sphere<BondiSachs, ::Frame::Inertial>;
353 0 : using post_interpolation_callbacks =
354 : tmpl::list<intrp::callbacks::DumpBondiSachsOnWorldtube<BondiSachs>>;
355 0 : using compute_items_on_target = tmpl::list<>;
356 : template <typename metavariables>
357 0 : using interpolating_component = typename metavariables::gh_dg_element_array;
358 : };
359 :
360 0 : using interpolation_target_tags = tmpl::push_back<
361 : control_system::metafunctions::interpolation_target_tags<control_systems>,
362 : BondiSachs, ExcisionBoundaryA, ExcisionBoundaryB>;
363 :
364 0 : using observe_fields = tmpl::append<
365 : tmpl::list<
366 : gr::Tags::SpacetimeMetric<DataVector, volume_dim>,
367 : gh::Tags::Pi<DataVector, volume_dim>,
368 : gh::Tags::Phi<DataVector, volume_dim>,
369 : gh::Tags::GaugeH<DataVector, volume_dim>,
370 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>,
371 : gr::Tags::Lapse<DataVector>, gr::Tags::Shift<DataVector, volume_dim>,
372 : gr::Tags::SpatialMetric<DataVector, volume_dim>,
373 : gr::Tags::DetSpatialMetric<DataVector>,
374 : gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
375 : gr::Tags::SqrtDetSpatialMetricCompute<DataVector, volume_dim,
376 : ::Frame::Inertial>,
377 : gr::Tags::SpacetimeNormalOneFormCompute<DataVector, volume_dim,
378 : ::Frame::Inertial>,
379 : gr::Tags::SpacetimeNormalVectorCompute<DataVector, volume_dim,
380 : ::Frame::Inertial>,
381 : gr::Tags::InverseSpacetimeMetricCompute<DataVector, volume_dim,
382 : ::Frame::Inertial>,
383 : gh::Tags::DerivLapseCompute<volume_dim, Frame::Inertial>,
384 : gh::Tags::DerivShiftCompute<volume_dim, Frame::Inertial>,
385 : gh::Tags::DerivSpatialMetricCompute<volume_dim, Frame::Inertial>,
386 : gr::Tags::DerivInverseSpatialMetricCompute<volume_dim,
387 : Frame::Inertial>,
388 : gh::Tags::GaugeConstraintCompute<volume_dim, ::Frame::Inertial>,
389 : gh::Tags::TwoIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
390 : gh::Tags::ThreeIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
391 : gh::Tags::DerivSpatialMetricCompute<volume_dim, ::Frame::Inertial>,
392 : gr::Tags::SpatialChristoffelFirstKindCompute<DataVector, volume_dim,
393 : ::Frame::Inertial>,
394 : gr::Tags::SpatialChristoffelSecondKindCompute<DataVector, volume_dim,
395 : ::Frame::Inertial>,
396 : ::Tags::DerivTensorCompute<
397 : gr::Tags::SpatialChristoffelSecondKind<DataVector, volume_dim>,
398 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
399 : Frame::Inertial>,
400 : ::domain::Tags::Mesh<volume_dim>>,
401 : gr::Tags::SpatialRicciCompute<DataVector, volume_dim,
402 : ::Frame::Inertial>,
403 : gr::Tags::SpatialRicciScalarCompute<DataVector, volume_dim,
404 : ::Frame::Inertial>,
405 : // observe norms of tensors
406 : ::Tags::PointwiseL2NormCompute<
407 : gr::Tags::Shift<DataVector, volume_dim>>,
408 : ::Tags::PointwiseL2NormCompute<
409 : gr::Tags::SpatialMetric<DataVector, volume_dim>>,
410 : ::Tags::PointwiseL2NormCompute<
411 : gr::Tags::SpacetimeMetric<DataVector, volume_dim>>,
412 : ::Tags::PointwiseL2NormCompute<gh::Tags::Pi<DataVector, volume_dim>>,
413 : ::Tags::PointwiseL2NormCompute<gh::Tags::Phi<DataVector, volume_dim>>,
414 : ::Tags::PointwiseL2NormCompute<
415 : gh::Tags::GaugeH<DataVector, volume_dim>>,
416 : ::Tags::PointwiseL2NormCompute<
417 : gh::Tags::SpacetimeDerivGaugeH<DataVector, volume_dim>>,
418 : // following tags added to observe constraints
419 : ::Tags::PointwiseL2NormCompute<
420 : gh::Tags::GaugeConstraint<DataVector, volume_dim>>,
421 : ::Tags::PointwiseL2NormCompute<
422 : gh::Tags::TwoIndexConstraint<DataVector, volume_dim>>,
423 : ::Tags::PointwiseL2NormCompute<
424 : gh::Tags::ThreeIndexConstraint<DataVector, volume_dim>>,
425 : ::domain::Tags::Coordinates<volume_dim, Frame::Grid>,
426 : ::domain::Tags::Coordinates<volume_dim, Frame::Inertial>>,
427 : // The 4-index constraint is only implemented in 3d
428 : tmpl::conditional_t<
429 : volume_dim == 3,
430 : tmpl::list<
431 : gh::Tags::FourIndexConstraintCompute<3, ::Frame::Inertial>,
432 : gh::Tags::FConstraintCompute<3, ::Frame::Inertial>,
433 : ::Tags::PointwiseL2NormCompute<
434 : gh::Tags::FConstraint<DataVector, 3>>,
435 : ::Tags::PointwiseL2NormCompute<
436 : gh::Tags::FourIndexConstraint<DataVector, 3>>,
437 : gh::Tags::ConstraintEnergyCompute<3, ::Frame::Inertial>,
438 : gh::Tags::NormalizedConstraintEnergyCompute<3, ::Frame::Inertial>,
439 : gh::Tags::ExtrinsicCurvatureCompute<3, ::Frame::Inertial>,
440 : ::Tags::DerivTensorCompute<
441 : gr::Tags::ExtrinsicCurvature<DataVector, 3>,
442 : ::domain::Tags::InverseJacobian<
443 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
444 : ::domain::Tags::Mesh<volume_dim>>,
445 : gr::Tags::WeylElectricCompute<DataVector, 3, Frame::Inertial>,
446 : gr::Tags::WeylElectricScalarCompute<DataVector, 3,
447 : Frame::Inertial>,
448 : gr::Tags::WeylTypeD1Compute<DataVector, 3, Frame::Inertial>,
449 : gr::Tags::WeylTypeD1ScalarCompute<DataVector, 3, Frame::Inertial>,
450 : gr::Tags::Psi4RealCompute<Frame::Inertial>,
451 : gr::Tags::Psi4ImagCompute<Frame::Inertial>>,
452 : tmpl::list<>>>;
453 0 : using non_tensor_compute_tags = tmpl::list<
454 : ::Events::Tags::ObserverMeshCompute<volume_dim>,
455 : ::Events::Tags::ObserverCoordinatesCompute<volume_dim, Frame::Inertial>,
456 : ::Events::Tags::ObserverInverseJacobianCompute<
457 : volume_dim, Frame::ElementLogical, Frame::Inertial>,
458 : ::Events::Tags::ObserverJacobianCompute<volume_dim, Frame::ElementLogical,
459 : Frame::Inertial>,
460 : ::Events::Tags::ObserverDetInvJacobianCompute<Frame::ElementLogical,
461 : Frame::Inertial>,
462 : ::Events::Tags::ObserverMeshVelocityCompute<volume_dim, Frame::Inertial>,
463 : gh::gauges::Tags::GaugeAndDerivativeCompute<
464 : volume_dim, gh::Solutions::all_solutions<volume_dim>>>;
465 :
466 : struct factory_creation
467 : : tt::ConformsTo<Options::protocols::FactoryCreation> {
468 0 : using factory_classes = tmpl::map<
469 : tmpl::pair<ah::Criterion, ah::Criteria::standard_criteria>,
470 : tmpl::pair<ylm::InitialShape<Frame::Distorted>,
471 : tmpl::list<ylm::InitialShapes::Sphere<Frame::Distorted>,
472 : ylm::InitialShapes::FromFile<Frame::Distorted>,
473 : ah::InitialShapes::KerrSchild<Frame::Distorted>>>,
474 : tmpl::pair<ylm::InitialShape<Frame::Inertial>,
475 : tmpl::list<ylm::InitialShapes::Sphere<Frame::Inertial>,
476 : ylm::InitialShapes::FromFile<Frame::Inertial>,
477 : ah::InitialShapes::KerrSchild<Frame::Inertial>>>,
478 : tmpl::pair<
479 : amr::Criterion,
480 : tmpl::push_back<
481 : amr::Criteria::standard_criteria<
482 : volume_dim, typename system::variables_tag::tags_list>,
483 : amr::Criteria::Constraints<
484 : volume_dim,
485 : tmpl::list<gh::Tags::ThreeIndexConstraintCompute<
486 : volume_dim, Frame::Inertial>>>>>,
487 : tmpl::pair<
488 : evolution::initial_data::InitialData,
489 : tmpl::flatten<tmpl::list<
490 : gh::NumericInitialData,
491 : tmpl::conditional_t<std::is_same_v<SpecInitialData, NoSuchType>,
492 : tmpl::list<>, SpecInitialData>>>>,
493 : tmpl::pair<DenseTrigger,
494 : tmpl::flatten<tmpl::list<
495 : control_system::control_system_triggers<control_systems>,
496 : DenseTriggers::standard_dense_triggers>>>,
497 : tmpl::pair<
498 : DomainCreator<volume_dim>,
499 : tmpl::list<::domain::creators::BinaryCompactObject,
500 : ::domain::creators::CylindricalBinaryCompactObject>>,
501 : tmpl::pair<
502 : Event,
503 : tmpl::flatten<tmpl::list<
504 : ah::Events::FindApparentHorizon<AhA>,
505 : ah::Events::FindApparentHorizon<AhB>,
506 : ah::Events::FindCommonHorizon<AhC, observe_fields,
507 : non_tensor_compute_tags>,
508 : gh::bbh::Events::CheckConstraintThresholds,
509 : intrp::Events::InterpolateWithoutInterpComponent<
510 : 3, BondiSachs, source_vars_no_deriv>,
511 : intrp::Events::InterpolateWithoutInterpComponent<
512 : 3, ExcisionBoundaryA, ah::source_vars<3>>,
513 : intrp::Events::InterpolateWithoutInterpComponent<
514 : 3, ExcisionBoundaryB, ah::source_vars<3>>,
515 : Events::MonitorMemory<3>, Events::Completion,
516 : dg::Events::field_observations<volume_dim, observe_fields,
517 : non_tensor_compute_tags>,
518 : control_system::metafunctions::control_system_events<
519 : control_systems>,
520 : control_system::CleanFunctionsOfTime,
521 : Events::time_events<system>,
522 : dg::Events::ObserveTimeStepVolume<system>,
523 : amr::Events::RefineMesh,
524 : Events::ObserveGridStats<volume_dim, non_tensor_compute_tags>,
525 : amr::Events::ObserveAmrCriteria<EvolutionMetavars>,
526 : dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
527 : tmpl::pair<
528 : evolution::BoundaryCorrection,
529 : gh::BoundaryCorrections::standard_boundary_corrections<volume_dim>>,
530 : tmpl::pair<control_system::size::State,
531 : control_system::size::States::factory_creatable_states>,
532 : tmpl::pair<
533 : gh::BoundaryConditions::BoundaryCondition<volume_dim>,
534 : tmpl::list<
535 : gh::BoundaryConditions::ConstraintPreservingBjorhus<volume_dim>,
536 : gh::BoundaryConditions::DirichletMinkowski<volume_dim>,
537 : gh::BoundaryConditions::DemandOutgoingCharSpeeds<volume_dim>>>,
538 : tmpl::pair<
539 : gh::gauges::GaugeCondition,
540 : tmpl::list<gh::gauges::DampedHarmonic, gh::gauges::Harmonic>>,
541 : tmpl::pair<MathFunction<1, Frame::Inertial>,
542 : MathFunctions::all_math_functions<1, Frame::Inertial>>,
543 : tmpl::pair<PhaseChange,
544 : tmpl::push_back<
545 : PhaseControl::factory_creatable_classes,
546 : gh::bbh::phase_control::CheckpointAndExitIfComplete>>,
547 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
548 : StepChoosers::standard_step_choosers<system>>,
549 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
550 : tmpl::push_back<
551 : StepChoosers::standard_slab_choosers<system>,
552 : evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
553 : tmpl::pair<TimeSequence<double>,
554 : TimeSequences::all_time_sequences<double>>,
555 : tmpl::pair<TimeSequence<std::uint64_t>,
556 : TimeSequences::all_time_sequences<std::uint64_t>>,
557 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
558 : tmpl::pair<
559 : Trigger,
560 : tmpl::append<Triggers::logical_triggers, Triggers::time_triggers,
561 : tmpl::list<Triggers::SeparationLessThan<false>>>>,
562 : tmpl::pair<Filters::Filter<volume_dim,
563 : typename system::variables_tag::tags_list>,
564 : gh::all_filters<volume_dim>>>;
565 : };
566 :
567 : // A tmpl::list of tags to be added to the GlobalCache by the
568 : // metavariables
569 0 : using const_global_cache_tags =
570 : tmpl::list<gh::gauges::Tags::GaugeCondition,
571 : gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
572 : gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
573 : gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>;
574 :
575 0 : using mutable_global_cache_tags = tmpl::list<>;
576 :
577 0 : using dg_registration_list =
578 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
579 :
580 0 : using equal_rate_regions =
581 : tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>;
582 :
583 : static constexpr auto default_phase_order =
584 : std::array{Parallel::Phase::Initialization,
585 : Parallel::Phase::RegisterWithElementDataReader,
586 : Parallel::Phase::ImportInitialData,
587 : Parallel::Phase::InitializeInitialDataDependentQuantities,
588 : Parallel::Phase::Register,
589 : Parallel::Phase::InitializeTimeStepperHistory,
590 : Parallel::Phase::CheckDomain,
591 : Parallel::Phase::Evolve,
592 : Parallel::Phase::Exit};
593 :
594 0 : using step_actions = tmpl::list<
595 : evolution::dg::Actions::ComputeTimeDerivative<
596 : volume_dim, system, AllStepChoosers, use_dg_element_collection>,
597 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
598 : volume_dim, use_dg_element_collection>,
599 : Actions::MutateApply<RecordTimeStepperData<system>>,
600 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
601 : ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
602 : evolution::dg::ApplyLtsDenseBoundaryCorrections<EvolutionMetavars>>>,
603 : control_system::Actions::LimitTimeStep<control_systems>,
604 : Actions::MutateApply<UpdateU<system>>,
605 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
606 : volume_dim, use_dg_element_collection>,
607 : Actions::MutateApply<ChangeTimeStepperOrder<system>>,
608 : Actions::MutateApply<CleanHistory<system>>,
609 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
610 : dg::Actions::SpectralFilter<volume_dim,
611 : typename system::variables_tag::tags_list>>;
612 :
613 0 : using initialization_actions = tmpl::list<
614 : Initialization::Actions::InitializeItems<
615 : Initialization::TimeStepping<EvolutionMetavars, TimeStepper,
616 : use_control_systems, true>,
617 : evolution::dg::Initialization::Domain<EvolutionMetavars,
618 : use_control_systems>,
619 : ::amr::Initialization::Initialize<volume_dim, EvolutionMetavars>>,
620 : Initialization::Actions::NonconservativeSystem<system>,
621 : Initialization::Actions::InitializeItems<
622 : Initialization::TimeStepperHistory<system>>,
623 : Initialization::Actions::AddComputeTags<tmpl::list<::Tags::DerivCompute<
624 : typename system::variables_tag, ::domain::Tags::Mesh<volume_dim>,
625 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
626 : Frame::Inertial>,
627 : typename system::gradient_variables>>>,
628 : gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
629 : Initialization::Actions::AddComputeTags<
630 : StepChoosers::step_chooser_compute_tags<EvolutionMetavars>>,
631 : Initialization::Actions::AddSimpleTags<
632 : gh::bbh::Actions::InitializeElementCompletionRequested>,
633 : ::evolution::dg::Initialization::Mortars<volume_dim>,
634 : intrp::Actions::ElementInitInterpPoints<volume_dim,
635 : interpolation_target_tags>,
636 : evolution::dg::Initialization::Actions::SetupEqualRateRegions<
637 : EvolutionMetavars, volume_dim, equal_rate_regions>,
638 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
639 : control_system::Actions::InitializeMeasurements<control_systems>,
640 : Initialization::Actions::InitializeItems<
641 : evolution::dg::Initialization::SpectralFilters<
642 : volume_dim, typename system::variables_tag::tags_list>>,
643 : Parallel::Actions::TerminatePhase>;
644 :
645 0 : using gh_dg_element_array = DgElementArray<
646 : EvolutionMetavars,
647 : tmpl::flatten<tmpl::list<
648 : Parallel::PhaseActions<Parallel::Phase::Initialization,
649 : initialization_actions>,
650 : Parallel::PhaseActions<
651 : Parallel::Phase::RegisterWithElementDataReader,
652 : tmpl::list<importers::Actions::RegisterWithElementDataReader,
653 : Parallel::Actions::TerminatePhase>>,
654 : Parallel::PhaseActions<
655 : Parallel::Phase::ImportInitialData,
656 : tmpl::list<gh::Actions::SetInitialData,
657 : gh::Actions::ReceiveNumericInitialData,
658 : Parallel::Actions::TerminatePhase>>,
659 : Parallel::PhaseActions<
660 : Parallel::Phase::InitializeInitialDataDependentQuantities,
661 : initialize_initial_data_dependent_quantities_actions>,
662 : Parallel::PhaseActions<Parallel::Phase::Register,
663 : tmpl::list<dg_registration_list,
664 : Parallel::Actions::TerminatePhase>>,
665 : Parallel::PhaseActions<Parallel::Phase::Restart,
666 : tmpl::list<dg_registration_list,
667 : Parallel::Actions::TerminatePhase>>,
668 : Parallel::PhaseActions<
669 : Parallel::Phase::WriteCheckpoint,
670 : tmpl::list<evolution::Actions::RunEventsAndTriggers<
671 : Triggers::WhenToCheck::AtCheckpoints>,
672 : Parallel::Actions::TerminatePhase>>,
673 : Parallel::PhaseActions<
674 : Parallel::Phase::InitializeTimeStepperHistory,
675 : SelfStart::self_start_procedure<step_actions, system>>,
676 : Parallel::PhaseActions<Parallel::Phase::CheckDomain,
677 : tmpl::list<::amr::Actions::SendAmrDiagnostics,
678 : Parallel::Actions::TerminatePhase>>,
679 : Parallel::PhaseActions<
680 : Parallel::Phase::Evolve,
681 : tmpl::flatten<tmpl::list<
682 : ::domain::Actions::CheckFunctionsOfTimeAreReady<volume_dim>,
683 : evolution::Actions::RunEventsAndTriggers<
684 : Triggers::WhenToCheck::AtSteps>,
685 : evolution::Actions::RunEventsAndTriggers<
686 : Triggers::WhenToCheck::AtSlabs>,
687 : Actions::ChangeSlabSize,
688 : evolution::dg::Actions::ChangeFixedLtsRatio, step_actions,
689 : Actions::MutateApply<AdvanceTime<>>,
690 : PhaseControl::Actions::ExecutePhaseChange>>>,
691 : Parallel::PhaseActions<
692 : Parallel::Phase::PostFailureCleanup,
693 : tmpl::list<Actions::RunEventsOnFailure<::Tags::Time>,
694 : Parallel::Actions::TerminatePhase>>>>>;
695 :
696 0 : using observed_reduction_data_tags = observers::collect_reduction_data_tags<
697 : tmpl::at<typename factory_creation::factory_classes, Event>>;
698 :
699 : struct registration
700 : : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
701 0 : using element_registrars =
702 : tmpl::map<tmpl::pair<gh_dg_element_array, dg_registration_list>>;
703 : };
704 :
705 0 : using control_system_horizon_metavars =
706 : control_system::metafunctions::horizon_metavars<control_systems>;
707 0 : using control_components =
708 : control_system::control_components<EvolutionMetavars, control_systems>;
709 :
710 0 : static void run_deadlock_analysis_simple_actions(
711 : Parallel::GlobalCache<EvolutionMetavars>& cache,
712 : const std::vector<std::string>& deadlocked_components) {
713 : gh::deadlock::run_deadlock_analysis_simple_actions<
714 : gh_dg_element_array, control_components, interpolation_target_tags,
715 : control_system_horizon_metavars>(cache, deadlocked_components);
716 : }
717 :
718 0 : struct amr : tt::ConformsTo<::amr::protocols::AmrMetavariables> {
719 0 : using element_array = gh_dg_element_array;
720 0 : using projectors = tmpl::list<
721 : Initialization::ProjectTimeStepping<volume_dim>,
722 : evolution::dg::Initialization::ProjectDomain<volume_dim>,
723 : ::amr::projectors::ProjectVariables<volume_dim,
724 : typename system::variables_tag>,
725 : evolution::dg::Initialization::ProjectMortars<volume_dim>,
726 : Initialization::ProjectTimeStepperHistory<EvolutionMetavars>,
727 : evolution::Actions::ProjectRunEventsAndDenseTriggers,
728 : evolution::dg::Initialization::ProjectSpectralFilters<
729 : volume_dim, typename system::variables_tag::tags_list>,
730 : ::amr::projectors::DefaultInitialize<
731 : Initialization::Tags::InitialTimeDelta,
732 : Initialization::Tags::InitialSlabSize,
733 : ::domain::Tags::InitialExtents<volume_dim>,
734 : ::domain::Tags::InitialRefinementLevels<volume_dim>,
735 : evolution::dg::Tags::Quadrature,
736 : Tags::StepperErrors<typename system::variables_tag>,
737 : SelfStart::Tags::InitialValue<typename system::variables_tag>,
738 : SelfStart::Tags::InitialValue<Tags::TimeStep>>,
739 : ::amr::projectors::CopyFromCreatorOrLeaveAsIs<tmpl::push_back<
740 : tmpl::append<
741 : typename control_system::Actions::InitializeMeasurements<
742 : control_systems>::simple_tags,
743 : tmpl::transform<
744 : intrp::InterpolationTarget_detail::
745 : get_non_sequential_target_tags<
746 : interpolation_target_tags>,
747 : tmpl::bind<intrp::Tags::PointInfo, tmpl::_1,
748 : tmpl::pin<tmpl::size_t<volume_dim>>>>>,
749 : gh::bbh::Tags::ElementCompletionRequested,
750 : evolution::dg::Tags::ChangeFixedLtsRatio::NumberOfExpectedMessages,
751 : evolution::dg::Tags::ChangeFixedLtsRatio::NewStepSize,
752 : Tags::FixedLtsRatio,
753 : Parallel::Tags::Section<gh_dg_element_array,
754 : evolution::dg::Tags::EqualRateRegionId>,
755 : Tags::ChangeSlabSize::NumberOfExpectedMessages,
756 : Tags::ChangeSlabSize::NewSlabSize>>>;
757 0 : static constexpr bool keep_coarse_grids = false;
758 0 : static constexpr bool p_refine_only_in_event = true;
759 : };
760 :
761 0 : using component_list = tmpl::flatten<tmpl::list<
762 : ::amr::Component<EvolutionMetavars>,
763 : observers::Observer<EvolutionMetavars>,
764 : observers::ObserverWriter<EvolutionMetavars>,
765 : importers::ElementDataReader<EvolutionMetavars>,
766 : mem_monitor::MemoryMonitor<EvolutionMetavars>,
767 : gh::bbh::CompletionSingleton<EvolutionMetavars>,
768 : ah::Component<EvolutionMetavars, AhA>,
769 : ah::Component<EvolutionMetavars, AhB>,
770 : ah::Component<EvolutionMetavars, AhC>,
771 : tmpl::transform<
772 : control_system_horizon_metavars,
773 : tmpl::bind<ah::Component, tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
774 : tmpl::transform<interpolation_target_tags,
775 : tmpl::bind<intrp::InterpolationTarget,
776 : tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
777 : control_system::control_components<EvolutionMetavars, control_systems>,
778 : gh_dg_element_array>>;
779 :
780 : static constexpr Options::String help{
781 : "Evolve a binary black hole using the Generalized Harmonic "
782 : "formulation\n"};
783 : };
|