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/Reconstructor.hpp" 11 : #include "Evolution/DgSubcell/Tags/SubcellSolver.hpp" 12 : #include "Evolution/Systems/Burgers/FiniteDifference/Reconstructor.hpp" 13 : #include "Options/String.hpp" 14 : #include "Utilities/TMPL.hpp" 15 : 16 : namespace Burgers::fd { 17 0 : namespace OptionTags { 18 : /*! 19 : * \brief Holds the subcell reconstructor in the input file 20 : */ 21 1 : struct Reconstructor { 22 0 : using type = std::unique_ptr<fd::Reconstructor>; 23 : 24 0 : static constexpr Options::String help = {"The reconstruction scheme to use."}; 25 0 : using group = evolution::dg::subcell::OptionTags::SubcellSolverGroup; 26 : }; 27 : } // namespace OptionTags 28 : 29 0 : namespace Tags { 30 : /*! 31 : * \brief Tag for the reconstructor 32 : */ 33 1 : struct Reconstructor : db::SimpleTag, 34 : evolution::dg::subcell::Tags::Reconstructor { 35 0 : using type = std::unique_ptr<fd::Reconstructor>; 36 0 : using option_tags = tmpl::list<OptionTags::Reconstructor>; 37 : 38 0 : static constexpr bool pass_metavariables = false; 39 0 : static type create_from_options(const type& reconstructor) { 40 : return reconstructor->get_clone(); 41 : } 42 : }; 43 : } // namespace Tags 44 : } // namespace Burgers::fd