a barrier that runs across a river or stream to control the flow of water