function rectangle_elements_test ( )

%*****************************************************************************80
%
%% rectangle_elements_test() tests rectangle_elements().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    13 December 2021
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rectangle_elements_test():\n' );
  fprintf ( 1, '  rectangle_elements() returns information about the\n' );
  fprintf ( 1, '  triangular elements forming a rectangle.\n' );

  nx = 4;
  ny = 3;
  [ rk, rt ] = rectangle_elements ( nx, ny );
  rtn = size ( rt, 1 );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  #  Type  (N1,N2,N3)\n' );
  fprintf ( 1, '\n' );
  for rti = 1 : rtn
    fprintf ( 1, '  %d: %d  (%d,%d,%d)\n', rti, rt(rti), rk(rti,1:3) );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'rectangle_elements_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );

  return
end

