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

Generated by: LCOV version 2.0-1