1D Shallow water equation code