function fd2d_predator_prey_test ( )

%*****************************************************************************80
%
%% FD2D_PREDATOR_PREY_TEST tests FD2D_PREDATOR_PREY.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    16 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../fd2d_predator_prey' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'FD2D_PREDATOR_PREY_TEST:\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test FD2D_PREDATOR_PREY.\n' );

  alpha = 0.4;
  beta = 2.0;
  gamma = 0.6;
  delta = 10.0;
  a = 0.0;
  b = 500.0;
  h = 1.0;
  T = 150.0;
  delt = 1.0 / 24.0;

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

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

  rmpath ( '../fd2d_predator_prey' )

  return
end
function value = u0 ( X, Y )

%*****************************************************************************80
%
%% U0 sets the initial value of U.
%
  value = 6.0 / 35.0 - 2.0E-7 * ( X - 0.1 * Y - 225.0 ) .* ( X - 0.1 * Y - 675.0 );

  return
end
function value = v0 ( X, Y )

%*****************************************************************************80
%
%% V0 sets the initial value for V.
%
  value = 116.0 / 245.0 - 3.0E-5 * ( X - 45.00 ) - 1.2E-4 * ( Y - 150.0 );

  return
end
