16SUBROUTINE convert(rmnc, zmns, lmns, rmns, zmnc, lmnc, rzl_array, js)
23 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: rmnc
24 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: zmns
25 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: lmns
26 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: rmns
27 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: zmnc
28 REAL(rprec),
DIMENSION(mnmax),
INTENT(out) :: lmnc
29 REAL(rprec),
DIMENSION(ns, 0:ntor, 0:mpol1, 3*ntmax),
INTENT(in) :: rzl_array
30 INTEGER,
INTENT(in) :: js
32 REAL(rprec),
PARAMETER :: p5 = 0.5_dp
34 INTEGER :: rmncc, rmnss, rmncs, rmnsc, zmncs, zmnsc, &
35 zmncc, zmnss, lmncs, lmnsc, lmncc, lmnss
36 INTEGER :: mn, m, n, n1
37 REAL(rprec) :: t1, sign0
65 rmnc(mn) = t1*rzl_array(js,n,m,rmncc)
67 zmns(mn) =-t1*rzl_array(js,n,m,zmncs)
68 lmns(mn) =-t1*rzl_array(js,n,m,lmncs)
77 lmns(mn) =-t1*(2*rzl_array(2,n,m,lmncs) - rzl_array(3,n,m,lmncs))
92 rmnc(mn) = t1*rzl_array(js,n,m,rmncc)
93 zmns(mn) = t1*rzl_array(js,n,m,zmnsc)
94 lmns(mn) = t1*rzl_array(js,n,m,lmnsc)
95 ELSE IF (js .gt. 1)
THEN
98 rmnc(mn) = p5*t1*(rzl_array(js,n1,m,rmncc)+sign0*rzl_array(js,n1,m,rmnss))
99 zmns(mn) = p5*t1*(rzl_array(js,n1,m,zmnsc)-sign0*rzl_array(js,n1,m,zmncs))
100 lmns(mn) = p5*t1*(rzl_array(js,n1,m,lmnsc)-sign0*rzl_array(js,n1,m,lmncs))
101 ELSE IF (js .eq. 1)
THEN
110 IF (mn .ne. mnmax) stop
'Error in Convert!'
126 zmnc(mn) = t1*rzl_array(js,n,m,zmncc)
127 lmnc(mn) = t1*rzl_array(js,n,m,lmncc)
129 rmns(mn) =-t1*rzl_array(js,n,m,rmncs)
138 rmns(mn) = t1*rzl_array(js,n,m,rmnsc)
139 zmnc(mn) = t1*rzl_array(js,n,m,zmncc)
140 lmnc(mn) = t1*rzl_array(js,n,m,lmncc)
141 ELSE IF (js .gt. 1)
THEN
144 rmns(mn) = p5*t1*(rzl_array(js,n1,m,rmnsc)-sign0*rzl_array(js,n1,m,rmncs))
145 zmnc(mn) = p5*t1*(rzl_array(js,n1,m,zmncc)+sign0*rzl_array(js,n1,m,zmnss))
146 lmnc(mn) = p5*t1*(rzl_array(js,n1,m,lmncc)+sign0*rzl_array(js,n1,m,lmnss))
147 ELSE IF (js .eq. 1)
THEN
subroutine convert(rmnc, zmns, lmns, rmns, zmnc, lmnc, rzl_array, js)
Convert internal mode representation to standard form for output (coefficients of cos(mu-nv),...