Torrent check dams as a control measure for debris flows