SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Executables/GrMhd/GhValenciaDivClean - GhValenciaDivCleanBase.hpp Coverage Total Hit
Commit: 0d1d717af84a81fb1284a20c4013708fe85cc2f0 Lines: 0.0 % 79 0
Test Date: 2026-10-22 17:29:42
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/GridCenters.hpp"
      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/Measurements/BNSCenterOfMass.hpp"
      15              : #include "ControlSystem/Metafunctions.hpp"
      16              : #include "ControlSystem/Systems/Expansion.hpp"
      17              : #include "ControlSystem/Systems/GridCenters.hpp"
      18              : #include "ControlSystem/Systems/Rotation.hpp"
      19              : #include "ControlSystem/Systems/Translation.hpp"
      20              : #include "ControlSystem/Trigger.hpp"
      21              : #include "DataStructures/DataBox/PrefixHelpers.hpp"
      22              : #include "DataStructures/DataBox/Tag.hpp"
      23              : #include "DataStructures/Tensor/EagerMath/RaiseOrLowerIndex.hpp"
      24              : #include "DataStructures/Tensor/IndexType.hpp"
      25              : #include "Domain/Creators/BinaryCompactObject.hpp"
      26              : #include "Domain/Creators/Factory3D.hpp"
      27              : #include "Domain/Tags.hpp"
      28              : #include "Evolution/Actions/RunEventsAndDenseTriggers.hpp"
      29              : #include "Evolution/Actions/RunEventsAndTriggers.hpp"
      30              : #include "Evolution/BoundaryCorrection.hpp"
      31              : #include "Evolution/ComputeTags.hpp"
      32              : #include "Evolution/Conservative/UpdateConservatives.hpp"
      33              : #include "Evolution/Conservative/UpdatePrimitives.hpp"
      34              : #include "Evolution/DgSubcell/Actions/Initialize.hpp"
      35              : #include "Evolution/DgSubcell/Actions/Labels.hpp"
      36              : #include "Evolution/DgSubcell/Actions/ReconstructionCommunication.hpp"
      37              : #include "Evolution/DgSubcell/Actions/SelectNumericalMethod.hpp"
      38              : #include "Evolution/DgSubcell/Actions/TakeTimeStep.hpp"
      39              : #include "Evolution/DgSubcell/Actions/TciAndRollback.hpp"
      40              : #include "Evolution/DgSubcell/Actions/TciAndSwitchToDg.hpp"
      41              : #include "Evolution/DgSubcell/CartesianFluxDivergence.hpp"
      42              : #include "Evolution/DgSubcell/CellCenteredFlux.hpp"
      43              : #include "Evolution/DgSubcell/ComputeBoundaryTerms.hpp"
      44              : #include "Evolution/DgSubcell/CorrectPackagedData.hpp"
      45              : #include "Evolution/DgSubcell/GetActiveTag.hpp"
      46              : #include "Evolution/DgSubcell/NeighborReconstructedFaceSolution.hpp"
      47              : #include "Evolution/DgSubcell/PerssonTci.hpp"
      48              : #include "Evolution/DgSubcell/PrepareNeighborData.hpp"
      49              : #include "Evolution/DgSubcell/SetInterpolators.hpp"
      50              : #include "Evolution/DgSubcell/SubcellAndNonconformingEqualRateRegions.hpp"
      51              : #include "Evolution/DgSubcell/Tags/ObserverCoordinates.hpp"
      52              : #include "Evolution/DgSubcell/Tags/ObserverMesh.hpp"
      53              : #include "Evolution/DgSubcell/Tags/ObserverMeshVelocity.hpp"
      54              : #include "Evolution/DgSubcell/Tags/TciStatus.hpp"
      55              : #include "Evolution/DgSubcell/TwoMeshRdmpTci.hpp"
      56              : #include "Evolution/DiscontinuousGalerkin/Actions/ApplyBoundaryCorrections.hpp"
      57              : #include "Evolution/DiscontinuousGalerkin/Actions/ComputeTimeDerivative.hpp"
      58              : #include "Evolution/DiscontinuousGalerkin/CleanMortarHistory.hpp"
      59              : #include "Evolution/DiscontinuousGalerkin/DgElementArray.hpp"
      60              : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/ChangeFixedLtsRatio.hpp"
      61              : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/FixedLtsRatio.hpp"
      62              : #include "Evolution/DiscontinuousGalerkin/EqualRateLts/NonconformingEqualRateRegions.hpp"
      63              : #include "Evolution/DiscontinuousGalerkin/Initialization/Mortars.hpp"
      64              : #include "Evolution/DiscontinuousGalerkin/Initialization/QuadratureTag.hpp"
      65              : #include "Evolution/DiscontinuousGalerkin/Initialization/SetupEqualRateRegions.hpp"
      66              : #include "Evolution/DiscontinuousGalerkin/Initialization/SpectralFilters.hpp"
      67              : #include "Evolution/DiscontinuousGalerkin/UsingSubcell.hpp"
      68              : #include "Evolution/Initialization/ConservativeSystem.hpp"
      69              : #include "Evolution/Initialization/DgDomain.hpp"
      70              : #include "Evolution/Initialization/Evolution.hpp"
      71              : #include "Evolution/Initialization/NonconservativeSystem.hpp"
      72              : #include "Evolution/Initialization/SetVariables.hpp"
      73              : #include "Evolution/NumericInitialData.hpp"
      74              : #include "Evolution/Systems/Cce/Callbacks/DumpBondiSachsOnWorldtube.hpp"
      75              : #include "Evolution/Systems/GeneralizedHarmonic/BoundaryConditions/Factory.hpp"
      76              : #include "Evolution/Systems/GeneralizedHarmonic/Equations.hpp"
      77              : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Factory.hpp"
      78              : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Gauges.hpp"
      79              : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/SetPiAndPhiFromConstraints.hpp"
      80              : #include "Evolution/Systems/GeneralizedHarmonic/GaugeSourceFunctions/Tags/GaugeCondition.hpp"
      81              : #include "Evolution/Systems/GeneralizedHarmonic/Initialize.hpp"
      82              : #include "Evolution/Systems/GeneralizedHarmonic/System.hpp"
      83              : #include "Evolution/Systems/GeneralizedHarmonic/Tags.hpp"
      84              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Actions/SetInitialData.hpp"
      85              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/AllSolutions.hpp"
      86              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/BoundaryConditions/Factory.hpp"
      87              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/BoundaryCorrections/Factory.hpp"
      88              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/FiniteDifference/Tag.hpp"
      89              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/SetPiAndPhiFromConstraints.hpp"
      90              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/FixConservativesAndComputePrims.hpp"
      91              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/NeighborPackagedData.hpp"
      92              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/PrimitiveGhostData.hpp"
      93              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/PrimsAfterRollback.hpp"
      94              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/ResizeAndComputePrimitives.hpp"
      95              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/TciOnDgGrid.hpp"
      96              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/TciOnFdGrid.hpp"
      97              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/TimeDerivative.hpp"
      98              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/Subcell/ZeroTimeDerivatives.hpp"
      99              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/SystemM1.hpp"
     100              : #include "Evolution/Systems/GrMhd/GhValenciaDivClean/TimeDerivativeTerms.hpp"
     101              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/AllSolutions.hpp"
     102              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/BoundaryConditions/Factory.hpp"
     103              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/FixConservatives.hpp"
     104              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/KastaunEtAl.hpp"
     105              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/NewmanHamlin.hpp"
     106              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/PalenzuelaEtAl.hpp"
     107              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/QuadrupoleFormula.hpp"
     108              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/SetVariablesNeededFixingToFalse.hpp"
     109              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/Subcell/SetInitialRdmpData.hpp"
     110              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/System.hpp"
     111              : #include "Evolution/Systems/GrMhd/ValenciaDivClean/Tags.hpp"
     112              : #include "Evolution/Systems/RadiationTransport/NoNeutrinos/System.hpp"
     113              : #include "Evolution/Triggers/SeparationLessThan.hpp"
     114              : #include "Evolution/TypeTraits.hpp"
     115              : #include "Evolution/VariableFixing/Actions.hpp"
     116              : #include "Evolution/VariableFixing/FixToAtmosphere.hpp"
     117              : #include "Evolution/VariableFixing/LimitLorentzFactor.hpp"
     118              : #include "Evolution/VariableFixing/ParameterizedDeleptonization.hpp"
     119              : #include "Evolution/VariableFixing/Tags.hpp"
     120              : #include "IO/Importers/Actions/ReadVolumeData.hpp"
     121              : #include "IO/Importers/Actions/ReceiveVolumeData.hpp"
     122              : #include "IO/Importers/Actions/RegisterWithElementDataReader.hpp"
     123              : #include "IO/Importers/ElementDataReader.hpp"
     124              : #include "IO/Observer/Actions/ObserverRegistration.hpp"
     125              : #include "IO/Observer/Actions/RegisterEvents.hpp"
     126              : #include "IO/Observer/Helpers.hpp"
     127              : #include "IO/Observer/ObserverComponent.hpp"
     128              : #include "IO/Observer/Tags.hpp"
     129              : #include "NumericalAlgorithms/DiscontinuousGalerkin/Formulation.hpp"
     130              : #include "NumericalAlgorithms/DiscontinuousGalerkin/Tags.hpp"
     131              : #include "NumericalAlgorithms/LinearOperators/Filters/Factory.hpp"
     132              : #include "NumericalAlgorithms/LinearOperators/Filters/SphericalShell.hpp"
     133              : #include "NumericalAlgorithms/LinearOperators/Filters/Tag.hpp"
     134              : #include "NumericalAlgorithms/LinearOperators/PartialDerivatives.hpp"
     135              : #include "Options/Protocols/FactoryCreation.hpp"
     136              : #include "Options/String.hpp"
     137              : #include "Parallel/Algorithms/AlgorithmSingleton.hpp"
     138              : #include "Parallel/Local.hpp"
     139              : #include "Parallel/Phase.hpp"
     140              : #include "Parallel/PhaseControl/ExecutePhaseChange.hpp"
     141              : #include "Parallel/PhaseControl/Factory.hpp"
     142              : #include "Parallel/PhaseControl/VisitAndReturn.hpp"
     143              : #include "Parallel/PhaseDependentActionList.hpp"
     144              : #include "Parallel/Protocols/RegistrationMetavariables.hpp"
     145              : #include "Parallel/Reduction.hpp"
     146              : #include "ParallelAlgorithms/Actions/AddComputeTags.hpp"
     147              : #include "ParallelAlgorithms/Actions/AddSimpleTags.hpp"
     148              : #include "ParallelAlgorithms/Actions/FunctionsOfTimeAreReady.hpp"
     149              : #include "ParallelAlgorithms/Actions/InitializeItems.hpp"
     150              : #include "ParallelAlgorithms/Actions/MutateApply.hpp"
     151              : #include "ParallelAlgorithms/Actions/SpectralFilter.hpp"
     152              : #include "ParallelAlgorithms/Actions/TerminatePhase.hpp"
     153              : #include "ParallelAlgorithms/Events/ChangeFixedLtsRatio.hpp"
     154              : #include "ParallelAlgorithms/Events/Completion.hpp"
     155              : #include "ParallelAlgorithms/Events/Factory.hpp"
     156              : #include "ParallelAlgorithms/Events/ObserveAtExtremum.hpp"
     157              : #include "ParallelAlgorithms/Events/ObserveDataBox.hpp"
     158              : #include "ParallelAlgorithms/Events/ObserveTimeStepVolume.hpp"
     159              : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTrigger.hpp"
     160              : #include "ParallelAlgorithms/EventsAndDenseTriggers/DenseTriggers/Factory.hpp"
     161              : #include "ParallelAlgorithms/EventsAndTriggers/Actions/RunEventsOnFailure.hpp"
     162              : #include "ParallelAlgorithms/EventsAndTriggers/Event.hpp"
     163              : #include "ParallelAlgorithms/EventsAndTriggers/EventsAndTriggers.hpp"
     164              : #include "ParallelAlgorithms/EventsAndTriggers/LogicalTriggers.hpp"
     165              : #include "ParallelAlgorithms/EventsAndTriggers/Trigger.hpp"
     166              : #include "ParallelAlgorithms/Interpolation/Actions/ElementInitInterpPoints.hpp"
     167              : #include "ParallelAlgorithms/Interpolation/Actions/InitializeInterpolationTarget.hpp"
     168              : #include "ParallelAlgorithms/Interpolation/Callbacks/ObserveTimeSeriesOnSurface.hpp"
     169              : #include "ParallelAlgorithms/Interpolation/Events/InterpolateWithoutInterpComponent.hpp"
     170              : #include "ParallelAlgorithms/Interpolation/InterpolationTarget.hpp"
     171              : #include "ParallelAlgorithms/Interpolation/Protocols/InterpolationTargetTag.hpp"
     172              : #include "ParallelAlgorithms/Interpolation/Tags.hpp"
     173              : #include "ParallelAlgorithms/Interpolation/Targets/KerrHorizon.hpp"
     174              : #include "ParallelAlgorithms/Interpolation/Targets/Sphere.hpp"
     175              : #include "PointwiseFunctions/AnalyticData/AnalyticData.hpp"
     176              : #include "PointwiseFunctions/AnalyticData/GhGrMhd/Factory.hpp"
     177              : #include "PointwiseFunctions/AnalyticData/GrMhd/BlastWave.hpp"
     178              : #include "PointwiseFunctions/AnalyticData/GrMhd/BondiHoyleAccretion.hpp"
     179              : #include "PointwiseFunctions/AnalyticData/GrMhd/InitialMagneticFields/Factory.hpp"
     180              : #include "PointwiseFunctions/AnalyticData/GrMhd/MagneticFieldLoop.hpp"
     181              : #include "PointwiseFunctions/AnalyticData/GrMhd/MagneticRotor.hpp"
     182              : #include "PointwiseFunctions/AnalyticData/GrMhd/MagnetizedFmDisk.hpp"
     183              : #include "PointwiseFunctions/AnalyticData/GrMhd/OrszagTangVortex.hpp"
     184              : #include "PointwiseFunctions/AnalyticData/Tags.hpp"
     185              : #include "PointwiseFunctions/AnalyticSolutions/AnalyticSolution.hpp"
     186              : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/Factory.hpp"
     187              : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/KerrSchild.hpp"
     188              : #include "PointwiseFunctions/AnalyticSolutions/GeneralRelativity/WrappedGr.hpp"
     189              : #include "PointwiseFunctions/AnalyticSolutions/GhGrMhd/Factory.hpp"
     190              : #include "PointwiseFunctions/AnalyticSolutions/GhRelativisticEuler/Factory.hpp"
     191              : #include "PointwiseFunctions/AnalyticSolutions/GrMhd/AlfvenWave.hpp"
     192              : #include "PointwiseFunctions/AnalyticSolutions/GrMhd/BondiMichel.hpp"
     193              : #include "PointwiseFunctions/AnalyticSolutions/GrMhd/KomissarovShock.hpp"
     194              : #include "PointwiseFunctions/AnalyticSolutions/GrMhd/SmoothFlow.hpp"
     195              : #include "PointwiseFunctions/AnalyticSolutions/RadiationTransport/MonteCarlo/Factory.hpp"
     196              : #include "PointwiseFunctions/AnalyticSolutions/RadiationTransport/MonteCarlo/HomogeneousSphere.hpp"
     197              : #include "PointwiseFunctions/AnalyticSolutions/RelativisticEuler/FishboneMoncriefDisk.hpp"
     198              : #include "PointwiseFunctions/AnalyticSolutions/RelativisticEuler/SmoothFlow.hpp"
     199              : #include "PointwiseFunctions/AnalyticSolutions/RelativisticEuler/TovStar.hpp"
     200              : #include "PointwiseFunctions/AnalyticSolutions/Tags.hpp"
     201              : #include "PointwiseFunctions/GeneralRelativity/Christoffel.hpp"
     202              : #include "PointwiseFunctions/GeneralRelativity/DetAndInverseSpatialMetric.hpp"
     203              : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ConstraintGammas.hpp"
     204              : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/ExtrinsicCurvature.hpp"
     205              : #include "PointwiseFunctions/GeneralRelativity/GeneralizedHarmonic/SecondTimeDerivOfSpacetimeMetric.hpp"
     206              : #include "PointwiseFunctions/GeneralRelativity/Lapse.hpp"
     207              : #include "PointwiseFunctions/GeneralRelativity/Psi4Imag.hpp"
     208              : #include "PointwiseFunctions/GeneralRelativity/Psi4Real.hpp"
     209              : #include "PointwiseFunctions/GeneralRelativity/Ricci.hpp"
     210              : #include "PointwiseFunctions/GeneralRelativity/Shift.hpp"
     211              : #include "PointwiseFunctions/GeneralRelativity/SpatialMetric.hpp"
     212              : #include "PointwiseFunctions/GeneralRelativity/Surfaces/Tags.hpp"
     213              : #include "PointwiseFunctions/GeneralRelativity/Tags.hpp"
     214              : #include "PointwiseFunctions/GeneralRelativity/WeylElectric.hpp"
     215              : #include "PointwiseFunctions/Hydro/EquationsOfState/Factory.hpp"
     216              : #include "PointwiseFunctions/Hydro/LowerSpatialFourVelocity.hpp"
     217              : #include "PointwiseFunctions/Hydro/MassFlux.hpp"
     218              : #include "PointwiseFunctions/Hydro/MassWeightedFluidItems.hpp"
     219              : #include "PointwiseFunctions/Hydro/SpecificEntropy.hpp"
     220              : #include "PointwiseFunctions/Hydro/Tags.hpp"
     221              : #include "PointwiseFunctions/Hydro/TransportVelocity.hpp"
     222              : #include "PointwiseFunctions/InitialDataUtilities/Tags/InitialData.hpp"
     223              : #include "PointwiseFunctions/MathFunctions/Factory.hpp"
     224              : #include "PointwiseFunctions/MathFunctions/MathFunction.hpp"
     225              : #include "Time/Actions/SelfStartActions.hpp"
     226              : #include "Time/AdvanceTime.hpp"
     227              : #include "Time/ChangeSlabSize/Action.hpp"
     228              : #include "Time/ChangeStepSize.hpp"
     229              : #include "Time/ChangeTimeStepperOrder.hpp"
     230              : #include "Time/CleanHistory.hpp"
     231              : #include "Time/RecordTimeStepperData.hpp"
     232              : #include "Time/StepChoosers/Factory.hpp"
     233              : #include "Time/StepChoosers/StepChooser.hpp"
     234              : #include "Time/Tags/Time.hpp"
     235              : #include "Time/Tags/TimeStepId.hpp"
     236              : #include "Time/TimeSequence.hpp"
     237              : #include "Time/TimeSteppers/Factory.hpp"
     238              : #include "Time/TimeSteppers/TimeStepper.hpp"
     239              : #include "Time/Triggers/TimeTriggers.hpp"
     240              : #include "Time/UpdateU.hpp"
     241              : #include "Utilities/ErrorHandling/Error.hpp"
     242              : #include "Utilities/Functional.hpp"
     243              : #include "Utilities/NoSuchType.hpp"
     244              : #include "Utilities/ProtocolHelpers.hpp"
     245              : #include "Utilities/TMPL.hpp"
     246              : 
     247              : /// \cond
     248              : namespace Frame {
     249              : 
     250              : struct Inertial;
     251              : }  // namespace Frame
     252              : namespace PUP {
     253              : class er;
     254              : }  // namespace PUP
     255              : namespace Parallel {
     256              : template <typename Metavariables>
     257              : class CProxy_GlobalCache;
     258              : }  // namespace Parallel
     259              : /// \endcond
     260              : 
     261              : template <bool UseDgSubcell>
     262            0 : struct GhValenciaDivCleanDefaults {
     263              :  public:
     264            0 :   static constexpr size_t volume_dim = 3;
     265            0 :   using domain_frame = Frame::Inertial;
     266            0 :   static constexpr bool use_damped_harmonic_rollon = true;
     267            0 :   using temporal_id = Tags::TimeStepId;
     268              : 
     269            0 :   static constexpr bool use_dg_element_collection = false;
     270              : 
     271            0 :   using neutrino_system = RadiationTransport::NoNeutrinos::System;
     272              : 
     273            0 :   using system = grmhd::GhValenciaDivClean::System<neutrino_system>;
     274            0 :   using analytic_variables_tags =
     275              :       typename system::primitive_variables_tag::tags_list;
     276            0 :   using analytic_solution_fields =
     277              :       tmpl::append<typename system::primitive_variables_tag::tags_list,
     278              :                    typename system::gh_system::variables_tag::tags_list>;
     279            0 :   using ordered_list_of_primitive_recovery_schemes = tmpl::list<
     280              :       grmhd::ValenciaDivClean::PrimitiveRecoverySchemes::KastaunEtAl,
     281              :       grmhd::ValenciaDivClean::PrimitiveRecoverySchemes::NewmanHamlin,
     282              :       grmhd::ValenciaDivClean::PrimitiveRecoverySchemes::PalenzuelaEtAl>;
     283              : 
     284            0 :   using initialize_initial_data_dependent_quantities_actions = tmpl::list<
     285              :       gh::Actions::InitializeGhAnd3Plus1Variables<volume_dim>,
     286              :       tmpl::conditional_t<UseDgSubcell,
     287              :                           grmhd::GhValenciaDivClean::SetPiAndPhiFromConstraints,
     288              :                           gh::gauges::SetPiAndPhiFromConstraints<
     289              :                               ghmhd::GhValenciaDivClean::InitialData::
     290              :                                   analytic_solutions_and_data_list,
     291              :                               3>>,
     292              :       Initialization::Actions::AddComputeTags<
     293              :           tmpl::list<gr::Tags::SqrtDetSpatialMetricCompute<
     294              :               DataVector, volume_dim, domain_frame>>>,
     295              :       VariableFixing::Actions::FixVariables<
     296              :           VariableFixing::FixToAtmosphere<volume_dim>>,
     297              :       VariableFixing::Actions::FixVariables<VariableFixing::LimitLorentzFactor>,
     298              :       Actions::UpdateConservatives,
     299              :       tmpl::conditional_t<
     300              :           UseDgSubcell,
     301              :           tmpl::list<
     302              :               Initialization::Actions::AddSimpleTags<
     303              :                   grmhd::ValenciaDivClean::SetVariablesNeededFixingToFalse>,
     304              : 
     305              :               evolution::dg::subcell::Actions::SetAndCommunicateInitialRdmpData<
     306              :                   volume_dim,
     307              :                   grmhd::ValenciaDivClean::subcell::SetInitialRdmpData>,
     308              :               evolution::dg::subcell::Actions::ComputeAndSendTciOnInitialGrid<
     309              :                   volume_dim, system,
     310              :                   grmhd::GhValenciaDivClean::subcell::TciOnFdGrid>,
     311              :               evolution::dg::subcell::Actions::SetInitialGridFromTciData<
     312              :                   volume_dim, system>,
     313              :               Actions::MutateApply<
     314              :                   grmhd::GhValenciaDivClean::subcell::ResizeAndComputePrims<
     315              :                       ordered_list_of_primitive_recovery_schemes>>,
     316              : 
     317              :               VariableFixing::Actions::FixVariables<
     318              :                   VariableFixing::FixToAtmosphere<volume_dim>>,
     319              :               VariableFixing::Actions::FixVariables<
     320              :                   VariableFixing::LimitLorentzFactor>,
     321              :               Actions::UpdateConservatives,
     322              :               grmhd::GhValenciaDivClean::SetPiAndPhiFromConstraints>,
     323              :           tmpl::list<>>,
     324              :       Parallel::Actions::TerminatePhase>;
     325              : 
     326              :   // NOLINTNEXTLINE(google-runtime-references)
     327            0 :   void pup(PUP::er& /*p*/) {}
     328              : };
     329              : 
     330              : template <typename EvolutionMetavarsDerived, bool UseDgSubcell,
     331              :           bool UseControlSystems, bool UseParametrizedDeleptonization>
     332            0 : struct GhValenciaDivCleanTemplateBase;
     333              : 
     334              : template <bool UseDgSubcell, bool UseControlSystems,
     335              :           bool UseParametrizedDeleptonization,
     336              :           template <bool, bool, typename...> class EvolutionMetavarsDerived,
     337              :           typename... InterpolationTargetTags>
     338            0 : struct GhValenciaDivCleanTemplateBase<
     339              :     EvolutionMetavarsDerived<UseControlSystems, UseParametrizedDeleptonization,
     340              :                              InterpolationTargetTags...>,
     341              :     UseDgSubcell, UseControlSystems, UseParametrizedDeleptonization>
     342              :     : public virtual GhValenciaDivCleanDefaults<UseDgSubcell> {
     343            0 :   using derived_metavars =
     344              :       EvolutionMetavarsDerived<UseControlSystems,
     345              :                                UseParametrizedDeleptonization,
     346              :                                InterpolationTargetTags...>;
     347            0 :   using defaults = GhValenciaDivCleanDefaults<UseDgSubcell>;
     348            0 :   static constexpr size_t volume_dim = defaults::volume_dim;
     349            0 :   using domain_frame = typename defaults::domain_frame;
     350            0 :   static constexpr bool use_damped_harmonic_rollon =
     351              :       defaults::use_damped_harmonic_rollon;
     352            0 :   using temporal_id = typename defaults::temporal_id;
     353            0 :   static constexpr bool use_dg_element_collection =
     354              :       defaults::use_dg_element_collection;
     355            0 :   using system = typename defaults::system;
     356              : 
     357            0 :   using analytic_variables_tags = typename defaults::analytic_variables_tags;
     358            0 :   using analytic_solution_fields = typename defaults::analytic_solution_fields;
     359            0 :   using ordered_list_of_primitive_recovery_schemes =
     360              :       typename defaults::ordered_list_of_primitive_recovery_schemes;
     361            0 :   using initialize_initial_data_dependent_quantities_actions =
     362              :       typename defaults::initialize_initial_data_dependent_quantities_actions;
     363              : 
     364            0 :   static constexpr bool use_dg_subcell = UseDgSubcell;
     365            0 :   static constexpr bool use_control_systems = UseControlSystems;
     366            0 :   using initial_data_list =
     367              :       ghmhd::GhValenciaDivClean::InitialData::initial_data_list;
     368              : 
     369              :   // Boolean verifying if parameterized deleptonization will be active.  This
     370              :   // will only be active for CCSN evolution.
     371            0 :   using parameterized_deleptonization =
     372              :       tmpl::conditional_t<UseParametrizedDeleptonization,
     373              :                           VariableFixing::Actions::FixVariables<
     374              :                               VariableFixing::ParameterizedDeleptonization>,
     375              :                           tmpl::list<>>;
     376              : 
     377            0 :   using initial_data_tag = evolution::initial_data::Tags::InitialData;
     378            0 :   using equation_of_state_tag = hydro::Tags::GrmhdEquationOfState;
     379            0 :   using measurement = control_system::measurements::BothNSCenters;
     380            0 :   using control_systems = tmpl::conditional_t<
     381              :       use_control_systems,
     382              :       tmpl::list<control_system::Systems::Rotation<3, measurement>,
     383              :                  control_system::Systems::Expansion<2, measurement>,
     384              :                  control_system::Systems::Translation<2, measurement, 2>,
     385              :                  control_system::Systems::GridCenters<2, measurement>>,
     386              :       tmpl::list<>>;
     387              : 
     388            0 :   using interpolator_source_vars =
     389              :       tmpl::remove_duplicates<tmpl::flatten<tmpl::list<
     390              :           typename InterpolationTargetTags::vars_to_interpolate_to_target...>>>;
     391              : 
     392            0 :   using analytic_compute = evolution::Tags::AnalyticSolutionsCompute<
     393              :       volume_dim, analytic_solution_fields, use_dg_subcell, initial_data_list>;
     394            0 :   using error_compute = Tags::ErrorsCompute<analytic_solution_fields>;
     395            0 :   using error_tags = db::wrap_tags_in<Tags::Error, analytic_solution_fields>;
     396            0 :   using observe_fields = tmpl::append<
     397              :       typename system::variables_tag::tags_list,
     398              :       typename system::primitive_variables_tag::tags_list, error_tags,
     399              :       tmpl::list<
     400              :           hydro::Tags::TildeDInHalfPlaneCompute<
     401              :               DataVector, volume_dim,
     402              :               ::hydro::HalfPlaneIntegralMask::PositiveXOnly,
     403              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>>,
     404              :           hydro::Tags::TildeDInHalfPlaneCompute<
     405              :               DataVector, volume_dim,
     406              :               ::hydro::HalfPlaneIntegralMask::NegativeXOnly,
     407              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>>,
     408              :           hydro::Tags::MassWeightedCoordsCompute<
     409              :               DataVector, volume_dim,
     410              :               ::hydro::HalfPlaneIntegralMask::PositiveXOnly,
     411              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     412              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     413              :               Frame::Inertial>,
     414              :           hydro::Tags::MassWeightedCoordsCompute<
     415              :               DataVector, volume_dim,
     416              :               ::hydro::HalfPlaneIntegralMask::NegativeXOnly,
     417              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     418              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     419              :               Frame::Inertial>,
     420              : 
     421              :           hydro::Tags::MassWeightedInternalEnergyCompute<DataVector>,
     422              :           hydro::Tags::MassWeightedKineticEnergyCompute<DataVector>,
     423              :           hydro::Tags::TildeDUnboundUtCriterionCompute<DataVector, volume_dim,
     424              :                                                        domain_frame>,
     425              :           hydro::Tags::LowerSpatialFourVelocityCompute,
     426              :           hydro::Tags::MassWeightedCoordsCompute<
     427              :               DataVector, volume_dim, ::hydro::HalfPlaneIntegralMask::None,
     428              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     429              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     430              :               Frame::Inertial>,
     431              :           gr::Tags::SpacetimeNormalOneFormCompute<DataVector, volume_dim,
     432              :                                                   domain_frame>,
     433              :           gr::Tags::SpacetimeNormalVectorCompute<DataVector, volume_dim,
     434              :                                                  domain_frame>,
     435              :           gr::Tags::InverseSpacetimeMetricCompute<DataVector, volume_dim,
     436              :                                                   domain_frame>,
     437              :           gr::Tags::Lapse<DataVector>,
     438              :           gr::Tags::Shift<DataVector, volume_dim, domain_frame>,
     439              :           gr::Tags::SpatialMetric<DataVector, volume_dim, domain_frame>,
     440              :           gr::Tags::DetSpatialMetric<DataVector>,
     441              :           gr::Tags::InverseSpatialMetric<DataVector, volume_dim>,
     442              :           gh::Tags::ExtrinsicCurvatureCompute<volume_dim, domain_frame>,
     443              :           gh::Tags::DerivSpatialMetricCompute<volume_dim, ::Frame::Inertial>,
     444              :           gr::Tags::SpatialChristoffelFirstKindCompute<DataVector, volume_dim,
     445              :                                                        ::Frame::Inertial>,
     446              :           gr::Tags::SpatialChristoffelSecondKindCompute<DataVector, volume_dim,
     447              :                                                         ::Frame::Inertial>,
     448              :           ::Tags::DerivTensorCompute<
     449              :               gr::Tags::SpatialChristoffelSecondKind<DataVector, volume_dim>,
     450              :               ::Events::Tags::ObserverInverseJacobian<
     451              :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     452              :               ::Events::Tags::ObserverMesh<volume_dim>,
     453              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>>,
     454              :           gr::Tags::SpatialRicciCompute<DataVector, volume_dim,
     455              :                                         ::Frame::Inertial>,
     456              :           gr::Tags::SpatialRicciScalarCompute<DataVector, volume_dim,
     457              :                                               ::Frame::Inertial>,
     458              : 
     459              :           // Constraints
     460              :           gh::Tags::GaugeConstraintCompute<volume_dim, domain_frame>,
     461              :           gh::Tags::TwoIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
     462              :           gh::Tags::ThreeIndexConstraintCompute<volume_dim, ::Frame::Inertial>,
     463              :           gh::Tags::FourIndexConstraintCompute<3, ::Frame::Inertial>,
     464              :           gh::Tags::FConstraintCompute<3, ::Frame::Inertial>,
     465              : 
     466              :           // L2 norms of constraints
     467              :           ::Tags::PointwiseL2NormCompute<
     468              :               gh::Tags::GaugeConstraint<DataVector, volume_dim, domain_frame>>,
     469              :           ::Tags::PointwiseL2NormCompute<
     470              :               gh::Tags::TwoIndexConstraint<DataVector, volume_dim>>,
     471              :           ::Tags::PointwiseL2NormCompute<
     472              :               gh::Tags::ThreeIndexConstraint<DataVector, volume_dim>>,
     473              :           ::Tags::PointwiseL2NormCompute<
     474              :               gh::Tags::FourIndexConstraint<DataVector, 3>>,
     475              :           gh::Tags::ConstraintEnergyCompute<3, ::Frame::Inertial>,
     476              :           ::Tags::PointwiseL2NormCompute<gh::Tags::FConstraint<DataVector, 3>>,
     477              :           ::Tags::PointwiseL2NormCompute<
     478              :               gh::Tags::GaugeH<DataVector, volume_dim>>,
     479              :           ::Tags::PointwiseL2NormCompute<
     480              :               gh::Tags::ConstraintEnergy<DataVector, volume_dim>>,
     481              :           ::Tags::PointwiseL2NormCompute<gh::Tags::Phi<DataVector, volume_dim>>,
     482              :           ::Tags::PointwiseL2NormCompute<
     483              :               ::Tags::deriv<gr::Tags::SpacetimeMetric<DataVector, volume_dim>,
     484              :                             tmpl::size_t<volume_dim>, Frame::Inertial>>,
     485              : 
     486              :           // GW Tags
     487              :           grmhd::ValenciaDivClean::Tags::QuadrupoleMomentCompute<
     488              :               DataVector, volume_dim,
     489              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>>,
     490              :           grmhd::ValenciaDivClean::Tags::QuadrupoleMomentDerivativeCompute<
     491              :               DataVector, volume_dim,
     492              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>,
     493              :               hydro::Tags::SpatialVelocity<DataVector, volume_dim,
     494              :                                            Frame::Inertial>>,
     495              :           hydro::Tags::TransportVelocityCompute<DataVector, volume_dim,
     496              :                                                 Frame::Inertial>,
     497              :           grmhd::ValenciaDivClean::Tags::QuadrupoleMomentDerivativeCompute<
     498              :               DataVector, volume_dim,
     499              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>,
     500              :               hydro::Tags::TransportVelocity<DataVector, volume_dim,
     501              :                                              Frame::Inertial>>,
     502              :           hydro::Tags::SpecificEntropyCompute<DataVector>,
     503              :           gh::Tags::TimeDerivLapseCompute<volume_dim, Frame::Inertial>,
     504              :           gh::Tags::TimeDerivShiftCompute<volume_dim, Frame::Inertial>,
     505              :           ::Tags::dt<gh::Tags::Phi<DataVector, volume_dim, Frame::Inertial>>,
     506              :           ::Tags::dt<gh::Tags::Pi<DataVector, volume_dim, Frame::Inertial>>,
     507              :           gh::Tags::SecondTimeDerivOfSpacetimeMetricCompute<volume_dim,
     508              :                                                             Frame::Inertial>,
     509              :           ::Tags::DerivTensorCompute<
     510              :               gr::Tags::ExtrinsicCurvature<DataVector, 3>,
     511              :               ::Events::Tags::ObserverInverseJacobian<
     512              :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     513              :               ::Events::Tags::ObserverMesh<volume_dim>,
     514              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>>,
     515              :           gr::Tags::WeylElectricCompute<DataVector, 3, Frame::Inertial>,
     516              :           gr::Tags::Psi4RealCompute<Frame::Inertial>,
     517              :           gr::Tags::Psi4ImagCompute<Frame::Inertial>,
     518              :           ::Events::Tags::ObserverMeshVelocity<3>>,
     519              :       tmpl::conditional_t<
     520              :           use_dg_subcell,
     521              :           tmpl::list<evolution::dg::subcell::Tags::TciStatusCompute<volume_dim>,
     522              :                      evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     523              :                          volume_dim, Frame::ElementLogical>,
     524              :                      evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     525              :                          volume_dim, Frame::Grid>,
     526              :                      evolution::dg::subcell::Tags::ObserverCoordinatesCompute<
     527              :                          volume_dim, Frame::Inertial>>,
     528              :           tmpl::list<::Events::Tags::ObserverCoordinatesCompute<
     529              :                          volume_dim, Frame::ElementLogical>,
     530              :                      ::Events::Tags::ObserverCoordinatesCompute<volume_dim,
     531              :                                                                 Frame::Grid>,
     532              :                      ::Events::Tags::ObserverCoordinatesCompute<
     533              :                          volume_dim, Frame::Inertial>>>>;
     534            0 :   using integrand_fields = tmpl::append<
     535              :       typename system::variables_tag::tags_list,
     536              :       tmpl::list<
     537              :           // Control system tags
     538              :           hydro::Tags::TildeDInHalfPlaneCompute<
     539              :               DataVector, volume_dim,
     540              :               ::hydro::HalfPlaneIntegralMask::PositiveXOnly,
     541              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>>,
     542              :           hydro::Tags::TildeDInHalfPlaneCompute<
     543              :               DataVector, volume_dim,
     544              :               ::hydro::HalfPlaneIntegralMask::NegativeXOnly,
     545              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>>,
     546              :           hydro::Tags::MassWeightedCoordsCompute<
     547              :               DataVector, volume_dim,
     548              :               ::hydro::HalfPlaneIntegralMask::PositiveXOnly,
     549              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     550              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     551              :               Frame::Inertial>,
     552              :           hydro::Tags::MassWeightedCoordsCompute<
     553              :               DataVector, volume_dim,
     554              :               ::hydro::HalfPlaneIntegralMask::NegativeXOnly,
     555              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     556              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     557              :               Frame::Inertial>,
     558              : 
     559              :           // General tags
     560              :           hydro::Tags::MassWeightedInternalEnergyCompute<DataVector>,
     561              :           hydro::Tags::MassWeightedKineticEnergyCompute<DataVector>,
     562              :           hydro::Tags::TildeDUnboundUtCriterionCompute<DataVector, volume_dim,
     563              :                                                        domain_frame>,
     564              :           hydro::Tags::MassWeightedCoordsCompute<
     565              :               DataVector, volume_dim, ::hydro::HalfPlaneIntegralMask::None,
     566              :               Events::Tags::ObserverCoordinates<3, Frame::Grid>,
     567              :               Events::Tags::ObserverCoordinates<3, Frame::Inertial>,
     568              :               Frame::Inertial>>>;
     569              : 
     570            0 :   using non_tensor_compute_tags = tmpl::append<
     571              :       tmpl::conditional_t<
     572              :           use_dg_subcell,
     573              :           tmpl::list<
     574              :               evolution::dg::subcell::Tags::ObserverMeshCompute<volume_dim>,
     575              :               evolution::dg::subcell::Tags::ObserverInverseJacobianCompute<
     576              :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     577              :               evolution::dg::subcell::Tags::
     578              :                   ObserverJacobianAndDetInvJacobianCompute<
     579              :                       volume_dim, Frame::ElementLogical, Frame::Inertial>,
     580              :               evolution::dg::subcell::Tags::ObserverMeshVelocityCompute<
     581              :                   volume_dim>>,
     582              :           tmpl::list<::Events::Tags::ObserverMeshCompute<volume_dim>,
     583              :                      ::Events::Tags::ObserverInverseJacobianCompute<
     584              :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     585              :                      ::Events::Tags::ObserverJacobianCompute<
     586              :                          volume_dim, Frame::ElementLogical, Frame::Inertial>,
     587              :                      ::Events::Tags::ObserverDetInvJacobianCompute<
     588              :                          Frame::ElementLogical, Frame::Inertial>,
     589              :                      ::Events::Tags::ObserverMeshVelocityCompute<3>>>,
     590              :       tmpl::list<analytic_compute, error_compute>,
     591              :       tmpl::list<
     592              :           ::Tags::DerivCompute<
     593              :               typename system::variables_tag,
     594              :               ::Events::Tags::ObserverMesh<volume_dim>,
     595              :               ::Events::Tags::ObserverInverseJacobian<
     596              :                   volume_dim, Frame::ElementLogical, Frame::Inertial>,
     597              :               typename system::gradient_variables,
     598              :               ::Events::Tags::ObserverCoordinates<volume_dim, Frame::Inertial>>,
     599              :           gh::gauges::Tags::GaugeAndDerivativeCompute<
     600              :               volume_dim, ghmhd::GhValenciaDivClean::InitialData::
     601              :                               analytic_solutions_and_data_list>>>;
     602              : 
     603            0 :   struct factory_creation
     604              :       : tt::ConformsTo<Options::protocols::FactoryCreation> {
     605              :    private:
     606            0 :     using boundary_conditions = grmhd::GhValenciaDivClean::BoundaryConditions::
     607              :         standard_boundary_conditions<system>;
     608              : 
     609              :    public:
     610            0 :     using factory_classes = tmpl::map<
     611              :         tmpl::pair<DenseTrigger,
     612              :                    tmpl::append<DenseTriggers::standard_dense_triggers,
     613              :                                 control_system::control_system_triggers<
     614              :                                     control_systems>>>,
     615              :         tmpl::pair<DomainCreator<volume_dim>,
     616              :                    // Currently control systems can only be used with BCO
     617              :                    // domains
     618              :                    tmpl::conditional_t<
     619              :                        use_control_systems,
     620              :                        tmpl::list<::domain::creators::BinaryCompactObject>,
     621              :                        domain_creators<volume_dim>>>,
     622              :         tmpl::pair<Event,
     623              :                    tmpl::flatten<tmpl::list<
     624              :                        Events::Completion, ::Events::ObserveDataBox,
     625              :                        dg::Events::field_observations<
     626              :                            volume_dim, observe_fields, non_tensor_compute_tags>,
     627              :                        Events::ObserveAtExtremum<observe_fields,
     628              :                                                  non_tensor_compute_tags>,
     629              :                        Events::time_events<system>,
     630              :                        dg::Events::ObserveTimeStepVolume<system>,
     631              :                        control_system::metafunctions::control_system_events<
     632              :                            control_systems>,
     633              :                        tmpl::conditional_t<use_control_systems,
     634              :                                            control_system::CleanFunctionsOfTime,
     635              :                                            tmpl::list<>>,
     636              :                        intrp::Events::InterpolateWithoutInterpComponent<
     637              :                            volume_dim, InterpolationTargetTags,
     638              :                            interpolator_source_vars>...,
     639              :                        dg::Events::ChangeFixedLtsRatio<volume_dim>>>>,
     640              :         tmpl::pair<evolution::BoundaryCorrection,
     641              :                    grmhd::GhValenciaDivClean::BoundaryCorrections::
     642              :                        standard_boundary_corrections>,
     643              :         tmpl::pair<
     644              :             grmhd::GhValenciaDivClean::BoundaryConditions::BoundaryCondition,
     645              :             boundary_conditions>,
     646              :         tmpl::pair<
     647              :             grmhd::AnalyticData::InitialMagneticFields::InitialMagneticField,
     648              :             grmhd::AnalyticData::InitialMagneticFields::
     649              :                 initial_magnetic_fields>,
     650              :         tmpl::pair<gh::gauges::GaugeCondition, gh::gauges::all_gauges>,
     651              :         tmpl::pair<MathFunction<1, Frame::Inertial>,
     652              :                    MathFunctions::all_math_functions<1, Frame::Inertial>>,
     653              :         tmpl::pair<evolution::initial_data::InitialData, initial_data_list>,
     654              :         tmpl::pair<PhaseChange, PhaseControl::factory_creatable_classes>,
     655              :         tmpl::pair<StepChooser<StepChooserUse::LtsStep>,
     656              :                    StepChoosers::standard_step_choosers<system>>,
     657              :         tmpl::pair<StepChooser<StepChooserUse::Slab>,
     658              :                    tmpl::push_back<
     659              :                        StepChoosers::standard_slab_choosers<system>,
     660              :                        evolution::dg::StepChoosers::FixedLtsRatio<volume_dim>>>,
     661              :         tmpl::pair<TimeSequence<double>,
     662              :                    TimeSequences::all_time_sequences<double>>,
     663              :         tmpl::pair<TimeSequence<std::uint64_t>,
     664              :                    TimeSequences::all_time_sequences<std::uint64_t>>,
     665              :         tmpl::pair<TimeStepper, TimeSteppers::time_steppers>,
     666              :         tmpl::pair<
     667              :             Trigger,
     668              :             tmpl::append<Triggers::logical_triggers, Triggers::time_triggers,
     669              :                          tmpl::conditional_t<
     670              :                              UseControlSystems,
     671              :                              tmpl::list<Triggers::SeparationLessThan<true>>,
     672              :                              tmpl::list<>>>>,
     673              :         tmpl::pair<
     674              :             Filters::Filter<volume_dim,
     675              :                             typename system::variables_tag::tags_list>,
     676              :             tmpl::push_back<
     677              :                 Filters::all_filters<volume_dim,
     678              :                                      typename system::variables_tag::tags_list>,
     679              :                 Filters::SphericalShell<
     680              :                     typename system::variables_tag::tags_list>>>>;
     681              :   };
     682              : 
     683            0 :   using interpolation_target_tags = tmpl::list<InterpolationTargetTags...>;
     684              : 
     685            0 :   using observed_reduction_data_tags = observers::collect_reduction_data_tags<
     686              :       tmpl::at<typename factory_creation::factory_classes, Event>>;
     687              : 
     688            0 :   using const_global_cache_tags = tmpl::flatten<tmpl::list<
     689              :       tmpl::conditional_t<
     690              :           use_dg_subcell,
     691              :           tmpl::list<
     692              :               grmhd::GhValenciaDivClean::fd::Tags::Reconstructor<system>,
     693              :               grmhd::GhValenciaDivClean::fd::Tags::FilterOptions,
     694              :               ::Tags::VariableFixer<grmhd::ValenciaDivClean::FixConservatives>,
     695              :               grmhd::ValenciaDivClean::subcell::Tags::TciOptions>,
     696              :           tmpl::list<>>,
     697              :       grmhd::ValenciaDivClean::Tags::PrimitiveFromConservativeOptions,
     698              :       gh::gauges::Tags::GaugeCondition, initial_data_tag,
     699              :       grmhd::ValenciaDivClean::Tags::ConstraintDampingParameter,
     700              :       equation_of_state_tag,
     701              :       gh::Tags::DampingFunctionGamma0<volume_dim, Frame::Grid>,
     702              :       gh::Tags::DampingFunctionGamma1<volume_dim, Frame::Grid>,
     703              :       gh::Tags::DampingFunctionGamma2<volume_dim, Frame::Grid>>>;
     704              : 
     705            0 :   using dg_registration_list =
     706              :       tmpl::list<observers::Actions::RegisterEventsWithObservers>;
     707              : 
     708            0 :   static constexpr auto default_phase_order = std::array<Parallel::Phase, 8>{
     709              :       {Parallel::Phase::Initialization,
     710              :        Parallel::Phase::RegisterWithElementDataReader,
     711              :        Parallel::Phase::Register, Parallel::Phase::ImportInitialData,
     712              :        Parallel::Phase::InitializeInitialDataDependentQuantities,
     713              :        Parallel::Phase::InitializeTimeStepperHistory, Parallel::Phase::Evolve,
     714              :        Parallel::Phase::Exit}};
     715              : 
     716            0 :   struct SubcellOptions {
     717            0 :     using evolved_vars_tags = typename system::variables_tag::tags_list;
     718            0 :     using prim_tags = typename system::primitive_variables_tag::tags_list;
     719              : 
     720            0 :     static constexpr bool subcell_enabled = use_dg_subcell;
     721            0 :     static constexpr bool subcell_enabled_at_external_boundary = true;
     722              : 
     723              :     // We send `ghost_zone_size` cell-centered grid points for variable
     724              :     // reconstruction, of which we need `ghost_zone_size-1` for reconstruction
     725              :     // to the internal side of the element face, and `ghost_zone_size` for
     726              :     // reconstruction to the external side of the element face.
     727              :     template <typename DbTagsList>
     728            0 :     static constexpr size_t ghost_zone_size(
     729              :         const db::DataBox<DbTagsList>& box) {
     730              :       return db::get<
     731              :                  grmhd::GhValenciaDivClean::fd::Tags::Reconstructor<system>>(
     732              :                  box)
     733              :           .ghost_zone_size();
     734              :     }
     735              : 
     736            0 :     using DgComputeSubcellNeighborPackagedData =
     737              :         grmhd::GhValenciaDivClean::subcell::NeighborPackagedData<system>;
     738              : 
     739            0 :     using GhostVariables =
     740              :         grmhd::GhValenciaDivClean::subcell::PrimitiveGhostVariables;
     741              :   };
     742              : 
     743            0 :   using events_and_dense_triggers_dg_postprocessors = tmpl::list<
     744              :       ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
     745              :       evolution::dg::ApplyLtsDenseBoundaryCorrections<derived_metavars>,
     746              :       AlwaysReadyPostprocessor<
     747              :           typename system::template primitive_from_conservative<
     748              :               ordered_list_of_primitive_recovery_schemes>>>;
     749              : 
     750            0 :   using events_and_dense_triggers_subcell_postprocessors = tmpl::list<
     751              :       ::domain::CheckFunctionsOfTimeAreReadyPostprocessor<volume_dim>,
     752              :       AlwaysReadyPostprocessor<
     753              :           grmhd::GhValenciaDivClean::subcell::FixConservativesAndComputePrims<
     754              :               ordered_list_of_primitive_recovery_schemes, system>>>;
     755              : 
     756            0 :   using equal_rate_regions = tmpl::conditional_t<
     757              :       use_dg_subcell,
     758              :       tmpl::list<evolution::dg::subcell::
     759              :                      SubcellAndNonconformingEqualRateRegions<volume_dim>>,
     760              :       tmpl::list<evolution::dg::NonconformingEqualRateRegions<volume_dim>>>;
     761              : 
     762            0 :   using dg_step_actions = tmpl::flatten<tmpl::list<
     763              :       dg::Actions::SpectralFilter<volume_dim,
     764              :                                   typename system::variables_tag::tags_list>,
     765              :       evolution::dg::Actions::ComputeTimeDerivative<
     766              :           volume_dim, system, AllStepChoosers, use_dg_element_collection>,
     767              :       evolution::dg::Actions::ApplyBoundaryCorrectionsToTimeDerivative<
     768              :           volume_dim, use_dg_element_collection>,
     769              :       tmpl::conditional_t<
     770              :           UseControlSystems,
     771              :           Actions::MutateApply<grmhd::GhValenciaDivClean::subcell::
     772              :                                    ZeroMhdTimeDerivatives<system>>,
     773              :           tmpl::list<>>,
     774              :       Actions::MutateApply<RecordTimeStepperData<system>>,
     775              :       evolution::Actions::RunEventsAndDenseTriggers<
     776              :           events_and_dense_triggers_dg_postprocessors>,
     777              :       control_system::Actions::LimitTimeStep<control_systems>,
     778              :       Actions::MutateApply<UpdateU<system>>,
     779              :       evolution::dg::Actions::ApplyLtsBoundaryCorrections<
     780              :           volume_dim, use_dg_element_collection>,
     781              :       Actions::MutateApply<ChangeTimeStepperOrder<system>>,
     782              :       tmpl::conditional_t<
     783              :           use_dg_subcell,
     784              :           // Note: The primitive variables are computed as part of the TCI.
     785              :           evolution::dg::subcell::Actions::TciAndRollback<
     786              :               grmhd::GhValenciaDivClean::subcell::TciOnDgGrid<
     787              :                   tmpl::front<ordered_list_of_primitive_recovery_schemes>>>,
     788              :           tmpl::list<>>,
     789              :       Actions::MutateApply<CleanHistory<system>>,
     790              :       Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     791              :       tmpl::conditional_t<
     792              :           use_dg_subcell,
     793              :           tmpl::list<parameterized_deleptonization,
     794              :                      VariableFixing::Actions::FixVariables<
     795              :                          VariableFixing::FixToAtmosphere<volume_dim>>,
     796              :                      VariableFixing::Actions::FixVariables<
     797              :                          VariableFixing::LimitLorentzFactor>,
     798              :                      Actions::UpdateConservatives>,
     799              :           tmpl::list<parameterized_deleptonization,
     800              :                      VariableFixing::Actions::FixVariables<
     801              :                          grmhd::ValenciaDivClean::FixConservatives>,
     802              :                      Actions::UpdatePrimitives>>>>;
     803              : 
     804            0 :   using dg_subcell_step_actions = tmpl::flatten<tmpl::list<
     805              :       evolution::dg::subcell::Actions::SelectNumericalMethod,
     806              : 
     807              :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginDg>,
     808              :       dg_step_actions,
     809              :       Actions::Goto<evolution::dg::subcell::Actions::Labels::EndOfSolvers>,
     810              : 
     811              :       Actions::Label<evolution::dg::subcell::Actions::Labels::BeginSubcell>,
     812              :       // This is just to adjust for FixedLtsRatio, so we
     813              :       // can pass an empty list of StepChoosers.
     814              :       Actions::MutateApply<ChangeStepSize<tmpl::list<>>>,
     815              :       Actions::MutateApply<evolution::dg::subcell::fd::CellCenteredFlux<
     816              :           system, grmhd::ValenciaDivClean::ComputeFluxes, volume_dim, false>>,
     817              :       evolution::dg::subcell::Actions::SendDataForReconstruction<
     818              :           volume_dim,
     819              :           grmhd::GhValenciaDivClean::subcell::PrimitiveGhostVariables,
     820              :           use_dg_element_collection>,
     821              :       evolution::dg::subcell::Actions::ReceiveDataForReconstruction<volume_dim>,
     822              :       Actions::Label<
     823              :           evolution::dg::subcell::Actions::Labels::BeginSubcellAfterDgRollback>,
     824              :       Actions::MutateApply<
     825              :           grmhd::GhValenciaDivClean::subcell::PrimsAfterRollback<
     826              :               ordered_list_of_primitive_recovery_schemes>>,
     827              :       Actions::MutateApply<evolution::dg::subcell::fd::CellCenteredFlux<
     828              :           system, grmhd::ValenciaDivClean::ComputeFluxes, volume_dim, true>>,
     829              :       evolution::dg::subcell::fd::Actions::TakeTimeStep<
     830              :           grmhd::GhValenciaDivClean::subcell::TimeDerivative<system>>,
     831              :       Actions::MutateApply<RecordTimeStepperData<system>>,
     832              :       evolution::Actions::RunEventsAndDenseTriggers<
     833              :           events_and_dense_triggers_subcell_postprocessors>,
     834              :       control_system::Actions::LimitTimeStep<control_systems>,
     835              :       Actions::MutateApply<UpdateU<system>>,
     836              :       Actions::MutateApply<CleanHistory<system>>,
     837              :       Actions::MutateApply<evolution::dg::CleanMortarHistory<volume_dim>>,
     838              :       Actions::MutateApply<
     839              :           grmhd::GhValenciaDivClean::subcell::FixConservativesAndComputePrims<
     840              :               ordered_list_of_primitive_recovery_schemes, system>>,
     841              :       evolution::dg::subcell::Actions::TciAndSwitchToDg<
     842              :           grmhd::GhValenciaDivClean::subcell::TciOnFdGrid>,
     843              :       Actions::MutateApply<
     844              :           grmhd::GhValenciaDivClean::subcell::ResizeAndComputePrims<
     845              :               ordered_list_of_primitive_recovery_schemes>>,
     846              :       parameterized_deleptonization,
     847              :       VariableFixing::Actions::FixVariables<
     848              :           VariableFixing::FixToAtmosphere<volume_dim>>,
     849              :       VariableFixing::Actions::FixVariables<VariableFixing::LimitLorentzFactor>,
     850              :       Actions::UpdateConservatives,
     851              : 
     852              :       Actions::Label<evolution::dg::subcell::Actions::Labels::EndOfSolvers>>>;
     853              : 
     854            0 :   using step_actions =
     855              :       tmpl::conditional_t<use_dg_subcell, dg_subcell_step_actions,
     856              :                           dg_step_actions>;
     857              : 
     858            0 :   using initialization_actions = tmpl::list<
     859              :       Initialization::Actions::InitializeItems<
     860              :           Initialization::TimeStepping<derived_metavars, TimeStepper,
     861              :                                        use_control_systems, true>,
     862              :           evolution::dg::Initialization::Domain<derived_metavars,
     863              :                                                 use_control_systems>>,
     864              :       Initialization::Actions::ConservativeSystem<system>,
     865              :       Initialization::Actions::InitializeItems<
     866              :           Initialization::TimeStepperHistory<system>>,
     867              :       // This conditional is untested and probably doesn't work if
     868              :       // `use_dg_subcell` is `false`
     869              :       tmpl::conditional_t<
     870              :           use_dg_subcell,
     871              :           tmpl::list<
     872              :               evolution::dg::subcell::Actions::SetSubcellGrid<volume_dim,
     873              :                                                               system, true>,
     874              :               Actions::MutateApply<evolution::dg::subcell::SetInterpolators<
     875              :                   volume_dim,
     876              :                   grmhd::GhValenciaDivClean::fd::Tags::Reconstructor<system>>>>,
     877              :           evolution::Initialization::Actions::SetVariables<
     878              :               ::domain::Tags::Coordinates<volume_dim, Frame::ElementLogical>>>,
     879              :       Initialization::Actions::AddComputeTags<
     880              :           StepChoosers::step_chooser_compute_tags<
     881              :               GhValenciaDivCleanTemplateBase>>,
     882              :       ::evolution::dg::Initialization::Mortars<volume_dim>,
     883              :       evolution::dg::Initialization::Actions::SetupEqualRateRegions<
     884              :           derived_metavars, volume_dim, equal_rate_regions>,
     885              :       evolution::Actions::InitializeRunEventsAndDenseTriggers,
     886              :       intrp::Actions::ElementInitInterpPoints<volume_dim,
     887              :                                               interpolation_target_tags>,
     888              :       tmpl::conditional_t<
     889              :           use_control_systems,
     890              :           control_system::Actions::InitializeMeasurements<control_systems>,
     891              :           tmpl::list<>>,
     892              :       Initialization::Actions::InitializeItems<
     893              :           evolution::dg::Initialization::SpectralFilters<
     894              :               volume_dim, typename system::variables_tag::tags_list>>,
     895              :       Parallel::Actions::TerminatePhase>;
     896              : 
     897            0 :   using import_initial_data_action_lists = tmpl::list<
     898              :       Parallel::PhaseActions<
     899              :           Parallel::Phase::RegisterWithElementDataReader,
     900              :           tmpl::list<importers::Actions::RegisterWithElementDataReader,
     901              :                      Parallel::Actions::TerminatePhase>>,
     902              :       Parallel::PhaseActions<
     903              :           Parallel::Phase::ImportInitialData,
     904              :           tmpl::list<
     905              :               grmhd::GhValenciaDivClean::Actions::SetInitialData,
     906              :               grmhd::GhValenciaDivClean::Actions::ReceiveNumericInitialData,
     907              :               Parallel::Actions::TerminatePhase>>>;
     908              : 
     909            0 :   using dg_element_array_component = DgElementArray<
     910              :       derived_metavars,
     911              :       tmpl::flatten<tmpl::list<
     912              :           Parallel::PhaseActions<Parallel::Phase::Initialization,
     913              :                                  initialization_actions>,
     914              :           import_initial_data_action_lists,
     915              :           Parallel::PhaseActions<
     916              :               Parallel::Phase::InitializeInitialDataDependentQuantities,
     917              :               initialize_initial_data_dependent_quantities_actions>,
     918              :           Parallel::PhaseActions<
     919              :               Parallel::Phase::InitializeTimeStepperHistory,
     920              :               SelfStart::self_start_procedure<step_actions, system>>,
     921              :           Parallel::PhaseActions<Parallel::Phase::Register,
     922              :                                  tmpl::list<dg_registration_list,
     923              :                                             Parallel::Actions::TerminatePhase>>,
     924              :           Parallel::PhaseActions<Parallel::Phase::Restart,
     925              :                                  tmpl::list<dg_registration_list,
     926              :                                             Parallel::Actions::TerminatePhase>>,
     927              :           Parallel::PhaseActions<
     928              :               Parallel::Phase::WriteCheckpoint,
     929              :               tmpl::list<evolution::Actions::RunEventsAndTriggers<
     930              :                              Triggers::WhenToCheck::AtCheckpoints>,
     931              :                          Parallel::Actions::TerminatePhase>>,
     932              :           Parallel::PhaseActions<
     933              :               Parallel::Phase::Evolve,
     934              :               tmpl::flatten<tmpl::list<
     935              :                   ::domain::Actions::CheckFunctionsOfTimeAreReady<volume_dim>,
     936              :                   parameterized_deleptonization,
     937              :                   VariableFixing::Actions::FixVariables<
     938              :                       VariableFixing::FixToAtmosphere<volume_dim>>,
     939              :                   VariableFixing::Actions::FixVariables<
     940              :                       VariableFixing::LimitLorentzFactor>,
     941              :                   Actions::UpdateConservatives,
     942              :                   evolution::Actions::RunEventsAndTriggers<
     943              :                       Triggers::WhenToCheck::AtSteps>,
     944              :                   evolution::Actions::RunEventsAndTriggers<
     945              :                       Triggers::WhenToCheck::AtSlabs>,
     946              :                   Actions::ChangeSlabSize,
     947              :                   evolution::dg::Actions::ChangeFixedLtsRatio, step_actions,
     948              :                   Actions::MutateApply<AdvanceTime<>>,
     949              :                   PhaseControl::Actions::ExecutePhaseChange>>>,
     950              : 
     951              :           tmpl::conditional_t<
     952              :               UseControlSystems,
     953              :               Parallel::PhaseActions<
     954              :                   Parallel::Phase::DisableRotationControl,
     955              :                   tmpl::list<
     956              :                       control_system::Actions::SwitchGridRotationToSettle,
     957              :                       Parallel::Actions::TerminatePhase>>,
     958              :               tmpl::list<>>,
     959              : 
     960              :           Parallel::PhaseActions<
     961              :               Parallel::Phase::PostFailureCleanup,
     962              :               tmpl::list<Actions::RunEventsOnFailure<Tags::Time>,
     963              :                          Parallel::Actions::TerminatePhase>>>>>;
     964              : 
     965            0 :   struct registration
     966              :       : tt::ConformsTo<Parallel::protocols::RegistrationMetavariables> {
     967            0 :     using element_registrars =
     968              :         tmpl::map<tmpl::pair<dg_element_array_component, dg_registration_list>>;
     969              :   };
     970              : 
     971            0 :   using component_list = tmpl::flatten<tmpl::list<
     972              :       observers::Observer<derived_metavars>,
     973              :       observers::ObserverWriter<derived_metavars>,
     974              :       importers::ElementDataReader<derived_metavars>,
     975              :       control_system::control_components<derived_metavars, control_systems>,
     976              :       intrp::InterpolationTarget<derived_metavars, InterpolationTargetTags>...,
     977              :       dg_element_array_component>>;
     978              : };
     979              : 
     980            0 : struct BondiSachs : tt::ConformsTo<intrp::protocols::InterpolationTargetTag> {
     981            0 :   static std::string name() { return "BondiSachsInterpolation"; }
     982            0 :   using temporal_id = ::Tags::Time;
     983            0 :   using vars_to_interpolate_to_target =
     984              :       typename gh::System<3>::variables_tag::tags_list;
     985            0 :   using compute_target_points =
     986              :       intrp::TargetPoints::Sphere<BondiSachs, ::Frame::Inertial>;
     987            0 :   using post_interpolation_callbacks =
     988              :       tmpl::list<intrp::callbacks::DumpBondiSachsOnWorldtube<BondiSachs>>;
     989            0 :   using compute_items_on_target = tmpl::list<>;
     990              :   template <typename Metavariables>
     991            0 :   using interpolating_component =
     992              :       typename Metavariables::dg_element_array_component;
     993              : };
        

Generated by: LCOV version 2.0-1