A discontinuous Galerkin method for the solution of compressible flows