Inactive.hpp
1 // Distributed under the MIT License.
2 // See LICENSE.txt for details.
3 
4 #pragma once
5 
6 #include "DataStructures/DataBox/PrefixHelpers.hpp"
7 #include "DataStructures/DataBox/Tag.hpp"
8 #include "DataStructures/VariablesTag.hpp"
9 #include "Evolution/DgSubcell/ActiveGrid.hpp"
10 
11 /// \cond
12 template <typename TagsList>
13 class Variables;
14 /// \endcond
15 
17 /// Mark a tag as holding data for the inactive grid.
18 ///
19 /// As an example, if the evolution in the element is currently being done on
20 /// the DG grid then the subcell evolved variables would be in
21 /// `Inactive<evolved_vars>`.
22 template <typename Tag>
24  using tag = Tag;
25  using type = typename tag::type;
26 };
27 
28 /// \copydoc Inactive
29 template <typename TagList>
32  using type = Variables<db::wrap_tags_in<Inactive, TagList>>;
33 };
34 } // namespace evolution::dg::subcell::Tags
db::PrefixTag
Mark a struct as a prefix tag by inheriting from this.
Definition: Tag.hpp:103
Tags::Variables
Definition: VariablesTag.hpp:21
db::SimpleTag
Mark a struct as a simple tag by inheriting from this.
Definition: Tag.hpp:36
evolution::dg::subcell::Tags::Inactive
Mark a tag as holding data for the inactive grid.
Definition: Inactive.hpp:23
evolution::dg::subcell::Tags
Tags for the DG-subcell solver
Definition: ActiveGrid.hpp:9