-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdpush2_h.f90
351 lines (351 loc) · 10.7 KB
/
dpush2_h.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
!-----------------------------------------------------------------------
! Interface file for dpush2.f
module dpush2_h
implicit none
!
interface
subroutine DISTR2H(part,vtx,vty,vtz,vdx,vdy,vdz,npx,npy,idimp, &
&nop,nx,ny,ipbc)
implicit none
integer :: npx, npy, idimp, nop, nx, ny, ipbc
real :: vtx, vty, vtz, vdx, vdy, vdz
real, dimension(idimp,nop) :: part
end subroutine
end interface
!
interface
subroutine GBPUSH23L(part,fxy,bxy,qbm,dt,dtc,ek,idimp,nop,nx,ny&
&,nxv,nyv,ipbc)
implicit none
integer :: idimp, nop, nx, ny, nxv, nyv, ipbc
real :: qbm, dt, dtc, ek
real, dimension(idimp,nop) :: part
real, dimension(3,nxv,nyv) :: fxy, bxy
end subroutine
end interface
!
interface
subroutine GPOST2L(part,q,qm,nop,idimp,nxv,nyv)
implicit none
integer :: nop, idimp, nxv, nyv
real :: qm
real, dimension(idimp,nop) :: part
real, dimension(nxv,nyv) :: q
end subroutine
end interface
!
interface
subroutine GJPOST2L(part,cu,qm,dt,nop,idimp,nx,ny,nxv,nyv,ipbc)
implicit none
integer :: nop, idimp, nx, ny, nxv, nyv, ipbc
real :: qm, dt
real, dimension(idimp,nop) :: part
real, dimension(3,nxv,nyv) :: cu
end subroutine
end interface
!
interface
subroutine GMJPOST2L(part,amu,qm,nop,idimp,nxv,nyv)
implicit none
integer :: nop, idimp, nxv, nyv
real :: qm
real, dimension(idimp,nop) :: part
real, dimension(4,nxv,nyv) :: amu
end subroutine
end interface
!
interface
subroutine GDJPOST2L(part,fxy,bxy,dcu,amu,qm,qbm,dt,idimp,nop, &
&nxv,nyv)
implicit none
integer :: idimp, nop, nxv, nyv
real :: qm, qbm, dt
real, dimension(idimp,nop) :: part
real, dimension(3,nxv,nyv) :: fxy, bxy, dcu
real, dimension(4,nxv,nyv) :: amu
end subroutine
end interface
!
interface
subroutine GDCJPOST2L(part,fxy,bxy,cu,dcu,amu,qm,qbm,dt,idimp, &
&nop,nxv,nyv)
implicit none
integer :: idimp, nop, nxv, nyv
real :: qm, qbm, dt
real, dimension(idimp,nop) :: part
real, dimension(3,nxv,nyv) :: fxy, bxy, cu, dcu
real, dimension(4,nxv,nyv) :: amu
end subroutine
end interface
!
interface
subroutine DSORTP2YL(parta,partb,npic,idimp,nop,ny1)
implicit none
integer :: idimp, nop, ny1
real, dimension(idimp,nop) :: parta, partb
integer, dimension(ny1) :: npic
end subroutine
end interface
!
interface
subroutine BGUARD2L(bxy,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real, dimension(3,nxe,nye) :: bxy
end subroutine
end interface
!
interface
subroutine ACGUARD2L(cu,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real, dimension(3,nxe,nye) :: cu
end subroutine
end interface
!
interface
subroutine AGUARD2L(q,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real, dimension(nxe,nye) :: q
end subroutine
end interface
!
interface
subroutine AMCGUARD2L(amu,nx,ny,nxe,nye,ndim)
implicit none
integer :: nx, ny, nxe, nye, ndim
real, dimension(ndim,nxe,nye) :: amu
end subroutine
end interface
!
interface
subroutine ASCFGUARD2L(dcu,cus,q2m0,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real :: q2m0
real, dimension(3,nxe,nye) :: dcu, cus
end subroutine
end interface
!
interface
subroutine FWPMINMX2(qe,qbme,wpmax,wpmin,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real :: qbme, wpmax, wpmin
real, dimension(nxe,nye) :: qe
end subroutine
end interface
!
interface
subroutine POIS23(q,fxy,isign,ffc,ax,ay,affp,we,nx,ny,nxvh,nyv,&
&nxhd,nyhd)
implicit none
integer :: isign, nx, ny, nxvh, nyv, nxhd, nyhd
real :: ax, ay, affp, we
real, dimension(2*nxvh,nyv) :: q
real, dimension(3,2*nxvh,nyv) :: fxy
complex, dimension(nxhd,nyhd) :: ffc
end subroutine
end interface
!
interface
subroutine CUPERP2(cu,nx,ny,nxvh,nyv)
implicit none
integer :: nx, ny, nxvh, nyv
real, dimension(3,2*nxvh,nyv) :: cu
end subroutine
end interface
!
interface
subroutine BBPOIS23(cu,bxy,ffc,ci,wm,nx,ny,nxvh,nyv,nxhd,nyhd)
implicit none
integer :: nx, ny, nxvh, nyv, nxhd, nyhd
real :: ci, wm
real, dimension(3,2*nxvh,nyv) :: cu, bxy
complex, dimension(nxhd,nyhd) :: ffc
end subroutine
end interface
!
interface
subroutine BADDEXT2(bxy,omx,omy,omz,nx,ny,nxe,nye)
implicit none
integer :: nx, ny, nxe, nye
real :: omx, omy, omz
real, dimension(3,nxe,nye) :: bxy
end subroutine
end interface
!
interface
subroutine DCUPERP23(dcu,amu,nx,ny,nxvh,nyv)
implicit none
integer :: nx, ny, nxvh, nyv
real, dimension(3,2*nxvh,nyv) :: dcu
real, dimension(4,2*nxvh,nyv) :: amu
end subroutine
end interface
!
interface
subroutine ADCUPERP23(dcu,amu,nx,ny,nxvh,nyv)
implicit none
integer :: nx, ny, nxvh, nyv
real, dimension(3,2*nxvh,nyv) :: dcu
real, dimension(4,2*nxvh,nyv) :: amu
end subroutine
end interface
!
interface
subroutine EPOIS23(dcu,exy,isign,ffe,ax,ay,affp,wp0,ci,wf,nx,ny&
&,nxvh,nyv,nxhd,nyhd)
implicit none
integer :: isign, nx, ny, nxvh, nyv, nxhd, nyhd
real :: ax, ay, affp, wp0, ci, wf
real, dimension(3,2*nxvh,nyv) :: dcu, exy
complex, dimension(nxhd,nyhd) :: ffe
end subroutine
end interface
!
interface
subroutine ADDVRFIELD2(a,b,c,ndim,nxe,nye)
implicit none
integer :: nxe, nye, ndim
real, dimension(ndim,nxe,nye) :: a, b, c
end subroutine
end interface
!
interface
subroutine WFFT2RINIT(mixup,sct,indx,indy,nxhyd,nxyhd)
implicit none
integer :: indx, indy, nxhyd, nxyhd
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine WFFT2RX(f,isign,mixup,sct,indx,indy,nxhd,nyd,nxhyd, &
&nxyhd)
implicit none
integer :: isign, indx, indy, nxhd, nyd, nxhyd, nxyhd
real, dimension(2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine WFFT2R3(f,isign,mixup,sct,indx,indy,nxhd,nyd,nxhyd, &
&nxyhd)
implicit none
integer :: isign, indx, indy, nxhd, nyd, nxhyd, nxyhd
real, dimension(3,2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine WFFT2RN(f,ss,isign,mixup,sct,indx,indy,nxhd,nyd,ndim&
&,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nxhd, nyd, ndim, nxhyd, nxyhd
real, dimension(ndim,2*nxhd,nyd) :: f
complex, dimension(ndim,nxhd) :: ss
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2RXX(f,isign,mixup,sct,indx,indy,nyi,nyp,nxhd,nyd&
&,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nyi, nyp, nxhd, nyd, nxhyd, nxyhd
real, dimension(2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2RXY(f,isign,mixup,sct,indx,indy,nxi,nxp,nxhd,nyd&
&,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nxi, nxp, nxhd, nyd, nxhyd, nxyhd
real, dimension(2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2R3X(f,isign,mixup,sct,indx,indy,nyi,nyp,nxhd,nyd&
&,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nyi, nyp, nxhd, nyd, nxhyd, nxyhd
real, dimension(3,2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2R3Y(f,isign,mixup,sct,indx,indy,nxi,nxp,nxhd,nyd&
&,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nxi, nxp, nxhd, nyd, nxhyd, nxyhd
real, dimension(3,2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2RNX(f,ss,isign,mixup,sct,indx,indy,nyi,nyp,nxhd,&
&nyd,ndim,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nyi, nyp, nxhd, nyd, ndim
integer :: nxhyd, nxyhd
real, dimension(ndim,2*nxhd,nyd) :: f
complex, dimension(ndim,nxhd) :: ss
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine FFT2RNY(f,isign,mixup,sct,indx,indy,nxi,nxp,nxhd,nyd&
&,ndim,nxhyd,nxyhd)
implicit none
integer :: isign, indx, indy, nxi, nxp, nxhd, nyd, ndim
integer :: nxhyd, nxyhd
real, dimension(ndim,2*nxhd,nyd) :: f
integer, dimension(nxhyd) :: mixup
complex, dimension(nxyhd) :: sct
end subroutine
end interface
!
interface
subroutine SWAPC2N(f,s,isign,nxh,nyi,nyt,nxhd,nyd,ndim)
implicit none
integer :: isign, nxh, nyi, nyt, nxhd, nyd, ndim
real, dimension(ndim,2*nxhd,nyd) :: f
complex, dimension(ndim*nxhd) :: s
end subroutine
end interface
!
interface
function ranorm()
implicit none
double precision :: ranorm
end function
end interface
!
interface
function randum()
implicit none
double precision :: randum
end function
end interface
!
end module