XGCa
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Member Functions | Private Attributes | List of all members
CubInterp< Device > Class Template Reference

#include <cub_interp.hpp>

Public Member Functions

 CubInterp (OneDCoeff *one_d_cub_acoef_in, int ncoeff_in, double max_psi_in, double min_psi_in, double one_d_cub_dpsi_inv_in)
 
 CubInterp ()
 
KOKKOS_INLINE_FUNCTION double value (double psi) const
 
KOKKOS_INLINE_FUNCTION double derivative (double psi) const
 

Private Attributes

double max_psi
 max psi cutoff for the interpolation More...
 
double min_psi
 min psi cutoff for the interpolation More...
 
double one_d_cub_dpsi_inv
 Increment dpsi on which one_d_cub_acoef is mapped. More...
 
int ncoeff
 Length of one_d_cub_acoef. More...
 
Kokkos::View< OneDCoeff
*, Kokkos::LayoutRight, Device > 
one_d_cub_acoef
 I data for interpolation. More...
 

Constructor & Destructor Documentation

template<class Device >
CubInterp< Device >::CubInterp ( OneDCoeff one_d_cub_acoef_in,
int  ncoeff_in,
double  max_psi_in,
double  min_psi_in,
double  one_d_cub_dpsi_inv_in 
)

Constructor for CubInterp class

template<class Device >
CubInterp< Device >::CubInterp ( )
inline

Member Function Documentation

template<class Device >
KOKKOS_INLINE_FUNCTION double CubInterp< Device >::derivative ( double  psi) const

1D cubic spline interpolation

Parameters
[in]xInput
[in]iderivOrder of derivative to be returned (0,1,2)
Returns
The interpolation
template<class Device >
KOKKOS_INLINE_FUNCTION double CubInterp< Device >::value ( double  psi) const

1D cubic spline interpolation

Parameters
[in]xInput
[in]iderivOrder of derivative to be returned (0,1,2)
Returns
The interpolation

Here is the caller graph for this function:

Member Data Documentation

template<class Device >
double CubInterp< Device >::max_psi
private

max psi cutoff for the interpolation

template<class Device >
double CubInterp< Device >::min_psi
private

min psi cutoff for the interpolation

template<class Device >
int CubInterp< Device >::ncoeff
private

Length of one_d_cub_acoef.

template<class Device >
Kokkos::View<OneDCoeff*,Kokkos::LayoutRight,Device> CubInterp< Device >::one_d_cub_acoef
private

I data for interpolation.

template<class Device >
double CubInterp< Device >::one_d_cub_dpsi_inv
private

Increment dpsi on which one_d_cub_acoef is mapped.


The documentation for this class was generated from the following files: