I made a port, but the result makes no sense to me. This is using FPC, OpenGL and GLUT, so it should be quite portable. The text output is not supported. Here it is:

http://www.computer-graphics.se/water_sim_fpc.zip

It animates, but I don't find the animation very enlightening. It doesn't produce a pretty flow. I probably have some errors in the conversion (although I tried to stick as close to the original as possible).