27 template<
class Equation>
33 static const std::string
name;
35 template<
int direction>
37 const typename Equation::AllVariables& left,
38 const typename Equation::AllVariables& right,
39 typename Equation::ConservedVariables& F) {
40 static_assert(
sizeof(Equation) == 0,
"Lax-Friedrich flux not implemented");
46 return fmax(eq.template computeWaveSpeed<direction>(left, left),
47 eq.template computeWaveSpeed<direction>(right, right));
Definition: LaxFriedrichs.hpp:28
#define __host__
Definition: types.hpp:46
double real
Definition: types.hpp:65
static const std::string name
name is "laxfriedrichs"
Definition: LaxFriedrichs.hpp:33
__device__ static __host__ real computeFlux(const Equation &eq, const typename Equation::AllVariables &left, const typename Equation::AllVariables &right, typename Equation::ConservedVariables &F)
Definition: LaxFriedrichs.hpp:36
#define static_assert(x, y)
Definition: types.hpp:52
#define __device__
Definition: types.hpp:45
Various utility functions to implement the tecno flux.
Definition: types.hpp:30