34 :
rho(0),
u(0),
p(0) {
39 : rho(rho), u(u), p(p) {
46 static_assert(nsd == 3 ||
sizeof(T) == 0,
"Only for 3 dimensions!");
52 static_assert(nsd == 2 ||
sizeof(T) == 0,
"Only for 3 dimensions!");
real rho
rho is the density
Definition: PrimitiveVariables.hpp:58
Definition: types.hpp:104
__device__ __host__ PrimitiveVariables(T rho, T ux, T uy, T p)
Definition: PrimitiveVariables.hpp:50
__device__ __host__ PrimitiveVariables(T rho, T ux, T uy, T uz, T p)
Definition: PrimitiveVariables.hpp:44
#define __host__
Definition: types.hpp:46
double real
Definition: types.hpp:65
int ux
Definition: sodshocktube.py:4
Types< nsd >::rvec rvec
Definition: PrimitiveVariables.hpp:30
Definition: PrimitiveVariables.hpp:28
__device__ __host__ PrimitiveVariables()
Definition: PrimitiveVariables.hpp:33
#define static_assert(x, y)
Definition: types.hpp:52
rvec u
u is the velocity
Definition: PrimitiveVariables.hpp:63
__device__ __host__ ConservedVariables< nsd > operator*(real a, const ConservedVariables< nsd > &b)
Definition: ConservedVariables.hpp:123
#define __device__
Definition: types.hpp:45
__device__ __host__ PrimitiveVariables(real rho, rvec u, real p)
Definition: PrimitiveVariables.hpp:38
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
real p
p is the pressure
Definition: PrimitiveVariables.hpp:68