function allencahn_euler_test ( )

%*****************************************************************************80
%
%% allencahn_euler_test() tests allencahn_euler().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    11 April 2020
%
%  Author:
%
%    Lloyd Trefethen.
%    Modification by John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'allencahn_euler_test():\n' );
  fprintf ( 1, '  allencahn_euler() solves the Allen-Cahn equations\n' );
  fprintf ( 1, '  using the Euler method.\n' );

  nx = 20;
  [ xx, tt, uu ] = allencahn_euler ( nx );
%
%  Display the results.
%
  clf ( );
  surf ( xx, tt, uu );
  lighting ( 'phong' );
  axis ( 'tight' );
  view ( [ -40.0, 60.0 ] );
  colormap ( 'cool' );
  light ( 'color', [ 1.0, 1.0, 0.0 ], 'position', [ -10.0, 0.0, 10.0 ] );
  title ( 'Allen-Cahn equation solve by Euler method' );
  xlabel ( '<-- X -->' );
  ylabel ( '<-- T -->' );

  filename = 'allencahn_euler_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '  Graphics saved as "%s"\n', filename );

  return
end

