The effect of navigation on the flow in a river trained with groynes