Define constant extrapolation rule for onion shape geometries. More...
Public Member Functions | |
ConstantExtrapolationRuleOnion (Coord< R_min > const &r_min, Coord< R_max > const &r_max) | |
Instantiate a ConstantExtrapolationRuleOnion. | |
template<class... Dim, template< typename P > typename SplinesOnPatch, class... Patches> | |
KOKKOS_FUNCTION double | operator() (Coord< Dim... > const &coord_extrap, MultipatchField< SplinesOnPatch, Patches... > const &patches_splines, int const out_of_bounds_idx) const |
Evaluate at a given outside coordinate. | |
Define constant extrapolation rule for onion shape geometries.
Struct usefull for the MultipatchSplineEvaluator types.
PatchLocator | A patch locator specialised for onion shape geometries. |
|
inlineexplicit |
Instantiate a ConstantExtrapolationRuleOnion.
The R1 and R2 templates are needed for GPU.
R1 | Continuous dimension of the minimum radial coordinate of the domain. |
R2 | Continuous dimension of the maximun radial coordinate of the domain. |
[in] | r_min | Minimum radial coordinate of the domain. |
[in] | r_max | Maximum radial coordinate of the domain. |
|
inline |
Evaluate at a given outside coordinate.
Dim | Continuous dimensions where the given coordinate is defined. |
SplinesOnPatch | Field of spline coefficients template on the Patch. |
Patches | Patch types. |
[in] | coord_extrap | Coordinate where we want to evaluate. |
[in] | patches_splines | Splines stored in a MultipatchType. |
[in] | out_of_bounds_idx | Index of the localisation of the coordinate. It is supposed to be negative to be considered as outside of the domain. |