1 subroutine qpsrt(limit,last,maxerr,ermax,elist,iord,nrmax)
60 real elist,ermax,errmax,errmin
61 integer i,ibeg,ido,iord,isucc,j,jbnd,jupbn,k,last,limit,maxerr,
63 dimension elist(last),iord(last)
69 if(last.gt.2)
go to 10
80 10 errmax = elist(maxerr)
81 if(nrmax.eq.1)
go to 30
86 if(errmax.le.elist(isucc))
go to 30
97 if(last.gt.(limit/2+2)) jupbn = limit+3-last
105 if(ibeg.gt.jbnd)
go to 50
109 if(errmax.ge.elist(isucc))
go to 60
112 50 iord(jbnd) = maxerr
118 60 iord(i-1) = maxerr
123 if(errmin.lt.elist(isucc))
go to 80
133 90 maxerr = iord(nrmax)
134 ermax = elist(maxerr)
subroutine qpsrt(limit, last, maxerr, ermax, elist, iord, nrmax)