Discontinuous Galerkin Library
#include "dg/algorithm.h"
functions.h File Reference

Some utility functions for the dg::evaluate routines. More...

Go to the source code of this file.

Namespaces

namespace  dg
 This is the namespace for all functions and classes defined and used by the discontinuous Galerkin library.
 

Macros

#define DG_DEVICE
 Expands to __host__ __device__ if compiled with nvcc else is empty. More...
 

Functions

static DG_DEVICE double dg::one (double x)
 \( f(x) = 1\) More...
 
static DG_DEVICE double dg::one (double x, double y)
 \( f(x,y) = 1\) More...
 
static DG_DEVICE double dg::one (double x, double y, double z)
 \( f(x,y,z) = 1\) More...
 
static DG_DEVICE double dg::zero (double x)
 \( f(x) = 0\) More...
 
static DG_DEVICE double dg::zero (double x, double y)
 \( f(x,y) = 0\) More...
 
static DG_DEVICE double dg::zero (double x, double y, double z)
 \( f(x,y,z) = 0\) More...
 
static DG_DEVICE double dg::cooX1d (double x)
 \( f(x) = x\) More...
 
static DG_DEVICE double dg::cooX2d (double x, double y)
 \( f(x,y) = x\) More...
 
static DG_DEVICE double dg::cooX3d (double x, double y, double z)
 \( f(x,y,z) = x\) More...
 
static DG_DEVICE double dg::cooY2d (double x, double y)
 \( f(x,y) = y\) More...
 
static DG_DEVICE double dg::cooY3d (double x, double y, double z)
 \( f(x,y,z) = y\) More...
 
static DG_DEVICE double dg::cooZ3d (double x, double y, double z)
 \( f(x,y,z) = z\) More...
 
static DG_DEVICE double dg::cooRZP2X (double R, double Z, double P)
 \( x = R\sin(\varphi)\) More...
 
static DG_DEVICE double dg::cooRZP2Y (double R, double Z, double P)
 \( y = R\cos(\varphi)\) More...
 
static DG_DEVICE double dg::cooRZP2Z (double R, double Z, double P)
 \( z = Z\) More...
 
static DG_DEVICE float dg::one (float x)
 \( f(x) = 1\) More...
 
static DG_DEVICE float dg::one (float x, float y)
 \( f(x,y) = 1\) More...
 
static DG_DEVICE float dg::one (float x, float y, float z)
 \( f(x,y,z) = 1\) More...
 
static DG_DEVICE float dg::zero (float x)
 \( f(x) = 0\) More...
 
static DG_DEVICE float dg::zero (float x, float y)
 \( f(x,y) = 0\) More...
 
static DG_DEVICE float dg::zero (float x, float y, float z)
 \( f(x,y,z) = 0\) More...
 

Detailed Description

Some utility functions for the dg::evaluate routines.

Macro Definition Documentation

◆ DG_DEVICE

#define DG_DEVICE

Expands to __host__ __device__ if compiled with nvcc else is empty.