34 SUBROUTINE spgradx(M,INCW,KMAX,MP,CLAT,W,WX)
37 INTEGER,
INTENT(IN):: M,INCW,KMAX,MP(KMAX)
38 REAL,
INTENT(IN):: CLAT
39 REAL,
INTENT(INOUT):: W(2*INCW,KMAX)
40 REAL,
INTENT(OUT):: WX(2*INCW,KMAX)
42 REAL,
PARAMETER:: RERTH=6.3712e6
47 wx(2*l+1,k)=-w(2*l+2,k)*(l/rerth)
48 wx(2*l+2,k)=+w(2*l+1,k)*(l/rerth)
50 ELSEIF(clat.EQ.0.)
THEN
55 IF(mp(k).EQ.10.AND.m.GE.2)
THEN
63 wx(2*l+1,k)=-w(2*l+2,k)*(l/(rerth*clat))
64 wx(2*l+2,k)=+w(2*l+1,k)*(l/(rerth*clat))