function h = reaction_twoway_conserved ( y )

%*****************************************************************************80
%
%% reaction_twoway_conserved() computes conservation for reaction_twoway_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    31 January 2021
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real Y(:,2): the variable values.
%
%  Output:
%
%    real H(:): the conserved quantity.
%
  w1 = y(:,1);
  w2 = y(:,2);

  h = w1 + w2;

  return
end
