DDC 0.1.0
Loading...
Searching...
No Matches
periodic_extrapolation_rule.hpp
1// Copyright (C) The DDC development team, see COPYRIGHT.md file
2//
3// SPDX-License-Identifier: MIT
4
5#pragma once
6
7#include <cassert>
8
9#include <Kokkos_Macros.hpp>
10
11namespace ddc {
12
13template <class DimI>
15{
16 static_assert(DimI::PERIODIC, "PeriodicExtrapolationRule requires periodic dimension");
17
18 template <class CoordType, class ChunkSpan>
19 KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const
20 {
21 assert("PeriodicExtrapolationRule::operator() should never be called");
22
23 return 0.;
24 }
25};
26
27} // namespace ddc
The top-level namespace of DDC.
KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const