function shepard_interp_nd_test ( )

%*****************************************************************************80
%
%% shepard_interp_nd_test() tests shepard_interp_nd().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../r8lib' )
  addpath ( '../shepard_interp_nd' );
  addpath ( '../test_interp_nd' )

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'shepard_interp_nd_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test shepard_interp_nd().\n' );
  fprintf ( 1, '  The R8LIB library is needed.\n' );
  fprintf ( 1, '  This test needs TEST_INTERP_ND().\n' );
%
%  Look at Shepard interpolant on an irregular grid.
%
  nd = 25;

  prob_num = p00_prob_num ( );

  for prob = 1 : prob_num

    for m = 2 : 3 : 5

      for p = [ 1.0, 2.0, 4.0, 8.0 ];
        shepard_interp_nd_test01 ( prob, p, m, nd );
      end

    end
  end
%
%  Look at Shepard interpolant on a regular N1D^M grid.
%
  n1d = 5;

  prob_num = p00_prob_num ( );

  for prob = 1 : prob_num

    for m = 2 : 3 : 5

      for p = [ 1.0, 2.0, 4.0, 8.0 ];
        shepard_interp_nd_test02 ( prob, p, m, n1d );
      end

    end
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'shepard_interp_nd_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../r8lib' )
  rmpath ( '../shepard_interp_nd' );
  rmpath ( '../test_interp_nd' )

  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

