44#include <SolverCore/RiemannSolver/RiemannSolverKernels.hpp>
77template <
template <
typename,
typename,
unsigned int>
typename RiemannKernel,
78 typename EoSParamType,
typename ExecSpace,
unsigned int NDIM,
81 const EoSParamType &EoS,
const size_t blksize,
const TData *normalPtr,
82 const TData *fwdPtr,
const TData *bwdPtr, TData *fluxPtr,
83 const unsigned int streamID = 0)
92 constexpr unsigned int vec_width =
93 (std::is_same_v<ExecSpace, NektarSpaces::AVX>)
100 "The block size is not a multiple of the vector width.");
101 const size_t groupsize = blksize / vec_width;
103 Nektar::parallel_for<ExecSpace>(
105 RiemannKernel<ExecSpace, EoSParamType, NDIM>()(
106 EoS, groupsize,
reinterpret_cast<const vec_t *
>(fwdPtr) + i,
107 reinterpret_cast<const vec_t *
>(bwdPtr) + i,
108 reinterpret_cast<const vec_t *
>(normalPtr) + i,
109 reinterpret_cast<vec_t *
>(fluxPtr) + i);
127template <
template <
typename,
typename,
unsigned int>
typename RiemannKernel,
128 typename ExecSpace,
typename EoSParamType,
unsigned int NDIM>
131 static constexpr unsigned numVar = NDIM + 2;
137 template <
typename TData>
139 [[maybe_unused]]
const TData *second0,
140 [[maybe_unused]]
const TData *second1,
142 [[maybe_unused]]
const TData penalty,
145 RiemannKernel<ExecSpace, EoSParamType, NDIM>()(
EoS, 1, fwd, bwd, normal,
#define NEK_HOSTDEVICE_INLINE
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
static NEK_FORCE_INLINE void RiemannKernelLauncher(const EoSParamType &EoS, const size_t blksize, const TData *normalPtr, const TData *fwdPtr, const TData *bwdPtr, TData *fluxPtr, const unsigned int streamID=0)
Solve the Riemann problem on one padded trace block, in Cartesian components through the trace normal...
static void LoopExecutionSetStreamID(const unsigned int streamID)
tinysimd::simd< NekDouble > vec_t
typename abi< ScalarType, width >::type simd
The inviscid flux of one trace point, as the in-place trace flux kernels take it (the point flux of S...
static constexpr unsigned numVar
NEK_HOSTDEVICE_INLINE void operator()(const TData *fwd, const TData *bwd, const TData *second0, const TData *second1, const TData *normal, const TData penalty, TData *flux) const
static constexpr unsigned secondPerVar
static constexpr bool usesPenalty