HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
euler1d_gpu.h File Reference

Go to the source code of this file.

Macros

#define _Euler1DGetFlowVar_GPU(u, rho, v, e, P, gamma)
 
#define _gpuEuler1DGetFlowVar2_(u, np, rho, v, e, P, gamma)
 

Macro Definition Documentation

◆ _Euler1DGetFlowVar_GPU

#define _Euler1DGetFlowVar_GPU (   u,
  rho,
  v,
  e,
  P,
  gamma 
)
Value:
{ \
rho = u[0]; \
v = u[1] / rho; \
e = u[2]; \
P = (e - 0.5*rho*v*v) * (gamma-1.0); \
}

Definition at line 3 of file euler1d_gpu.h.

◆ _gpuEuler1DGetFlowVar2_

#define _gpuEuler1DGetFlowVar2_ (   u,
  np,
  rho,
  v,
  e,
  P,
  gamma 
)
Value:
{ \
rho = u[0]; \
v = u[np] / rho; \
e = u[2*np]; \
P = (e - 0.5*rho*v*v) * (gamma-1.0); \
}

Definition at line 11 of file euler1d_gpu.h.