42 const Realf one_sixth(1.0/6.0);
43 m_face = ((p_face - m_face) * (values[
k*stride+
index] - (
Realf)(0.5) * (m_face + p_face)) >
44 (p_face - m_face) * (p_face - m_face) * one_sixth) ?
46 p_face = (-(p_face - m_face) * (p_face - m_face) * one_sixth >
47 (p_face - m_face) * (values[
k*stride+
index] - (
Realf)(0.5) * (m_face + p_face))) ?
53 a[1] = (
Realf)(3.0) * values[
k*stride+
index] - (
Realf)(2.0) * m_face - p_face;
54 a[2] = (m_face + p_face - (
Realf)(2.0) * values[
k*stride+
index]);
void compute_filtered_face_values(const Vec *const values, const uint k, const face_estimate_order order, Vec &fv_l, Vec &fv_r, const Realf threshold)
static ARCH_DEV void compute_ppm_coeff(const Realf *__restrict__ const values, face_estimate_order order, int k, Realf a[3], const Realf threshold, const int index, const int stride)