mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-03-26 14:08:40 -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,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))
|
||||
|
||||
tmp=x
|
||||
|
Loading…
Reference in New Issue
Block a user