53 const size_t stride,
const unsigned coordDim,
const TData *norms,
54 TData *bndPtr,
const unsigned int streamID = 0)
58 Nektar::parallel_for<ExecSpace>(
60 TData momDotN = TData(0.0);
61 for (
unsigned d = 1; d <= coordDim; ++d)
63 momDotN += bndPtr[d * stride + i] * norms[(d - 1) * stride + i];
66 for (
unsigned d = 1; d <= coordDim; ++d)
68 bndPtr[d * stride + i] -=
69 TData(2.0) * momDotN * norms[(d - 1) * stride + i];
static NEK_FORCE_INLINE void MirrorNormalMomentumBlock(const size_t stride, const unsigned coordDim, const TData *norms, TData *bndPtr, const unsigned int streamID=0)
Mirror the momentum about the boundary plane.