A terrain-following model of wave boundary layers. (December 2016)