function legendre_product_display_test ( )

%*****************************************************************************80
%
%% legendre_product_display_test() tests legendre_product_display().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    25 January 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../legendre_product_display' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'legendre_product_display_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test legendre_product_display().\n' );

  order_1d = 21;
  gl_grid_square_display ( order_1d );

  x_order = 1;
  y_order = 5;
  gl_grid_display ( x_order, y_order );

  x_order = 5;
  y_order = 3;
  gl_grid_display ( x_order, y_order );

  x_order = 10;
  y_order = 20;
  gl_grid_display ( x_order, y_order );

  q_min = 2;
  q_max = 5;
  gl_grids_minmax_display ( q_min, q_max );

  q_min = 3;
  q_max = 5;
  gl_grids_minmax_display ( q_min, q_max );

  q_min = 4;
  q_max = 5;
  gl_grids_minmax_display ( q_min, q_max );

  q_min = 5;
  q_max = 5;
  gl_grids_minmax_display ( q_min, q_max );

  level_min = 0;
  level_max = 6;
  gl_levels_minmax_display ( level_min, level_max );

  level_min = 3;
  level_max = 3;
  gl_levels_minmax_display ( level_min, level_max );

  level_min = 4;
  level_max = 4;
  gl_levels_minmax_display ( level_min, level_max );

  level_min = 5;
  level_max = 5;
  gl_levels_minmax_display ( level_min, level_max );

  level_min = 6;
  level_max = 6;
  gl_levels_minmax_display ( level_min, level_max );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'legendre_product_display_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../legendre_product_display' );

  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

