function burgers_pde_etdrk4_test ( )

%*****************************************************************************80
%
%% burgers_pde_etdrk4_test() tests burgers_pde_etdrk4().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 March 2024
%
%  Author:
%
%    Original MATLAB version by Lloyd Trefethen.
%    This version by John Burkardt
%
  addpath ( '../burgers_pde_etdrk4' );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'burgers_pde_etdrk4_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s.\n', version ( ) );
  fprintf ( 1, '  burgers_pde_etdrk4() solves the Burgers equation\n' );
  fprintf ( 1, '  using the etdrk4 method.\n' );

  nx = 256;
  nt = 26;
  vis = 0.03;
  [ xx, tt, uu ] = burgers_pde_etdrk4 ( nx, nt, vis );
%
%  Display the results.
%
  clf ( );
  surf ( xx, tt, uu, 'edgecolor', 'none' );
  label = sprintf ( 'Burgers equation, visc = %g, solved by ETD RK4', vis );
  title ( label );
  xlabel ( '<-- x -->' );
  ylabel ( '<-- t -->' );
  grid ( 'off' );
  pbaspect ( [ 1.0, 1.0, 0.13 ] );

  filename = 'burgers_pde_etdrk4_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'burgers_pde_etdrk4_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../burgers_pde_etdrk4' );

  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

