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

Generated by: LCOV version 1.14