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
9namespace ddc {
10
11/**
12 * @brief A functor describing a null extrapolation boundary value for 1D spline evaluator.
13 */
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
The top-level namespace of DDC.
A functor describing a null extrapolation boundary value for 1D spline evaluator.
KOKKOS_FUNCTION double operator()(CoordType, ChunkSpan) const
Evaluates the spline at a coordinate outside of the domain.