2 I(MEND1,NEND1,JEND1 ,MNWAV,IMAX,JMAX,IMX ,JMAXHF,KMAX,
3 I IFAX ,TRIGS,SINCLT,ER ,PNM ,DPNM,QROT,QDIV,
7 C...GU,GV IS NOT PSEUDO WIND,9.5.NOT MULTIPLIED BY SINCLT
9 DIMENSION QROT(2,KMAX,MNWAV),QDIV(2,KMAX,MNWAV)
12 c DIMENSION IFAX(10),TRIGS(500)
13 DIMENSION IFAX(10),TRIGS(IMAX)
14 C...WARNING: THE DIMENSION OF GU,GV,GWRK SHOULD BE .GE. IMX*JMAX*KMAX
16 DIMENSION GU (IMAX,JMAX,KMAX),GV (IMAX,JMAX,KMAX)
17 DIMENSION GWRK(IMAX,JMAX,KMAX)
18 DIMENSION PNM (MNWAV,JMAXHF) ,DPNM(MNWAV,JMAXHF)
19 DIMENSION SINCLT(JMAX)
21 C...CONVERSION TO PSI & CHI
26 NMAX=MIN(NEND1,JEND1+1-M)
31 FNN1=-ERSQ/( AN*(AN+1.0) )
35 QROT(K,K1,L+N)=FNN1*QROT(K,K1,L+N)
36 QDIV(K,K1,L+N)=FNN1*QDIV(K,K1,L+N)
42 I(MEND1,NEND1,JEND1,MNWAV,IMAX,JMAX,JMAXHF,KMAX,PNM,DPNM,QROT,QDIV,
46 CALL FFT991(GU,TRIGS,IFAX,1,IMX,IMAX,LOT,1)
47 CALL FFT991(GV,TRIGS,IFAX,1,IMX,IMAX,LOT,1)
48 C CALL FFT991(GU ,GWRK,TRIGS,IFAX,1,IMX,IMAX,LOT,1)
49 C CALL FFT991(GV ,GWRK,TRIGS,IFAX,1,IMX,IMAX,LOT,1)
53 IF(SINCLT(J).GT.1.0D-6) THEN
54 SINCLI=1.0/(ER*SINCLT(J))
58 GU(I,J,K)=GU(I,J,K)*SINCLI
59 GV(I,J,K)=GV(I,J,K)*SINCLI
62 C...CONVERSION TO ROT & DIV
65 NMAX=MIN(NEND1,JEND1+1-M)
68 FNN1=-AN*(AN+1.0)*ERSQIV
71 QROT(K,1,L+N)=FNN1*QROT(K,1,L+N)
72 QDIV(K,1,L+N)=FNN1*QDIV(K,1,L+N)