DDC 0.1.0
Loading...
Searching...
No Matches
ddc::ConstantExtrapolationRule< DimI > Struct Template Reference

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

#include <constant_extrapolation_rule.hpp>

Collaboration diagram for ddc::ConstantExtrapolationRule< DimI >:
Collaboration graph

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.

Definition at line 29 of file constant_extrapolation_rule.hpp.

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.

Definition at line 43 of file constant_extrapolation_rule.hpp.

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.

Definition at line 56 of file constant_extrapolation_rule.hpp.


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