Line data Source code
1 0 : // Distributed under the MIT License.
2 : // See LICENSE.txt for details.
3 :
4 : #pragma once
5 :
6 : #include <array>
7 : #include <cstddef>
8 : #include <memory>
9 : #include <vector>
10 :
11 : #include "DataStructures/DataBox/Tag.hpp"
12 : #include "Domain/Creators/DomainCreator.hpp"
13 : #include "Domain/Creators/OptionTags.hpp"
14 : #include "Domain/Domain.hpp"
15 : #include "Utilities/TMPL.hpp"
16 :
17 : namespace domain::Tags {
18 : /// \ingroup DataBoxTagsGroup
19 : /// \ingroup ComputationalDomainGroup
20 : /// The initial refinement level per dimension for all elements in each block of
21 : /// the initial computational domain
22 : template <size_t Dim>
23 1 : struct InitialRefinementLevels : db::SimpleTag {
24 0 : using type = std::vector<std::array<size_t, Dim>>;
25 0 : using option_tags = tmpl::list<domain::OptionTags::DomainCreator<Dim>>;
26 :
27 0 : static constexpr bool pass_metavariables = false;
28 0 : static std::vector<std::array<size_t, Dim>> create_from_options(
29 : const std::unique_ptr<::DomainCreator<Dim>>& domain_creator);
30 : };
31 :
32 : } // namespace domain::Tags
|