DDC 0.0.0

a discrete domain computation library

ddc::ConstantExtrapolationRule< DimI > Struct Template Reference

A functor for describing a spline boundary value by a constant extrapolation for 1D evaluator. More...

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.
 

Detailed Description

template<class DimI>
struct ddc::ConstantExtrapolationRule< DimI >

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.

Constructor & Destructor Documentation

◆ ConstantExtrapolationRule()

template<class DimI >
ddc::ConstantExtrapolationRule< DimI >::ConstantExtrapolationRule ( ddc::Coordinate< DimI > eval_pos)
inlineexplicit

Instantiate a ConstantExtrapolationRule.

The boundary value will be the same as at the coordinate eval_pos given.

Parameters
[in]eval_posCoordinate inside the domain where we will evaluate each points outside the domain.

Member Function Documentation

◆ operator()()

Get the value of the function on B-splines at a coordinate outside the domain.

Parameters
[in]posThe coordinate where we want to evaluate the function on B-splines.
[in]spline_coefThe coefficients of the function on B-splines.
Returns
A double with the value of the function on B-splines evaluated at the coordinate.

The documentation for this struct was generated from the following file: