Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include "DataStructures/DataBox/Tag.hpp"
7 : #include "Evolution/DgSubcell/ActiveGrid.hpp"
8 : #include "NumericalAlgorithms/SpatialDiscretization/OptionTags.hpp"
9 : #include "Options/String.hpp"
10 : #include "Utilities/TMPL.hpp"
11 :
12 : namespace evolution::dg::subcell {
13 1 : namespace OptionTags {
14 0 : struct ActiveGrid {
15 0 : using type = evolution::dg::subcell::ActiveGrid;
16 0 : static constexpr Options::String help = {
17 : "The type of the active grid. Either 'Dg' or 'Subcell'."};
18 0 : using group = SpatialDiscretization::OptionTags::SpatialDiscretizationGroup;
19 : };
20 : } // namespace OptionTags
21 1 : namespace Tags {
22 :
23 : /// The grid currently used for the DG-subcell evolution on the element.
24 1 : struct ActiveGrid : db::SimpleTag {
25 0 : using type = evolution::dg::subcell::ActiveGrid;
26 0 : using option_tags =
27 : tmpl::list<evolution::dg::subcell::OptionTags::ActiveGrid>;
28 :
29 0 : static constexpr bool pass_metavariables = false;
30 0 : static type create_from_options(const type option) { return option; }
31 : };
32 : } // namespace Tags
33 : } // namespace evolution::dg::subcell
|