function spiral_pde_movie_test ( )

%*****************************************************************************80
%
%% spiral_pde_movie_test() tests spiral_pde_movie().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    16 December 2020
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../spiral_pde_movie' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'spiral_pde_movie_test():\n' );
  fprintf ( 1, '  spiral_pde_movie() makes a movie of\n' );
  fprintf ( 1, '  a reaction-diffusion partial differential equation.\n' );
%
%  Set N, the number of spatial nodes in each direction.
%
  n = 401;
%
%  Set xmin, xmax, vector x, spacing dx.
%
  nx = n;
  xmin = 0.0;
  xmax = 80.0;
  dx = ( xmax - xmin ) / ( nx - 1 );
%
%  Set ymin, ymax, vector y, spacing dy.
%
  ny = n;
  ymin = 0.0;
  ymax = 80.0;
  dy = ( ymax - ymin ) / ( ny - 1 );
%
%  Set number of steps nt, tmin, tmax, t, dt
%
  nt = 5000;
  tmin = 0.0;
  tmax = 5.0;
  t = linspace ( tmin, tmax, nt + 1 );
  dt = ( tmax - tmin ) / nt;
%
%  Set problem parameters alpha, beta, delta, epsilon.
%
  [ alpha, beta, delta, epsilon ] = spiral_parameters ( );
%
%  Set the function that will estimate the laplacian.
%
  laplacian = @ laplacian5_torus;
% laplacian = @ laplacian9_torus;
%
%  Make it possible to print the name of the laplacian function.
%
  pointer = functions ( laplacian );
%
%  Report input.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  spiral_pde_movie parameters:\n' );
  fprintf ( 1, '    nx = %d\n', nx );
  fprintf ( 1, '    ny = %d\n', ny );
  fprintf ( 1, '    nt = %d\n', nt );
  fprintf ( 1, '    dx = %g\n', dx );
  fprintf ( 1, '    dy = %g\n', dy );
  fprintf ( 1, '    dt = %g\n', dt );
  fprintf ( 1, '    alpha = %g\n', alpha );
  fprintf ( 1, '    beta = %g\n', beta );
  fprintf ( 1, '    delta = %g\n', delta );
  fprintf ( 1, '    epsilon = %g\n', epsilon );
  fprintf ( 1, '    laplacian = %s\n', pointer.function );
%
%  Make the movie.
%
  spiral_pde_movie ( nx, ny, nt, dx, dy, dt, laplacian );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'spiral_pde_movie_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../spiral_pde_movie' );

  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

