function gray_scott_pde_test ( )

%*****************************************************************************80
%
%% gray_scott_pde_test() solves the 2D Gray-Scott reaction-diffusion equation.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    03 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../gray_scott_pde' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gray_scott_pde_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version );
  fprintf ( 1, '  Solve the 2D Gray-Scott reaction-diffusion PDE\n' );

  nx = 251;
  ny = 251;
  nt = 150001;

  [ d1, d2, gamma, kappa, t0, tstop, xmin, xmax, ymin, ymax ] = ...
    gray_scott_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameters:\n' );
  fprintf ( 1, '    U diffusion d1  = %g\n', d1 );
  fprintf ( 1, '    V diffusion d2  = %g\n', d2 );
  fprintf ( 1, '    Flow rate gamma = %g\n', gamma );
  fprintf ( 1, '    Kill rate kappa = %g\n', kappa );
  fprintf ( 1, '    t0              = %g\n', t0 );
  fprintf ( 1, '    tstop           = %g\n', tstop );
  fprintf ( 1, '    xmin            = %g\n', xmin );
  fprintf ( 1, '    xmax            = %g\n', xmax );
  fprintf ( 1, '    ymin            = %g\n', ymin );
  fprintf ( 1, '    ymax            = %g\n', ymax );

  gray_scott_pde ( nx, ny, nt );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'gray_scott_pde_test()\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  timestamp ( );

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