function quad_surface_display_test ( )

%*****************************************************************************80
%
%% quad_surface_display_test() tests quad_surface_display().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    02 March 2019
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../quad_surface_display' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quad_surface_display_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  quad_surface_display() plots a 3D surface defined by a quadrilateral mesh.\n' );

  node_xy = load ( 'node_xy.txt' )';
  quad_node = load ( 'quad_node.txt' )';
  value_xy = load ( 'value_xy.txt' );

  node_num = size ( node_xy, 2 );
  quad_num = size ( quad_node, 2 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Number of nodes = %d\n', node_num );
  fprintf ( 1, '  Number of quadrilaterals = %d\n', quad_num );

  quad_surface_display ( node_num, node_xy, quad_num, quad_node, value_xy );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quad_surface_display_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

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

