mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-08-13 11:12:26 -04:00
Another tweak to protect against invalid argument in pctile().
This commit is contained in:
parent
97ed4022a2
commit
e8162970de
@ -3,7 +3,10 @@ subroutine pctile(x,npts,npct,xpct)
|
|||||||
real x(npts)
|
real x(npts)
|
||||||
real,allocatable :: tmp(:)
|
real,allocatable :: tmp(:)
|
||||||
|
|
||||||
if(npts.lt.0) go to 900
|
if(npts.lt.0 .or. npct.lt.0 .or. npct.gt.100) then
|
||||||
|
xpct=1.0
|
||||||
|
go to 900
|
||||||
|
endif
|
||||||
allocate(tmp(npts))
|
allocate(tmp(npts))
|
||||||
|
|
||||||
tmp=x
|
tmp=x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user