fd1d_wave_test, a FORTRAN90 code which calls fd1d_wave(), which applies the finite difference method to solve a version of the wave equation in one spatial dimension.
The computer code and data files made available on this web page are distributed under the MIT license
fd1d_wave, a FORTRAN90 code which applies the finite difference method (FDM) to solve the time-dependent wave equation utt = c * uxx in one spatial dimension.
test01 sets up the "shark wave".
test02_plot sets up a sine wave.