Title: Boundary layers due to gravity waves