37 SUBROUTINE spgradx(M,INCW,KMAX,MP,CLAT,W,WX)
40 INTEGER,
INTENT(IN):: M,INCW,KMAX,MP(KMAX)
41 REAL,
INTENT(IN):: CLAT
42 REAL,
INTENT(INOUT):: W(2*INCW,KMAX)
43 REAL,
INTENT(OUT):: WX(2*INCW,KMAX)
45 REAL,
PARAMETER:: RERTH=6.3712e6
50 wx(2*l+1,k)=-w(2*l+2,k)*(l/rerth)
51 wx(2*l+2,k)=+w(2*l+1,k)*(l/rerth)
53 ELSEIF(clat.EQ.0.)
THEN
58 IF(mp(k).EQ.10.AND.m.GE.2)
THEN
66 wx(2*l+1,k)=-w(2*l+2,k)*(l/(rerth*clat))
67 wx(2*l+2,k)=+w(2*l+1,k)*(l/(rerth*clat))
subroutine spgradx(M, INCW, KMAX, MP, CLAT, W, WX)
This subprogram computes the x-gradient of fields in complex Fourier space.