SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Executables/GeneralizedHarmonic - GeneralizedHarmonicBase.hpp Hit Total Coverage
Commit: a6a8ee404306bec9d92da8ab89f636b037aefc25 Lines: 0 15 0.0 %
Date: 2024-07-26 22:35:59
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14