*     ************************************************************************

      logical function gxdej(xstat)

*     ************************************************************************

*     Purpose :
*     ---------

*     This function checks if the status XSTAT corresponds to the
*     status of one independent superbasic set that needs to be
*     de-joined.

*     Parameters :
*     -----------

*     xstat   ( int )

*       input  : the status of the independent superbasic set.
*       output : unmodified.

*     gxdej   ( log )

*       input  : meaningless.
*       output : .true.  iff the status XSTAT corresponds to the
*                        status of one independent superbasic
*                        set that needs to be de-joined.
*                .false. otherwise.

*     Routines used :
*     ---------------

*     None.

*     Programming :
*     -------------

*     D. Tuyttens

*     ========================================================================

*     Routine parameter

      integer  xstat

*     Internal variable

      integer  aux

      aux = xstat / 64
      gxdej = mod(aux,2).eq.1

      return
      end