I got stuck with Hestaven/Warburton's dG-FEM matlab code. Starting with the [file][1] `AdvecRHS1D.m` we see in line 11 `du(:) = (u(vmapM)-u(vmapP)).*(a*nx(:)-(1-alpha)*abs(a*nx(:)))/2;` which calculates the jump $[u]$ between adjacent elements and multiplies it with some factor, giving $$du=[u]\frac{an-(1-\alpha)|an|}{2}=[u]a\frac{n-(1-\alpha)}{2}, n\in \{-1,1\},\\ a>,\ 1\geq\alpha\geq 0$$ which looks very similar to the numerical flux described as $$(au)^*=\{\{u\}\} + a\frac{1-\alpha}{2}[u]$$ if we leave out the average $\{\{u\}\}$. Yet these terms are obviously not the same. Then, for the computation of the right hand side of the PDE, this happens: rhsu = -a*rx.*(Dr*u) + LIFT*(Fscale.*(du)); which is supposed to calculate the integral $$\left[l^k(x)(au^k_h) - (au)^* \right]_{x_l^k}^{x_r^k} = \oint_{\delta D^k}\hat{n}(au_h - (au)^*)l_i(r)$$ But i dont understand how this line of code is expressing this. [1]: https://github.com/tcew/nodal-dg/blob/master/Codes1.1/Codes1D/AdvecRHS1D.m