function n = glo_order ( l )

%*****************************************************************************80
%
%% glo_order() computes the order of a Gauss-Legendre Odd quadrature rule.
%
%  Discussion:
%
%     L      N
%    --     --
%     1      1
%     2      3
%     3      3
%     4      5
%     5      5
%     6      7
%     7      7
%     8      9
%     9      9
%    10     11
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 April 2014
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer L, the level of the rule.
%    1 <= L.
%
%  Output:
%
%    integer N, the appropriate order.
%
  if ( l < 1 )
    fprintf ( 1, '\n' );
    fprintf ( 1, 'GLO_ORDER - Fatal error!\n' );
    fprintf ( 1, '  Illegal value of L = %d\n', l );
    error ( 'GLO_ORDER - Fatal error!' );
  end

  n = 2 * floor ( l / 2 ) + 1;

  return
end
