36 :
rho(0),
m(0),
E(0) {
42 template<
class ValueType>
46 :
rho(rho_),
m(m_.template convert<
real>()),
E(E_) {
54 static_assert(nsd == 3 ||
sizeof(T) == 0,
"Only for 3 dimensions!");
60 static_assert(nsd == 2 ||
sizeof(T) == 0,
"Only for 3 dimensions!");
66 static_assert(nsd == 1 ||
sizeof(T) == 0,
"Only for 3 dimensions!");
75 assert(index < nsd + 2);
76 return ((
real*)
this)[index];
80 assert(index < nsd + 2);
81 return ((
real*)
this)[index];
90 return rho == other.
rho &&
m == other.
m &&
E == other.
E;
141 :
rho(in[0]),
m(in[1], in[2], in[3]),
E(in[4]) {
148 :
rho(in[0]),
m(in[1], in[2]),
E(in[3]) {
155 :
rho(in[0]),
m(in[1]),
E(in[2]) {
__device__ __host__ real & operator[](size_t index)
Definition: ConservedVariables.hpp:79
Definition: types.hpp:104
__device__ __host__ ConservedVariables(T rho_, T mx, T E)
Definition: ConservedVariables.hpp:64
#define __host__
Definition: types.hpp:46
Definition: ConservedVariables.hpp:30
double real
Definition: types.hpp:65
__device__ __host__ ConservedVariables(T rho_, T mx, T my, T E)
Definition: ConservedVariables.hpp:58
__device__ __host__ ConservedVariables(real rho_, const typename Types< nsd >::template vec< ValueType > &m_, real E_)
Definition: ConservedVariables.hpp:43
Types< nsd+2 >::rvec state_vector
Definition: ConservedVariables.hpp:33
__device__ __host__ ConservedVariables()
Definition: ConservedVariables.hpp:35
__device__ __host__ real operator[](size_t index) const
Definition: ConservedVariables.hpp:74
rvec m
Definition: ConservedVariables.hpp:93
#define static_assert(x, y)
Definition: types.hpp:52
Types< nsd >::rvec rvec
Definition: ConservedVariables.hpp:32
__device__ __host__ ConservedVariables< nsd > operator*(real a, const ConservedVariables< nsd > &b)
Definition: ConservedVariables.hpp:123
#define __device__
Definition: types.hpp:45
real rho
Definition: ConservedVariables.hpp:92
Various utility functions to implement the tecno flux.
Definition: types.hpp:30
__device__ static __host__ constexpr size_t size()
Definition: ConservedVariables.hpp:84
__device__ __host__ ConservedVariables(T rho_, T mx, T my, T mz, T E)
Definition: ConservedVariables.hpp:52
real E
Definition: ConservedVariables.hpp:94
__device__ __host__ bool operator==(const ConservedVariables &other) const
Definition: ConservedVariables.hpp:88