A novel discontinuous Galerkin method using the principle of discrete least squares