StencilStream v3.0.0
SYCL-based Stencil Simulation Framework Targeting FPGAs
Loading...
Searching...
No Matches
BaseTransitionFunction.hpp
Go to the documentation of this file.
1/*
2 * Copyright © 2020-2024 Jan-Oliver Opdenhövel, Paderborn Center for Parallel Computing, Paderborn
3 * University
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the “Software”), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 * SOFTWARE.
22 */
23#pragma once
24#include "Concepts.hpp"
25#include <variant>
26
27namespace stencil {
28
41 public:
42 using TimeDependentValue = std::monostate;
43
44 static constexpr uindex_t stencil_radius = 1;
45 static constexpr uindex_t n_subiterations = 1;
46
47 std::monostate get_time_dependent_value(uindex_t i_iteration) const { return std::monostate(); }
48};
49
50} // namespace stencil
Base class for transition functions that disables advanced features.
Definition BaseTransitionFunction.hpp:40
static constexpr uindex_t stencil_radius
Definition BaseTransitionFunction.hpp:44
static constexpr uindex_t n_subiterations
Definition BaseTransitionFunction.hpp:45
std::monostate TimeDependentValue
Definition BaseTransitionFunction.hpp:42
std::monostate get_time_dependent_value(uindex_t i_iteration) const
Definition BaseTransitionFunction.hpp:47
Definition AccessorSubscript.hpp:24
BOOST_PP_CAT(BOOST_PP_CAT(uint, STENCIL_INDEX_WIDTH), _t) uindex_t
An unsigned integer of configurable width.
Definition Index.hpp:42