DDC
0.0.0
a
d
iscrete
d
omain
c
omputation library
About
Commented example
API reference
Contribute on Github
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 "view.hpp"
8
9
namespace
ddc
{
10
11
template
<
class
DimI>
12
struct
PeriodicExtrapolationRule
13
{
14
static_assert
(DimI::PERIODIC,
"PeriodicExtrapolationRule requires periodic dimension"
);
15
16
template
<
class
CoordType,
class
ChunkSpan>
17
KOKKOS_FUNCTION
double
operator()
(
CoordType
,
ChunkSpan
)
const
18
{
19
assert
(
"PeriodicExtrapolationRule::operator() should never be called"
);
20
21
return
0.;
22
}
23
};
24
}
// namespace ddc
ddc
The top-level namespace of DDC.
Definition
aligned_allocator.hpp:11
ddc::enable_chunk
constexpr bool enable_chunk
Definition
chunk_traits.hpp:16
ddc::ChunkSpan
Definition
chunk_span.hpp:30
ddc::PeriodicExtrapolationRule
Definition
periodic_extrapolation_rule.hpp:13
ddc::PeriodicExtrapolationRule::operator()
KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const
Definition
periodic_extrapolation_rule.hpp:17