function pwl_interp_2d_test ( )

%*****************************************************************************80
%
%% pwl_interp_2d_test() tests pwl_interp_2d().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    06 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../pwl_interp_2d' );
  addpath ( '../r8lib' )
  addpath ( '../test_interp_2d' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pwl_interp_2d_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test pwl_interp_2d().\n' );
  fprintf ( 1, '  The R8LIB library is needed.\n' );
  fprintf ( 1, '  The test needs TEST_INTERP_2D.\n' );

  n_test_num = 5;
  n_test = [ 2, 3, 4, 5, 9 ];

  prob_num = f00_num ( );
%
%  Numerical tests.
%
  for prob = 1 : prob_num
    for i = 1 : n_test_num
      n = n_test(i);
      pwl_interp_2d_test01 ( prob, n );
    end
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pwl_interp_2d_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../pwl_interp_2d' );
  rmpath ( '../r8lib' )
  rmpath ( '../test_interp_2d' )

  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

