Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Typedefs | Functions | Variables
advection_const_basis/common.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  is_cuda_space< ExecSpace >
 

Typedefs

typedef Sacado::Fad::SFad
< double, fad_dim
SFadType
 
typedef Sacado::Fad::SLFad
< double, fad_dim
SLFadType
 
typedef Sacado::Fad::DFad< double > DFadType
 

Functions

template<typename scalar >
scalar generate_fad (const size_t n0, const size_t n1, const size_t n2, const size_t n3, const int fad_size, const size_t i0, const size_t i1, const size_t i2, const size_t i3, const int i_fad)
 
template<typename WgbView , typename WbsView , typename FluxView , typename SrcView , typename ResidualView >
void init_fad (const WgbView &wgb, const WbsView &wbs, const FluxView &flux, const SrcView &src, const ResidualView &residual)
 
template<typename WgbView , typename WbsView , typename FluxView , typename SrcView , typename ResidualView >
void init_array (const WgbView &wgb, const WbsView &wbs, const FluxView &flux, const SrcView &src, const ResidualView &residual)
 
template<typename View1 , typename View2 >
std::enable_if
< !Kokkos::is_view_fad< View2 >
::value, bool >::type 
check (const View1 &v_gold, const View2 &v, const double tol)
 
template<typename View1 , typename View2 >
std::enable_if
< Kokkos::is_view_fad< View2 >
::value, bool >::type 
check (const View1 &v_gold, const View2 &v, const double tol)
 
template<typename FluxView , typename WgbView , typename SrcView , typename WbsView >
Kokkos::View< double
***, typename
FluxView::execution_space > 
compute_gold_residual (const FluxView &flux, const WgbView &wgb, const SrcView &src, const WbsView &wbs, typename std::enable_if< Kokkos::is_view_fad< FluxView >::value >::type *=0)
 
template<typename FluxView , typename WgbView , typename SrcView , typename WbsView >
Kokkos::View< double
***, typename
FluxView::execution_space > 
compute_gold_residual (const FluxView &flux, const WgbView &wgb, const SrcView &src, const WbsView &wbs, typename std::enable_if< !Kokkos::is_view_fad< FluxView >::value >::type *=0)
 
template<typename FluxView , typename WgbView , typename SrcView , typename WbsView , typename ResidualView >
void check_residual (const FluxView &flux, const WgbView &wgb, const SrcView &src, const WbsView &wbs, const ResidualView &residual)
 

Variables

const int fad_dim = 50
 

Typedef Documentation

Definition at line 13 of file advection_const_basis/common.hpp.

Definition at line 14 of file advection_const_basis/common.hpp.

typedef Sacado::Fad::DFad<double> DFadType

Definition at line 15 of file advection_const_basis/common.hpp.

Function Documentation

template<typename scalar >
scalar generate_fad ( const size_t  n0,
const size_t  n1,
const size_t  n2,
const size_t  n3,
const int  fad_size,
const size_t  i0,
const size_t  i1,
const size_t  i2,
const size_t  i3,
const int  i_fad 
)

Definition at line 31 of file advection_const_basis/common.hpp.

template<typename WgbView , typename WbsView , typename FluxView , typename SrcView , typename ResidualView >
void init_fad ( const WgbView &  wgb,
const WbsView &  wbs,
const FluxView &  flux,
const SrcView &  src,
const ResidualView &  residual 
)

Definition at line 50 of file advection_const_basis/common.hpp.

template<typename WgbView , typename WbsView , typename FluxView , typename SrcView , typename ResidualView >
void init_array ( const WgbView &  wgb,
const WbsView &  wbs,
const FluxView &  flux,
const SrcView &  src,
const ResidualView &  residual 
)

Definition at line 102 of file advection_const_basis/common.hpp.

template<typename View1 , typename View2 >
std::enable_if< !Kokkos::is_view_fad<View2>::value, bool>::type check ( const View1 &  v_gold,
const View2 &  v,
const double  tol 
)

Definition at line 154 of file advection_const_basis/common.hpp.

template<typename View1 , typename View2 >
std::enable_if< Kokkos::is_view_fad<View2>::value, bool>::type check ( const View1 &  v_gold,
const View2 &  v,
const double  tol 
)

Definition at line 190 of file advection_const_basis/common.hpp.

template<typename FluxView , typename WgbView , typename SrcView , typename WbsView >
Kokkos::View<double***,typename FluxView::execution_space> compute_gold_residual ( const FluxView &  flux,
const WgbView &  wgb,
const SrcView &  src,
const WbsView &  wbs,
typename std::enable_if< Kokkos::is_view_fad< FluxView >::value >::type *  = 0 
)

Definition at line 227 of file advection_const_basis/common.hpp.

template<typename FluxView , typename WgbView , typename SrcView , typename WbsView >
Kokkos::View<double***,typename FluxView::execution_space> compute_gold_residual ( const FluxView &  flux,
const WgbView &  wgb,
const SrcView &  src,
const WbsView &  wbs,
typename std::enable_if< !Kokkos::is_view_fad< FluxView >::value >::type *  = 0 
)

Definition at line 281 of file advection_const_basis/common.hpp.

template<typename FluxView , typename WgbView , typename SrcView , typename WbsView , typename ResidualView >
void check_residual ( const FluxView &  flux,
const WgbView &  wgb,
const SrcView &  src,
const WbsView &  wbs,
const ResidualView &  residual 
)

Definition at line 319 of file advection_const_basis/common.hpp.

Variable Documentation

const int fad_dim = 50

Definition at line 12 of file advection_const_basis/common.hpp.