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/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<Event,
502 : tmpl::flatten<tmpl::list<
503 : ah::Events::FindApparentHorizon<AhA>,
504 : ah::Events::FindApparentHorizon<AhB>,
505 : ah::Events::FindCommonHorizon<AhC, observe_fields,
506 : non_tensor_compute_tags>,
507 : gh::bbh::Events::CheckConstraintThresholds,
508 : intrp::Events::InterpolateWithoutInterpComponent<
509 : 3, BondiSachs, source_vars_no_deriv>,
510 : intrp::Events::InterpolateWithoutInterpComponent<
511 : 3, ExcisionBoundaryA, ah::source_vars<3>>,
512 : intrp::Events::InterpolateWithoutInterpComponent<
513 : 3, ExcisionBoundaryB, ah::source_vars<3>>,
514 : Events::MonitorMemory<3>, Events::Completion,
515 : dg::Events::field_observations<
516 : volume_dim, observe_fields, non_tensor_compute_tags>,
517 : control_system::metafunctions::control_system_events<
518 : control_systems>,
519 : control_system::CleanFunctionsOfTime,
520 : Events::time_events<system>,
521 : dg::Events::ObserveTimeStepVolume<system>,
522 : amr::Events::RefineMesh,
523 : amr::Events::ObserveAmrStats<volume_dim>,
524 : amr::Events::ObserveAmrCriteria<EvolutionMetavars>,
525 : dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
526 : tmpl::pair<
527 : evolution::BoundaryCorrection,
528 : gh::BoundaryCorrections::standard_boundary_corrections<volume_dim>>,
529 : tmpl::pair<control_system::size::State,
530 : control_system::size::States::factory_creatable_states>,
531 : tmpl::pair<
532 : gh::BoundaryConditions::BoundaryCondition<volume_dim>,
533 : tmpl::list<
534 : gh::BoundaryConditions::ConstraintPreservingBjorhus<volume_dim>,
535 : gh::BoundaryConditions::DirichletMinkowski<volume_dim>,
536 : gh::BoundaryConditions::DemandOutgoingCharSpeeds<volume_dim>>>,
537 : tmpl::pair<
538 : gh::gauges::GaugeCondition,
539 : tmpl::list<gh::gauges::DampedHarmonic, gh::gauges::Harmonic>>,
540 : tmpl::pair<MathFunction<1, Frame::Inertial>,
541 : MathFunctions::all_math_functions<1, Frame::Inertial>>,
542 : tmpl::pair<PhaseChange,
543 : tmpl::push_back<
544 : PhaseControl::factory_creatable_classes,
545 : gh::bbh::phase_control::CheckpointAndExitIfComplete>>,
546 : tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
547 : StepChoosers::standard_step_choosers<system>>,
548 : tmpl::pair<StepChooser<StepChooserUse::Slab>,
549 : tmpl::push_back<
550 : StepChoosers::standard_slab_choosers<system>,
551 : evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
552 : tmpl::pair<TimeSequence<double>,
553 : TimeSequences::all_time_sequences<double>>,
554 : tmpl::pair<TimeSequence<std::uint64_t>,
555 : TimeSequences::all_time_sequences<std::uint64_t>>,
556 : tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
557 : tmpl::pair<
558 : Trigger,
559 : tmpl::append<Triggers::logical_triggers, Triggers::time_triggers,
560 : tmpl::list<Triggers::SeparationLessThan<false>>>>,
561 : tmpl::pair<Filters::Filter<volume_dim,
562 : typename system::variables_tag::tags_list>,
563 : gh::all_filters<volume_dim>>>;
564 : };
565 :
566 : // A tmpl::list of tags to be added to the GlobalCache by the
567 : // metavariables
568 0 : using const_global_cache_tags =
569 : tmpl::list<gh::gauges::Tags::GaugeCondition,
570 : gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
571 : gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
572 : gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>;
573 :
574 0 : using mutable_global_cache_tags = tmpl::list<>;
575 :
576 0 : using dg_registration_list =
577 : tmpl::list<observers::Actions::RegisterEventsWithObservers>;
578 :
579 0 : using equal_rate_regions =
580 : tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>;
581 :
582 : static constexpr auto default_phase_order =
583 : std::array{Parallel::Phase::Initialization,
584 : Parallel::Phase::RegisterWithElementDataReader,
585 : Parallel::Phase::ImportInitialData,
586 : Parallel::Phase::InitializeInitialDataDependentQuantities,
587 : Parallel::Phase::Register,
588 : Parallel::Phase::InitializeTimeStepperHistory,
589 : Parallel::Phase::CheckDomain,
590 : Parallel::Phase::Evolve,
591 : Parallel::Phase::Exit};
592 :
593 0 : using step_actions = tmpl::list<
594 : evolution::dg::Actions::ComputeTimeDerivative<
595 : volume_dim, system, AllStepChoosers, use_dg_element_collection>,
596 : evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
597 : volume_dim, use_dg_element_collection>,
598 : Actions::MutateApply<RecordTimeStepperData<system>>,
599 : evolution::Actions::RunEventsAndDenseTriggers<tmpl::list<
600 : ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
601 : evolution::dg::ApplyLtsDenseBoundaryCorrections<EvolutionMetavars>>>,
602 : control_system::Actions::LimitTimeStep<control_systems>,
603 : Actions::MutateApply<UpdateU<system>>,
604 : evolution::dg::Actions::ApplyLtsBoundaryCorrections<
605 : volume_dim, use_dg_element_collection>,
606 : Actions::MutateApply<ChangeTimeStepperOrder<system>>,
607 : Actions::MutateApply<CleanHistory<system>>,
608 : Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
609 : dg::Actions::SpectralFilter<volume_dim,
610 : typename system::variables_tag::tags_list>>;
611 :
612 0 : using initialization_actions = tmpl::list<
613 : Initialization::Actions::InitializeItems<
614 : Initialization::TimeStepping<EvolutionMetavars, TimeStepper,
615 : use_control_systems, true>,
616 : evolution::dg::Initialization::Domain<EvolutionMetavars,
617 : use_control_systems>,
618 : ::amr::Initialization::Initialize<volume_dim, EvolutionMetavars>>,
619 : Initialization::Actions::NonconservativeSystem<system>,
620 : Initialization::Actions::InitializeItems<
621 : Initialization::TimeStepperHistory<system>>,
622 : Initialization::Actions::AddComputeTags<tmpl::list<::Tags::DerivCompute<
623 : typename system::variables_tag, ::domain::Tags::Mesh<volume_dim>,
624 : ::domain::Tags::InverseJacobian<volume_dim, Frame::ElementLogical,
625 : Frame::Inertial>,
626 : typename system::gradient_variables>>>,
627 : gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
628 : Initialization::Actions::AddComputeTags<
629 : StepChoosers::step_chooser_compute_tags<EvolutionMetavars>>,
630 : Initialization::Actions::AddSimpleTags<
631 : gh::bbh::Actions::InitializeElementCompletionRequested>,
632 : ::evolution::dg::Initialization::Mortars<volume_dim>,
633 : intrp::Actions::ElementInitInterpPoints<volume_dim,
634 : interpolation_target_tags>,
635 : evolution::dg::Initialization::Actions::SetupEqualRateRegions<
636 : EvolutionMetavars, volume_dim, equal_rate_regions>,
637 : evolution::Actions::InitializeRunEventsAndDenseTriggers,
638 : control_system::Actions::InitializeMeasurements<control_systems>,
639 : Initialization::Actions::InitializeItems<
640 : evolution::dg::Initialization::SpectralFilters<
641 : volume_dim, typename system::variables_tag::tags_list>>,
642 : Parallel::Actions::TerminatePhase>;
643 :
644 0 : using gh_dg_element_array = DgElementArray<
645 : EvolutionMetavars,
646 : tmpl::flatten<tmpl::list<
647 : Parallel::PhaseActions<Parallel::Phase::Initialization,
648 : initialization_actions>,
649 : Parallel::PhaseActions<
650 : Parallel::Phase::RegisterWithElementDataReader,
651 : tmpl::list<importers::Actions::RegisterWithElementDataReader,
652 : Parallel::Actions::TerminatePhase>>,
653 : Parallel::PhaseActions<
654 : Parallel::Phase::ImportInitialData,
655 : tmpl::list<gh::Actions::SetInitialData,
656 : gh::Actions::ReceiveNumericInitialData,
657 : Parallel::Actions::TerminatePhase>>,
658 : Parallel::PhaseActions<
659 : Parallel::Phase::InitializeInitialDataDependentQuantities,
660 : initialize_initial_data_dependent_quantities_actions>,
661 : Parallel::PhaseActions<Parallel::Phase::Register,
662 : tmpl::list<dg_registration_list,
663 : Parallel::Actions::TerminatePhase>>,
664 : Parallel::PhaseActions<Parallel::Phase::Restart,
665 : tmpl::list<dg_registration_list,
666 : Parallel::Actions::TerminatePhase>>,
667 : Parallel::PhaseActions<
668 : Parallel::Phase::WriteCheckpoint,
669 : tmpl::list<evolution::Actions::RunEventsAndTriggers<
670 : Triggers::WhenToCheck::AtCheckpoints>,
671 : Parallel::Actions::TerminatePhase>>,
672 : Parallel::PhaseActions<
673 : Parallel::Phase::InitializeTimeStepperHistory,
674 : SelfStart::self_start_procedure<step_actions, system>>,
675 : Parallel::PhaseActions<Parallel::Phase::CheckDomain,
676 : tmpl::list<::amr::Actions::SendAmrDiagnostics,
677 : Parallel::Actions::TerminatePhase>>,
678 : Parallel::PhaseActions<
679 : Parallel::Phase::Evolve,
680 : tmpl::flatten<tmpl::list<
681 : ::domain::Actions::CheckFunctionsOfTimeAreReady<volume_dim>,
682 : evolution::Actions::RunEventsAndTriggers<
683 : Triggers::WhenToCheck::AtSteps>,
684 : evolution::Actions::RunEventsAndTriggers<
685 : Triggers::WhenToCheck::AtSlabs>,
686 : Actions::ChangeSlabSize,
687 : evolution::dg::Actions::ChangeFixedLtsRatio, step_actions,
688 : Actions::MutateApply<AdvanceTime<>>,
689 : PhaseControl::Actions::ExecutePhaseChange>>>,
690 : Parallel::PhaseActions<
691 : Parallel::Phase::PostFailureCleanup,
692 : tmpl::list<Actions::RunEventsOnFailure<::Tags::Time>,
693 : Parallel::Actions::TerminatePhase>>>>>;
694 :
695 0 : using observed_reduction_data_tags = observers::collect_reduction_data_tags<
696 : tmpl::at<typename factory_creation::factory_classes, Event>>;
697 :
698 : struct registration
699 : : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
700 0 : using element_registrars =
701 : tmpl::map<tmpl::pair<gh_dg_element_array, dg_registration_list>>;
702 : };
703 :
704 0 : using control_system_horizon_metavars =
705 : control_system::metafunctions::horizon_metavars<control_systems>;
706 0 : using control_components =
707 : control_system::control_components<EvolutionMetavars, control_systems>;
708 :
709 0 : static void run_deadlock_analysis_simple_actions(
710 : Parallel::GlobalCache<EvolutionMetavars>& cache,
711 : const std::vector<std::string>& deadlocked_components) {
712 : gh::deadlock::run_deadlock_analysis_simple_actions<
713 : gh_dg_element_array, control_components, interpolation_target_tags,
714 : control_system_horizon_metavars>(cache, deadlocked_components);
715 : }
716 :
717 0 : struct amr : tt::ConformsTo<::amr::protocols::AmrMetavariables> {
718 0 : using element_array = gh_dg_element_array;
719 0 : using projectors = tmpl::list<
720 : Initialization::ProjectTimeStepping<volume_dim>,
721 : evolution::dg::Initialization::ProjectDomain<volume_dim>,
722 : ::amr::projectors::ProjectVariables<volume_dim,
723 : typename system::variables_tag>,
724 : evolution::dg::Initialization::ProjectMortars<volume_dim>,
725 : Initialization::ProjectTimeStepperHistory<EvolutionMetavars>,
726 : evolution::Actions::ProjectRunEventsAndDenseTriggers,
727 : evolution::dg::Initialization::ProjectSpectralFilters<
728 : volume_dim, typename system::variables_tag::tags_list>,
729 : ::amr::projectors::DefaultInitialize<
730 : Initialization::Tags::InitialTimeDelta,
731 : Initialization::Tags::InitialSlabSize,
732 : ::domain::Tags::InitialExtents<volume_dim>,
733 : ::domain::Tags::InitialRefinementLevels<volume_dim>,
734 : evolution::dg::Tags::Quadrature,
735 : Tags::StepperErrors<typename system::variables_tag>,
736 : SelfStart::Tags::InitialValue<typename system::variables_tag>,
737 : SelfStart::Tags::InitialValue<Tags::TimeStep>>,
738 : ::amr::projectors::CopyFromCreatorOrLeaveAsIs<tmpl::push_back<
739 : tmpl::append<
740 : typename control_system::Actions::InitializeMeasurements<
741 : control_systems>::simple_tags,
742 : tmpl::transform<
743 : intrp::InterpolationTarget_detail::
744 : get_non_sequential_target_tags<
745 : interpolation_target_tags>,
746 : tmpl::bind<intrp::Tags::PointInfo, tmpl::_1,
747 : tmpl::pin<tmpl::size_t<volume_dim>>>>>,
748 : gh::bbh::Tags::ElementCompletionRequested,
749 : evolution::dg::Tags::ChangeFixedLtsRatio::NumberOfExpectedMessages,
750 : evolution::dg::Tags::ChangeFixedLtsRatio::NewStepSize,
751 : Tags::FixedLtsRatio,
752 : Parallel::Tags::Section<gh_dg_element_array,
753 : evolution::dg::Tags::EqualRateRegionId>,
754 : Tags::ChangeSlabSize::NumberOfExpectedMessages,
755 : Tags::ChangeSlabSize::NewSlabSize>>>;
756 0 : static constexpr bool keep_coarse_grids = false;
757 0 : static constexpr bool p_refine_only_in_event = true;
758 : };
759 :
760 0 : using component_list = tmpl::flatten<tmpl::list<
761 : ::amr::Component<EvolutionMetavars>,
762 : observers::Observer<EvolutionMetavars>,
763 : observers::ObserverWriter<EvolutionMetavars>,
764 : importers::ElementDataReader<EvolutionMetavars>,
765 : mem_monitor::MemoryMonitor<EvolutionMetavars>,
766 : gh::bbh::CompletionSingleton<EvolutionMetavars>,
767 : ah::Component<EvolutionMetavars, AhA>,
768 : ah::Component<EvolutionMetavars, AhB>,
769 : ah::Component<EvolutionMetavars, AhC>,
770 : tmpl::transform<
771 : control_system_horizon_metavars,
772 : tmpl::bind<ah::Component, tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
773 : tmpl::transform<interpolation_target_tags,
774 : tmpl::bind<intrp::InterpolationTarget,
775 : tmpl::pin<EvolutionMetavars>, tmpl::_1>>,
776 : control_system::control_components<EvolutionMetavars, control_systems>,
777 : gh_dg_element_array>>;
778 :
779 : static constexpr Options::String help{
780 : "Evolve a binary black hole using the Generalized Harmonic "
781 : "formulation\n"};
782 : };
|