function allen_cahn_pde_test ( )

%*****************************************************************************80
%
%% allen_cahn_pde_test() solves the Allen-Cahn PDE.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 January 2021
%
%  Author:
%
%    John Burkardt, Catalin Trenchea
%
  addpath ( '../allen_cahn_pde' );

  timestamp ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, 'allen_cahn_pde_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Solve the Allen-Cahn PDE.\n' );

  [ nu, xi, t0, tstop, xmin, xmax ] = allen_cahn_parameters ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Parameter values:\n' );
  fprintf ( 1, '    nu    = %g\n', nu );
  fprintf ( 1, '    xi    = %g\n', xi );
  fprintf ( 1, '    t0    = %g\n', t0 );
  fprintf ( 1, '    tstop = %g\n', tstop );
  fprintf ( 1, '    xmin  = %g\n', xmin );
  fprintf ( 1, '    xmax  = %g\n', xmax );

  allen_cahn_euler ( );
  allen_cahn_ode45 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'allen_cahn_pde_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  timestamp ( );

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

