summaryrefslogtreecommitdiff
path: root/lib/pctile.f90
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
committerhibby <d@vehibberd.com>2018-02-16 15:17:14 +0000
commit37f727ac0746fd85504aa46c1f023c09b3eff33a (patch)
treec8a7ce04545040a8f161ba279528730bd9a3e6ab /lib/pctile.f90
parentd63dd8d081a6fcd0715cd13f26df59fb831769d2 (diff)
New upstream version 1.8.0+repackupstream/1.8.0+repack
Diffstat (limited to 'lib/pctile.f90')
-rw-r--r--lib/pctile.f906
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/pctile.f90 b/lib/pctile.f90
index 35ee3a7d..7a039b05 100644
--- a/lib/pctile.f90
+++ b/lib/pctile.f90
@@ -1,6 +1,6 @@
subroutine pctile(x,npts,npct,xpct)
- parameter (NMAX=32768)
+ parameter (NMAX=128*1024)
real*4 x(npts)
real*4 tmp(NMAX)
@@ -10,8 +10,8 @@ subroutine pctile(x,npts,npct,xpct)
endif
if(npts.gt.NMAX) stop
- tmp(1:npts)=x
- call sort(npts,tmp)
+ tmp(1:npts)=x
+ call shell(npts,tmp)
j=nint(npts*0.01*npct)
if(j.lt.1) j=1
if(j.gt.npts) j=npts