Search Site | Contact Details | FAQ

ADAS Subroutine xxchss

      subroutine xxchss(n, lup, ca, itag)

C-----------------------------------------------------------------------
C
C  ******************* FORTRAN77 SUBROUTINE: XXCHSS ********************
C
C  PURPOSE: Sorts a character array xa and its index array. This is a
C           bubble sort designed for small arrays.         
C                                                                    
C
C  CALLING PROGRAM:  General use
C
C                                                                   
C  SUBROUTINE:
C
C  INPUT       :  (I*4)  N     = Size of input arrays
C  INPUT       :  (L*4)  LUP   = .TRUE. sort in ascending order
C                                .FALSE. descending order
C  INPUT/OUPUT :  (C)    CA    = Array to be sorted
C  INPUT/OUPUT :  (I*4)  ITAG  = Original index of sorted XA
C 
C  ROUTINES    : NONE
C
C  NOTES       : Shell sort from Numerical Receipies.
C
C  AUTHOR      : Martin O'Mullane
C
C  DATE        : 7-02-2000
C
C  VERSION     : 1.1
C  
C
C----------------------------------------------------------------------- 
      CHARACTER*(*)       CA(*)
      INTEGER             ITAG(*),     N
      LOGICAL             LUP
© Copyright 1995-2024 The ADAS Project
Comments and questions to: adas-at-adas.ac.uk