SpECTRE Documentation Coverage Report
Current view: top level - Evolution/Systems/GrMhd/ValenciaDivClean/FiniteDifference - Tag.hpp Hit Total Coverage
Commit: e93d8312de4f331d36b5aa00ea83a894e26dfcb7 Lines: 4 12 33.3 %
Date: 2021-09-24 22:40:29
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 <memory>
       8             : 
       9             : #include "DataStructures/DataBox/Tag.hpp"
      10             : #include "Evolution/DgSubcell/Tags/SubcellSolver.hpp"
      11             : #include "Evolution/Systems/GrMhd/ValenciaDivClean/FiniteDifference/Reconstructor.hpp"
      12             : #include "Options/Options.hpp"
      13             : #include "Utilities/TMPL.hpp"
      14             : 
      15             : namespace grmhd::ValenciaDivClean::fd {
      16             : /// Option tags for reconstruction
      17           1 : namespace OptionTags {
      18             : /// \brief Option tag for the reconstructor
      19           1 : struct Reconstructor {
      20           0 :   using type = std::unique_ptr<fd::Reconstructor>;
      21             : 
      22           0 :   static constexpr Options::String help = {"The reconstruction scheme to use."};
      23           0 :   using group = evolution::dg::subcell::OptionTags::SubcellSolverGroup;
      24             : };
      25             : }  // namespace OptionTags
      26             : 
      27             : /// %Tags for reconstruction
      28           1 : namespace Tags {
      29             : /// \brief Tag for the reconstructor
      30           1 : struct Reconstructor : db::SimpleTag {
      31           0 :   using type = std::unique_ptr<fd::Reconstructor>;
      32           0 :   using option_tags = tmpl::list<OptionTags::Reconstructor>;
      33             : 
      34           0 :   static constexpr bool pass_metavariables = false;
      35           0 :   static type create_from_options(const type& reconstructor) noexcept {
      36             :     return reconstructor->get_clone();
      37             :   }
      38             : };
      39             : }  // namespace Tags
      40             : }  // namespace NewtonianEuler::fd

Generated by: LCOV version 1.14