function wave_pde_test ( )

%*****************************************************************************80
%
%% wave_pde_test() solves the wave PDE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../wave_pde' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'wave_pde_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve the wave PDE\n' );

  [ xmin, xmax, nx, dx, c, t0, tstop ] = wave_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter values:\n' );
  fprintf ( 1, '    xmin  (m)   = %g\n', xmax );
  fprintf ( 1, '    xmax  (m)   = %g\n', xmin );
  fprintf ( 1, '    nx          = %d\n', nx );
  fprintf ( 1, '    dx    (m)   = %g\n', dx );
  fprintf ( 1, '    c     (m/s) = %g\n', c );
  fprintf ( 1, '    t0    (s)   = %g\n', t0 );
  fprintf ( 1, '    tstop (s)   = %g\n', tstop );

  wave_euler ( );
  wave_midpoint ( );
  wave_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'wave_pde_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../wave_pde' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end


