Slope‐dependent friction in a barotropic model