GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_0(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return (-0.7348469228349525*f[19])-0.7348469228349533*f[18]+1.42302494707577*f[17]-0.4242640687119281*f[16]+0.5477225575051661*f[15]-0.4242640687119285*f[14]-1.060660171779821*f[13]+0.5477225575051661*f[12]-1.060660171779821*f[11]+1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]+0.6363961030678926*f[6]-0.8215838362577489*(f[5]+f[4])-0.4743416490252568*(f[3]+f[2])+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return 0.7348469228349525*f[19]+0.7348469228349533*f[18]+1.42302494707577*f[17]-0.4242640687119281*f[16]-0.5477225575051661*f[15]-0.4242640687119285*f[14]-1.060660171779821*f[13]-0.5477225575051661*f[12]-1.060660171779821*f[11]-1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]+0.6363961030678926*f[6]+0.8215838362577489*(f[5]+f[4])-0.4743416490252568*(f[3]+f[2])-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_1(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return 0.9185586535436913*f[18]+0.5477225575051661*f[15]+0.5303300858899104*f[14]-1.060660171779821*f[13]-0.6846531968814574*f[12]+0.3162277660168379*f[9]-0.3952847075210473*f[8]+0.7905694150420947*f[7]-0.8215838362577489*f[5]-0.4743416490252568*f[3]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return (-0.9185586535436913*f[18])-0.5477225575051661*f[15]+0.5303300858899104*f[14]-1.060660171779821*f[13]+0.6846531968814574*f[12]+0.3162277660168379*f[9]-0.3952847075210473*f[8]+0.7905694150420947*f[7]+0.8215838362577489*f[5]-0.4743416490252568*f[3]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_2(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return 0.7348469228349525*f[19]-0.7348469228349533*f[18]-1.42302494707577*f[17]+0.4242640687119281*f[16]+0.5477225575051661*f[15]-0.4242640687119285*f[14]-1.060660171779821*f[13]+0.5477225575051661*f[12]+1.060660171779821*f[11]-1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]-0.6363961030678926*f[6]-0.8215838362577489*f[5]+0.8215838362577489*f[4]-0.4743416490252568*f[3]+0.4743416490252568*f[2]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return (-0.7348469228349525*f[19])+0.7348469228349533*f[18]-1.42302494707577*f[17]+0.4242640687119281*f[16]-0.5477225575051661*f[15]-0.4242640687119285*f[14]-1.060660171779821*f[13]-0.5477225575051661*f[12]+1.060660171779821*f[11]+1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]-0.6363961030678926*f[6]+0.8215838362577489*f[5]-0.8215838362577489*f[4]-0.4743416490252568*f[3]+0.4743416490252568*f[2]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_3(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return 0.9185586535436913*f[19]+0.5303300858899104*f[16]-0.6846531968814574*f[15]+0.5477225575051661*f[12]-1.060660171779821*f[11]-0.3952847075210473*f[9]+0.3162277660168379*f[8]+0.7905694150420947*f[7]-0.8215838362577489*f[4]-0.4743416490252568*f[2]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return (-0.9185586535436913*f[19])+0.5303300858899104*f[16]+0.6846531968814574*f[15]-0.5477225575051661*f[12]-1.060660171779821*f[11]-0.3952847075210473*f[9]+0.3162277660168379*f[8]+0.7905694150420947*f[7]+0.8215838362577489*f[4]-0.4743416490252568*f[2]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_4(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return (-0.6846531968814574*(f[15]+f[12]))-0.3952847075210473*(f[9]+f[8])+0.7905694150420947*f[7]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return 0.6846531968814574*(f[15]+f[12])-0.3952847075210473*(f[9]+f[8])+0.7905694150420947*f[7]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_5(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return (-0.9185586535436913*f[19])-0.5303300858899104*f[16]-0.6846531968814574*f[15]+0.5477225575051661*f[12]+1.060660171779821*f[11]-0.3952847075210473*f[9]+0.3162277660168379*f[8]+0.7905694150420947*f[7]+0.8215838362577489*f[4]+0.4743416490252568*f[2]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return 0.9185586535436913*f[19]-0.5303300858899104*f[16]+0.6846531968814574*f[15]-0.5477225575051661*f[12]+1.060660171779821*f[11]-0.3952847075210473*f[9]+0.3162277660168379*f[8]+0.7905694150420947*f[7]-0.8215838362577489*f[4]+0.4743416490252568*f[2]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_6(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return (-0.7348469228349525*f[19])+0.7348469228349533*f[18]-1.42302494707577*f[17]-0.4242640687119281*f[16]+0.5477225575051661*f[15]+0.4242640687119285*f[14]+1.060660171779821*f[13]+0.5477225575051661*f[12]-1.060660171779821*f[11]-1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]-0.6363961030678926*f[6]+0.8215838362577489*f[5]-0.8215838362577489*f[4]+0.4743416490252568*f[3]-0.4743416490252568*f[2]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return 0.7348469228349525*f[19]-0.7348469228349533*f[18]-1.42302494707577*f[17]-0.4242640687119281*f[16]-0.5477225575051661*f[15]+0.4242640687119285*f[14]+1.060660171779821*f[13]-0.5477225575051661*f[12]-1.060660171779821*f[11]+1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]-0.6363961030678926*f[6]-0.8215838362577489*f[5]+0.8215838362577489*f[4]+0.4743416490252568*f[3]-0.4743416490252568*f[2]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_7(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return (-0.9185586535436913*f[18])+0.5477225575051661*f[15]-0.5303300858899104*f[14]+1.060660171779821*f[13]-0.6846531968814574*f[12]+0.3162277660168379*f[9]-0.3952847075210473*f[8]+0.7905694150420947*f[7]+0.8215838362577489*f[5]+0.4743416490252568*f[3]+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return 0.9185586535436913*f[18]-0.5477225575051661*f[15]-0.5303300858899104*f[14]+1.060660171779821*f[13]+0.6846531968814574*f[12]+0.3162277660168379*f[9]-0.3952847075210473*f[8]+0.7905694150420947*f[7]-0.8215838362577489*f[5]+0.4743416490252568*f[3]-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
GKYL_CU_DH static inline double 
ser_1x2v_p2_surfx_quad_8(int side, const double* GKYL_RESTRICT f) { 
  if (side == 1) 
    return 0.7348469228349525*f[19]+0.7348469228349533*f[18]+1.42302494707577*f[17]+0.4242640687119281*f[16]+0.5477225575051661*f[15]+0.4242640687119285*f[14]+1.060660171779821*f[13]+0.5477225575051661*f[12]+1.060660171779821*f[11]+1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]+0.6363961030678926*f[6]+0.8215838362577489*(f[5]+f[4])+0.4743416490252568*(f[3]+f[2])+0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
  else 
    return (-0.7348469228349525*f[19])-0.7348469228349533*f[18]+1.42302494707577*f[17]+0.4242640687119281*f[16]-0.5477225575051661*f[15]+0.4242640687119285*f[14]+1.060660171779821*f[13]-0.5477225575051661*f[12]+1.060660171779821*f[11]-1.10227038425243*f[10]+0.3162277660168379*(f[9]+f[8])+0.7905694150420947*f[7]+0.6363961030678926*f[6]-0.8215838362577489*(f[5]+f[4])+0.4743416490252568*(f[3]+f[2])-0.6123724356957944*f[1]+0.3535533905932737*f[0]; 
} 
