23#ifndef CPU_1D_PPM_NU_H
24#define CPU_1D_PPM_NU_H
46 const Vec one_sixth(1.0/6.0);
47 m_face =
select((p_face - m_face) * (values[
k] - 0.5 * (m_face + p_face)) >
48 (p_face - m_face)*(p_face - m_face) * one_sixth,
49 3 * values[
k] - 2 * p_face,
51 p_face =
select(-(p_face - m_face) * (p_face - m_face) * one_sixth >
52 (p_face - m_face) * (values[
k] - 0.5 * (m_face + p_face)),
53 3 * values[
k] - 2 * m_face,
60 a[1] = 3.0 * values[
k] - 2.0 * m_face - p_face;
61 a[2] = (m_face + p_face - 2.0 * values[
k]);
void compute_filtered_face_values_nonuniform(const Realf *const dv, const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, const Realf threshold)
__global__ void vmesh::VelocityMesh **__restrict__ ColumnOffsets split::SplitVector< vmesh::GlobalID > Hashinator::Hashmap< vmesh::GlobalID, vmesh::LocalID > const uint *__restrict__ const Realf const int const int const Realf const Realf dv
__global__ void const Realf const uint *__restrict__ const uint *__restrict__ const vmesh::GlobalID *__restrict__ const uint const uint const uint const Realf threshold
An interface to a type with floating point values.
static ARCH_HOSTDEV VecSimple< T > select(VecSimple< bool > const &a, VecSimple< T > const &b, VecSimple< T > const &c)