A functor for describing a spline boundary value by a constant extrapolation for 1D evaluator. More...
#include <constant_extrapolation_rule.hpp>
Public Member Functions | |
ConstantExtrapolationRule (ddc::Coordinate< DimI > eval_pos) | |
Instantiate a ConstantExtrapolationRule. | |
template<class CoordType , class BSplines , class Layout , class MemorySpace > | |
KOKKOS_FUNCTION double | operator() (CoordType pos, ddc::ChunkSpan< double const, ddc::DiscreteDomain< BSplines >, Layout, MemorySpace > const spline_coef) const |
Get the value of the function on B-splines at a coordinate outside the domain. | |
A functor for describing a spline boundary value by a constant extrapolation for 1D evaluator.
To define the value of a function on B-splines out of the domain, we here use a constant extrapolation on the edge.
Definition at line 29 of file constant_extrapolation_rule.hpp.
|
inlineexplicit |
Instantiate a ConstantExtrapolationRule.
The boundary value will be the same as at the coordinate eval_pos given.
[in] | eval_pos | Coordinate inside the domain where we will evaluate each points outside the domain. |
Definition at line 43 of file constant_extrapolation_rule.hpp.
|
inline |
Get the value of the function on B-splines at a coordinate outside the domain.
[in] | pos | The coordinate where we want to evaluate the function on B-splines. |
[in] | spline_coef | The coefficients of the function on B-splines. |
Definition at line 56 of file constant_extrapolation_rule.hpp.