COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ksortinv.f
Go to the documentation of this file.
1  subroutine ksortinv(idx, n)
2  implicit none
3 ! invert sorted idx order
4  integer n
5  integer idx(n)
6  integer i, j
7 
8  do i = 1, n/2
9  j =idx(i)
10  idx(i) = idx(n-i+1)
11  idx(n-i+1) = j
12  enddo
13  end
subroutine ksortinv(idx, n)
Definition: ksortinv.f:2