function medit_mesh_io_test ( )

%*****************************************************************************80
%
%% medit_mesh_io_test() tests medit_mesh_io().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 December 2022
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Pascal Frey,
%    MEDIT: An interactive mesh visualization software,
%    Technical Report RT-0253,
%    Institut National de Recherche en Informatique et en Automatique,
%    03 December 2001.
%
  addpath ( '../medit_mesh_io' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'medit_mesh_io_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test medit_mesh_io().\n' );
%
%  Create the file hexahexa_2x2x2.mesh
%
  mesh_io_test01 ( );
%
%  Read and print the file hexahexa_2x2x2.mesh.
%
  filename = 'hexahexa_2x2x2.mesh';
  mesh_io_test03 ( filename );
%
%  Create the file cyl248.mesh
%
  mesh_io_test02 ( );
%
%  Read and print the sizes of file cyl248.mesh.
%
  filename = 'cyl248.mesh';
  mesh_io_test03 ( filename );
%
%  Read and print the data in file cyl248.mesh.
%
  filename = 'cyl248.mesh';
  mesh_io_test04 ( filename );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'medit_mesh_io_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n'  );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../medit_mesh_io' );

  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

