The boundary layer on a townend surface