main.c is for r.sim.water input.c is for simlib