Semi-discrete Galerkin solution of the compressible boundary-layer equations with viscous-inviscid interaction