7#include "../backend/config.h"
17template<
class T,
class ...Ts>
19T
zero(T x, Ts ...xs){
return T(0);}
22template<
class T,
class ...Ts>
24T
one(T x, Ts ...xs){
return T(1);}
29 template<
class T,
class ...Ts>
37 template<
class T,
class ...Ts>
52 template<
class T,
class ...Ts>
DG_DEVICE double cooY3d(double x, double y, double z)
Definition functions.h:69
DG_DEVICE double cooX3d(double x, double y, double z)
Definition functions.h:64
DG_DEVICE double cooZ3d(double x, double y, double z)
Definition functions.h:71
DG_DEVICE double cooRZP2Z(double R, double Z, double P)
Definition functions.h:79
DG_DEVICE T one(T x, Ts ...xs)
Definition functions.h:24
DG_DEVICE double cooX1d(double x)
Definition functions.h:60
DG_DEVICE double cooRZP2X(double R, double Z, double P)
Definition functions.h:75
DG_DEVICE T zero(T x, Ts ...xs)
This enum can be used in dg::evaluate.
Definition functions.h:19
DG_DEVICE double cooY2d(double x, double y)
Definition functions.h:67
DG_DEVICE double cooX2d(double x, double y)
Definition functions.h:62
DG_DEVICE double cooRZP2Y(double R, double Z, double P)
Definition functions.h:77
#define DG_DEVICE
Expands to __host__ __device__ if compiled with nvcc else is empty.
Definition dg_doc.h:378
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...
Definition functions.h:44
DG_DEVICE T operator()(T x, Ts ...xs) const
Definition functions.h:54
CONSTANT(double cte)
Construct with a value.
Definition functions.h:50
Definition functions.h:36
DG_DEVICE T operator()(T x, Ts ...xs) const
Definition functions.h:39
Definition functions.h:28
DG_DEVICE T operator()(T x, Ts ...xs) const
Definition functions.h:31