function pyramid_grid_test02 ( )

%*****************************************************************************80
%
%% pyramid_grid_test02() tests pyramid_unit_grid().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 August 2014
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'pyramid_grid_test02():\n' );
  fprintf ( 1, '  pyramid_unit_grid() determines a unit pyramid\n' );
  fprintf ( 1, '  grid with N+1 points along each edge.\n' );

  n = 4;
  r8_print ( n, '  Grid parameter N:' );

  ng = pyramid_grid_size ( n );
  r8_print ( ng, '  Grid size NG:' );

  pg = pyramid_unit_grid ( n, ng );

  r8mat_transpose_print ( 3, ng, pg, '  Pyramid grid points:' );

  return
end
