function h = reaction_conserved ( y )

%*****************************************************************************80
%
%% reaction_conserved() computes conservation for reaction_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    22 January 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real Y(3): the variable values.
%
%  Output:
%
%    real H: the conserved quantity.
%
  a = y(:,1);
  b = y(:,2);
  c = y(:,3);

  h = a + b + 2.0 * c;

  return
end
