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 <vector>
9 :
10 : /// \cond
11 : template <size_t VolumeDim>
12 : class ElementId;
13 : /// \endcond
14 :
15 : /// \ingroup ComputationalDomainGroup
16 : /// \brief Create the `ElementId`s of the a single Block
17 : template <size_t VolumeDim>
18 1 : std::vector<ElementId<VolumeDim>> initial_element_ids(
19 : size_t block_id, std::array<size_t, VolumeDim> initial_ref_levs,
20 : size_t grid_index = 0);
21 :
22 : /// \ingroup ComputationalDomainGroup
23 : /// \brief Create the `ElementId`s of the initial computational domain.
24 : template <size_t VolumeDim>
25 1 : std::vector<ElementId<VolumeDim>> initial_element_ids(
26 : const std::vector<std::array<size_t, VolumeDim>>& initial_refinement_levels,
27 : size_t grid_index = 0);
|