split hydro model into main script, bide processes, and lbm processes -KL