function advection_pde_test ( )

%*****************************************************************************80
%
%% advection_pde_test() solves the advection PDE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../advection_pde' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'advection_pde_test()\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve the advection PDE.\n' );
%
%  Get the parameters.
%
  [ c, t0, tstop, xmin, xmax ] = advection_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter values():\n' );
  fprintf ( 1, '    c     = %g\n', c );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    tstop = %g\n', tstop );
  fprintf ( 1, '    xmin  = %g\n', xmin );
  fprintf ( 1, '    xmax  = %g\n', xmax );

  advection_pde_ftcs ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'advection_pde_test()\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

  rmpath ( '../advection_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
