A direct method for computation of nonequilibrium flows with detached shock waves.