Dam with water release in mountains