function quad_mesh_test02 ( )

%*****************************************************************************80
%
%% quad_mesh_test02() tests area_q4_mesh().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    25 February 2009
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'quad_mesh_test02():\n' );
  fprintf ( 1, '  area_q4_mesh() computes the area of each element\n' );
  fprintf ( 1, '  in a Q4 mesh.\n' );

  [ node_num, element_num, hole_num ] = example2_q4_mesh_size ( );

  [ node_xy, element_node, element_neighbor ] = example2_q4_mesh ( ...
    node_num, element_num );

  [ element_area, mesh_area ] = area_q4_mesh ( node_num, element_num, ...
    node_xy, element_node );

  r8vec_print ( element_num, element_area, '  Element areas:' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '   Mesh =   %f\n', mesh_area );

  return
end
