It is often called a tankwall.
We think it was used as a barrage in the stream. Closing it would flood a vast terrain directly behind the beach.
German made.