COSMOS v7.655  COSMOSv7655
(AirShowerMC)
ksortinv.f File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine ksortinv (idx, n)
 

Function/Subroutine Documentation

◆ ksortinv()

subroutine ksortinv ( integer, dimension(n idx,
integer  n 
)

Definition at line 2 of file ksortinv.f.

Referenced by csortstack(), distribute(), sortbyerg(), and sortbyke().

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
nodes i
averg real MaxCPU integer idx(Maxp)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
Definition: cblkHeavy.h:36
integer n
Definition: Zcinippxc.h:1
Here is the caller graph for this function: