71 SUBROUTINE sptrund(IROMB,MAXWV,IDRTI,IMAXI,JMAXI,
72 & IDRTO,IMAXO,JMAXO,KMAX,
73 & IPRIME,ISKIPI,JSKIPI,KSKIPI,
74 & ISKIPO,JSKIPO,KSKIPO,JCPU,GRID,
77 REAL GRID(*),GRIDX(*),GRIDY(*)
78 REAL W((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2+1,KMAX)
82 IF(jc.EQ.0) jc=
ncpus()
83 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
88 inp=(jmaxi-1)*max(0,-jn)+1
89 isp=(jmaxi-1)*max(0,-js)+1
90 CALL sptran(iromb,maxwv,idrti,imaxi,jmaxi,kmax,
91 & iprime,iskipi,jn,js,mdim,kskipi,0,0,jc,
92 & w,grid(inp),grid(isp),-1)
98 inp=(jmaxo-1)*max(0,-jn)+1
99 isp=(jmaxo-1)*max(0,-js)+1
100 CALL sptrand(iromb,maxwv,idrto,imaxo,jmaxo,kmax,
101 & 0,iskipo,jn,js,mdim,kskipo,0,0,jc,
103 & gridx(inp),gridx(isp),gridy(inp),gridy(isp),1)
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 sptrand(IROMB, MAXWV, IDRT, IMAX, JMAX, KMAX, IPRIME, ISKIP, JNSKIP, JSSKIP, KWSKIP, KGSKIP, JBEG, JEND, JCPU, WAVE, GRIDMN, GRIDXN, GRIDXS, GRIDYN, GRIDYS, IDIR)
This subprogram performs a spherical transform between spectral coefficients of scalar fields and the...
subroutine sptrund(IROMB, MAXWV, IDRTI, IMAXI, JMAXI, IDRTO, IMAXO, JMAXO, KMAX, IPRIME, ISKIPI, JSKIPI, KSKIPI, ISKIPO, JSKIPO, KSKIPO, JCPU, GRID, GRIDMN, GRIDX, GRIDY)
THIS SUBPROGRAM SPECTRALLY TRUNCATES SCALAR FIELDS ON A GLOBAL CYLINDRICAL GRID, RETURNING THEIR MEAN...