A semi-distributed adaptive model for real-time flood forecasting