A numerical study of the unstratified and stratified Ekman layer