SHALLOW_WATER_1D is a Python program which simulates a system governed by the shallow water equations in 1D.
The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.
SHALLOW_WATER_1D is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.
You can go up one level to the Python source codes.