84 SUBROUTINE sptran(IROMB,MAXWV,IDRT,IMAX,JMAX,KMAX,
85 & IPRIME,ISKIP,JNSKIP,JSSKIP,KWSKIP,KGSKIP,
87 & WAVE,GRIDN,GRIDS,IDIR)
89 REAL WAVE(*),GRIDN(*),GRIDS(*)
91 MX=(maxwv+1)*((iromb+1)*maxwv+2)/2
106 IF(kg.EQ.0) kg=imax*jmax
108 IF(je.EQ.0) je=(jmax+1)/2
109 IF(jc.EQ.0) jc=
ncpus()
111 IF(idir.LT.0.AND.jbeg.EQ.0)
THEN
114 wave(kws+1:kws+2*mx)=0
118 CALL sptranf(iromb,maxwv,idrt,imax,jmax,kmax,
119 & ip,is,jn,js,kw,kg,jb,je,jc,
120 & wave,gridn,grids,idir)
function ncpus()
Set number of CPUs - the number of processors over which to parallelize.
subroutine sptran(IROMB, MAXWV, IDRT, IMAX, JMAX, KMAX, IPRIME, ISKIP, JNSKIP, JSSKIP, KWSKIP, KGSKIP, JBEG, JEND, JCPU, WAVE, GRIDN, GRIDS, IDIR)
This subprogram performs a spherical transform between spectral coefficients of scalar quantities and...
subroutine sptranf(IROMB, MAXWV, IDRT, IMAX, JMAX, KMAX, IP, IS, JN, JS, KW, KG, JB, JE, JC, WAVE, GRIDN, GRIDS, IDIR)
This subprogram performs a spherical transform between spectral coefficients of scalar quantities and...