function artery_pde_test ( )

%*****************************************************************************80
%
%% artery_pde_test() tests artery_pde().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 December 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../artery_pde' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'artery_pde_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test artery_pde().\n' );

  [ a, alpha, b, beta, dp, gamma, l, nx, omega, t0, w0, x ] = artery_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameters:\n' );
  fprintf ( 1, '    a     = %g\n', a );
  fprintf ( 1, '    alpha = %g\n', alpha );
  fprintf ( 1, '    b     = %g\n', b );
  fprintf ( 1, '    beta  = %g\n', beta );
  fprintf ( 1, '    dp    = %g\n', dp );
  fprintf ( 1, '    gamma = %g\n', gamma );
  fprintf ( 1, '    l     = %g\n', l );
  fprintf ( 1, '    nx    = %d\n', nx );
  fprintf ( 1, '    omega = %g\n', omega );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    w0    = (all zero)\n' );
  fprintf ( 1, '    x     = linspace(0.0,l,nx)\n' );
%
%  Quarteroni suggests tstop = 10 for very stiff case(!)
%  and 2.5e-03 for less stiff case.
%
  if ( false )
    tstop = 10.0;
  else
    tstop = 2.5e-03;
  end

  tspan = [ t0, tstop ];

  artery_ode45 ( tspan );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'artery_pde_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

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

