function fd1d_predator_prey_test ( )

%*****************************************************************************80
%
%% FD1D_PREDATOR_PREY_TEST tests FD1D_PREDATOR_PREY.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    14 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../fd1d_predator_prey' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FD1D_PREDATOR_PREY_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test FD1D_PREDATOR_PREY.\n' );

  alpha = 0.3;
  beta = 2.0;
  gamma = 0.8;
  delta = 1.0;
  a = 0.0;
  b = 200.0;
  h = 0.5;
  T = 40.0;
  delt = 1.0 / 96.0;

  fd1d_predator_prey ( alpha, beta, gamma, delta, a, b, h, T, ...
    delt, @u0, @v0 );

  filename = 'fd1d_predator_prey_test.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Saving plot as "%s".\n', filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FD1D_PREDATOR_PREY_TEST:\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../fd1d_predator_prey' )

  return
end
function value = u0 ( x )

%*****************************************************************************80
%
%% U0 sets the initial value of U.
%
  value = exp ( - ( x - 100 ).^2 ) / 5;

  return
end
function value = v0 ( x )

%*****************************************************************************80
%
%% V0 sets the initial value for V.
%
  value = 0.4;

  return
end
