function h = squircle_conserved ( y )

%*****************************************************************************80
%
%% squircle_conserved() returns a conserved quantity for squircle_ode().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    21 December 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    real Y(:,2): the current solution.
%
%  Output:
%
%    real H(:): the value of the conserved quantity.
%
  u = y(:,1);
  v = y(:,2);

  [ s, t0, y0, tstop ] = squircle_parameters ( );

  h = u.^s + v.^s;

  return
end

