function cavity_flow_display_test ( )

%*****************************************************************************80
%
%% cavity_flow_display_test() tests cavity_flow_display().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    08 December 2018
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../cavity_flow_display' )

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

  xy_file = 'xy.txt';
  up_file = 'up100.txt';
  normalized = true;
  png_file = 'up100_direction.png';
  cavity_flow_display ( xy_file, up_file, normalized, png_file );
  pause ( 5 );

  xy_file = 'xy.txt';
  up_file = 'up100.txt';
  normalized = false;
  png_file = 'up100_velocity.png';
  cavity_flow_display ( xy_file, up_file, normalized, png_file );
  pause ( 5 );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'cavity_flow_display_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

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

