83 SUBROUTINE sptrand(IROMB,MAXWV,IDRT,IMAX,JMAX,KMAX,
84 & IPRIME,ISKIP,JNSKIP,JSSKIP,KWSKIP,KGSKIP,
86 & WAVE,GRIDMN,GRIDXN,GRIDXS,GRIDYN,GRIDYS,IDIR)
88 REAL WAVE(*),GRIDMN(KMAX),GRIDXN(*),GRIDXS(*),GRIDYN(*),GRIDYS(*)
89 REAL EPS((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EPSTOP(MAXWV+1)
90 REAL ENN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
91 REAL ELONN1((MAXWV+1)*((IROMB+1)*MAXWV+2)/2)
92 REAL EON((MAXWV+1)*((IROMB+1)*MAXWV+2)/2),EONTOP(MAXWV+1)
93 REAL WD((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2+1,KMAX)
94 REAL WZ((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2+1,KMAX)
97 CALL spwget(iromb,maxwv,eps,epstop,enn1,elonn1,eon,eontop)
98 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
108 gridmn(k)=wave(kws+1)/sqrt(2.)
109 CALL splaplac(iromb,maxwv,enn1,wave(kws+1),wd(1,k),1)
112 CALL sptranv(iromb,maxwv,idrt,imax,jmax,kmax,
113 & iprime,iskip,jnskip,jsskip,mdim,kgskip,
115 & wd,wz,gridxn,gridxs,gridyn,gridys,idir)
124 CALL sptranv(iromb,maxwv,idrt,imax,jmax,kmax,
125 & iprime,iskip,jnskip,jsskip,mdim,kgskip,
127 & wd,wz,gridxn,gridxs,gridyn,gridys,idir)
132 CALL splaplac(iromb,maxwv,enn1,wave(kws+1),wd(1,k),-1)
133 wave(kws+1)=gridmn(k)*sqrt(2.)
139 CALL splaplac(iromb,maxwv,enn1,wz(1,k),wd(1,k),-1)
140 wave(kws+1:kws+2*mx)=wave(kws+1:kws+2*mx)+wz(1:2*mx,k)
141 wave(kws+1)=gridmn(k)*sqrt(2.)