65 SUBROUTINE sptrung(IROMB,MAXWV,IDRTI,IMAXI,JMAXI,KMAX,NMAX,
66 & IPRIME,ISKIPI,JSKIPI,KSKIPI,KGSKIP,
67 & NRSKIP,NGSKIP,JCPU,RLAT,RLON,GRIDI,GP)
69 REAL RLAT(*),RLON(*),GRIDI(*),GP(*)
70 REAL W((MAXWV+1)*((IROMB+1)*MAXWV+2)/2*2+1,KMAX)
74 IF(jc.EQ.0) jc=
ncpus()
75 mx=(maxwv+1)*((iromb+1)*maxwv+2)/2
80 inp=(jmaxi-1)*max(0,-jn)+1
81 isp=(jmaxi-1)*max(0,-js)+1
82 CALL sptran(iromb,maxwv,idrti,imaxi,jmaxi,kmax,
83 & iprime,iskipi,jn,js,mdim,kskipi,0,0,jc,
84 & w,gridi(inp),gridi(isp),-1)
87 CALL sptgpt(iromb,maxwv,kmax,nmax,mdim,kgskip,nrskip,ngskip,
function ncpus()
Set number of CPUs - the number of processors over which to parallelize.
subroutine sptgpt(IROMB, MAXWV, KMAX, NMAX, KWSKIP, KGSKIP, NRSKIP, NGSKIP, RLAT, RLON, WAVE, GP)
This subprogram performs a spherical transform from spectral coefficients of scalar quantities to spe...
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 sptrung(IROMB, MAXWV, IDRTI, IMAXI, JMAXI, KMAX, NMAX, IPRIME, ISKIPI, JSKIPI, KSKIPI, KGSKIP, NRSKIP, NGSKIP, JCPU, RLAT, RLON, GRIDI, GP)
This subprogram spectrally truncates scalar fields on a global cylindrical grid, returning the fields...