function h = sir_conserved ( y )

%*****************************************************************************80
%
%% sir_conserved returns a conserved quantity for the SIR ODE.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    27 October 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real Y(:,3): the current solution.
%
%  Output:
%
%    real H(:): the value of the conserved quantity.
%
  h = sum ( y, 2 );

  return
end

