12#define DG_DEVICE __host__ __device__
26DG_DEVICE static inline double one(
double x,
double y,
double z) {
return 1;}
35DG_DEVICE static inline double zero(
double x,
double y,
double z) {
return 0.;}
66DG_DEVICE static inline float one(
float x,
float y,
float z) {
return 1;}
75DG_DEVICE static inline float zero(
float x,
float y,
float z) {
return 0.;}
#define DG_DEVICE
Expands to __host__ __device__ if compiled with nvcc else is empty.
Definition: functions.h:9
static DG_DEVICE double cooX1d(double x)
Definition: functions.h:38
static DG_DEVICE double cooRZP2X(double R, double Z, double P)
Definition: functions.h:53
static DG_DEVICE double cooY2d(double x, double y)
Definition: functions.h:45
static DG_DEVICE double cooRZP2Y(double R, double Z, double P)
Definition: functions.h:55
static DG_DEVICE double cooZ3d(double x, double y, double z)
Definition: functions.h:49
static DG_DEVICE double cooY3d(double x, double y, double z)
Definition: functions.h:47
static DG_DEVICE double cooRZP2Z(double R, double Z, double P)
Definition: functions.h:57
static DG_DEVICE double one(double x)
Definition: functions.h:20
static DG_DEVICE double zero(double x)
Definition: functions.h:29
static DG_DEVICE double cooX2d(double x, double y)
Definition: functions.h:40
static DG_DEVICE double cooX3d(double x, double y, double z)
Definition: functions.h:42
This is the namespace for all functions and classes defined and used by the discontinuous Galerkin li...