DDC 0.9.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 <Kokkos_Assert.hpp>
8#include <Kokkos_Macros.hpp>
9
10namespace ddc {
11
12template <class DimI>
14{
15 static_assert(DimI::PERIODIC, "PeriodicExtrapolationRule requires periodic dimension");
16
17 template <class CoordType, class ChunkSpan>
18 KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const
19 {
20 KOKKOS_ASSERT(("PeriodicExtrapolationRule::operator() should never be called"))
21
22 return 0.;
23 }
24};
25
26} // namespace ddc
The top-level namespace of DDC.
KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const