Coarse-grained debris flow dynamics on erodible beds.