DDC
0.1.0
Loading...
Searching...
No Matches
null_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_Macros
.
hpp
>
8
9
namespace
ddc
{
10
11
/**
12
* @brief A functor describing a null extrapolation boundary value for 1D spline evaluator.
13
*/
14
struct
NullExtrapolationRule
15
{
16
/**
17
* @brief Evaluates the spline at a coordinate outside of the domain.
18
*
19
* @return A double with the value of the function outside the domain (here, 0.).
20
*/
21
template
<
class
CoordType,
class
ChunkSpan>
22
KOKKOS_FUNCTION
double
operator
()(CoordType, ChunkSpan)
const
23
{
24
return
0.0;
25
}
26
};
27
28
}
// namespace ddc
ddc
The top-level namespace of DDC.
Definition
aligned_allocator.hpp:11
ddc::NullExtrapolationRule
A functor describing a null extrapolation boundary value for 1D spline evaluator.
Definition
null_extrapolation_rule.hpp:15
ddc::NullExtrapolationRule::operator()
KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const
Evaluates the spline at a coordinate outside of the domain.
Definition
null_extrapolation_rule.hpp:22
include
ddc
kernels
splines
null_extrapolation_rule.hpp
Generated by
1.9.8