diff options
Diffstat (limited to 'lib/pctile.f90')
| -rw-r--r-- | lib/pctile.f90 | 6 |
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 |
