function brusselator_ode_test ( )

%*****************************************************************************80
%
%% brusselator_ode_test() solves brusselator_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 April 2021
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    John D Cook,
%    Behold! The Brusselator!,
%    https://www.johndcook.com/blog/
%    Posted 07 February 2020.
%
%    Rene Lefever, Gregoire Nicholis,
%    Chemical instabilities and sustained oscillations,
%    Journal of Theoretical Biology,
%    Volume 30, Issue 2, February 1971, Pages 267-284.
%
  addpath ( '../brusselator_ode' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'brusselator_ode_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve brusselator_ode().\n' );

  [ a, b, t0, y0, tstop ] = brusselator_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  parameters:\n' );
  fprintf ( 1, '    a     = %g\n', a );
  fprintf ( 1, '    b     = %g\n', b );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    y0    = (%g,%g)\n', y0(1:2) );
  fprintf ( 1, '    tstop = %g\n', tstop );

  brusselator_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'brusselator_ode_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../brusselator_ode' )

  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

