function grids_display_test ( )

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

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

  file1 = 'cc_d2_level4_x.txt';
  file2 = 'cc_d2_o17x1_x.txt';
  rmin = -1.0;
  rmax = +1.0;
  grids_display ( file1, file2, rmin, rmax );
  pause ( 5 );

  file1 = 'cc_d2_level4_x.txt';
  file2 = 'cc_d2_o9x3_x.txt';
  rmin = -1.0;
  rmax = +1.0;
  grids_display ( file1, file2, rmin, rmax );
  pause ( 5 );

  file1 = 'cc_d2_level4_x.txt';
  file2 = 'cc_d2_o5x5_x.txt';
  rmin = -1.0;
  rmax = +1.0;
  grids_display ( file1, file2, rmin, rmax );
  pause ( 5 );

  file1 = 'cc_d2_level4_x.txt';
  file2 = 'cc_d2_o3x9_x.txt';
  rmin = -1.0;
  rmax = +1.0;
  grids_display ( file1, file2, rmin, rmax );
  pause ( 5 );

  file1 = 'cc_d2_level4_x.txt';
  file2 = 'cc_d2_o1x17_x.txt';
  rmin = -1.0;
  rmax = +1.0;
  grids_display ( file1, file2, rmin, rmax );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'grids_display_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../grids_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

