function mhd_exact_test ( )

%*****************************************************************************80
%
%% mhd_exact_test() tests mhd_exact().
%
%  Discussion:
%
%    mhd_exact() describes the Hartmann exact solution of a 2D MHD system.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    23 August 2024
%
%  Author:
%
%    John Burkardt
%
%  Reference:
%
%    Jean-Frederic Gerbeau, Claude Le Bris, Tony Lelievre,
%    Mathematical methods for the magnetohydrodynamics
%    of liquid metals,
%    Oxford University Press, 2006,
%    ISBN 978-0-19-856665-6
%
  addpath ( '../mhd_exact' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mhd_exact_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Define the Hartmann exact solution of the 2D MHD equation.\n' );

  mhd_resid_test ( );
  vector_plot ( );
  contour_plot ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'mhd_exact_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  timestamp ( );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 November 2022
%
%  Author:
%
%    John Burkardt
%
  t = now ( );
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

