-
Notifications
You must be signed in to change notification settings - Fork 0
/
p2mod.f
2566 lines (2564 loc) · 95.2 KB
/
p2mod.f
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
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
!-----------------------------------------------------------------------
!
module p2d
!
! Fortran90 interface to 2d parallel PIC Fortran77 library p2lib.f
! p2mod.f contains interface procedures for communications with 1d
! partitions:
! defines module p2d
! dcomp => idcomp2 finds uniform 1d partition boundaries in 2d code.
! calls DCOMP2, or DCOMP2L
! pmove => iwpmove2 moves particles to appropriate processor non-uniform
! 1d partition boundaries in 2d code.
! calls WPMOVE2, or WPXMOV2
! pmove => iwpdmove2 moves particles to appropriate processor
! non-uniform 1d partition boundaries in 2d code, and returns
! load imbalance.
! calls WPMOVE2, or WPXMOV2
! pmoves => iwpmoves2 moves particles to appropriate processor
! non-uniform 1d partition boundaries in 2d code. Optimized
! requiring that maximum number of particle passes must be
! known.
! calls WPMOVES2, or WPXMOVS2
! pcguard => ipcguard2 copies guard cells in y for uniform, periodic 2d
! vector data.
! calls PCGUARD2, or PCGUARD2L
! pcguard => ipdguard2 copies guard cells in y for uniform, periodic 2d
! scalar data.
! calls PCGUARD2, or PCGUARD2L
! pcguardp => ipcguard2p copies guard cells in y for uniform,
! non-periodic 2d vector data.
! calls PCGUARD2, PCGUARD2L, PLBGUARD2, or PLCGUARD2
! pcguardp => ipdguard2p copies guard cells in y for uniform.
! non-periodic 2d scalar data.
! calls PCGUARD2, PCGUARD2L, PLDGUARD2, or PLCGUARD2L
! pncguardp => ipncguard2p copies guard cells in y for non-uniform,
! non-periodic 2d vector data.
! calls PNCGUARD2, PNCGUARD2L, PNLBGUARD2, PNLCGUARD2, or
! PNLCGUARD2L
! pncguardp => ipndguard2p copies guard cells in y for non-uniform,
! non-periodic 2d scalar data.
! calls PNCGUARD2, PNCGUARD2L, PNLDGUARD2, or PNLCGUARD2L
! paguard => ipaguard2 add2 guard cells in y for uniform, periodic 2d
! scalar data.
! calls PAGUARD2, or PAGUARD2L
! paguard => ipacguard2 adds guard cells in y for uniform, periodic 2d
! vector data.
! calls PACGUARD2, PACGUARD22, PACGUARD2L, or PACGUARD22L
! pamcguard => ipamcguard2 adds guard cells in y for uniform, periodic
! 2d tensor data.
! calls PAMCGUARD2, or PAMCGUARD2L
! paguardp => ipaguard2p adds guard cells in y for uniform, non-periodic
! 2d scalar data.
! calls PAGUARD2, PAGUARD2L, PLAGUARD2, PLAGUARD2, or
! PLAGUARD2L
! paguardp => ipacguard2p adds guard cells in y for uniform,
! non-periodic 2d vector data.
! calls PACGUARD2, PACGUARD22, PACGUARD2L, PACGUARD22L,
! PLACGUARD2, PLACGUARDS2, PLACGUARD22, PLACGUARDS22,
! PLACGUARD2L, or PLACGUARD22L
! pnaguardp => ipnaguard2p adds guard cells in y for non-uniform,
! non-periodic 2d scalar data.
! calls PNAGUARD2, PNAGUARD2L, PNLAGUARD2, PNLAGUARDS2, or
! PNLAGUARD2L
! pnaguardp => ipnacguard2p adds guard cells in y for non-uniform,
! non-periodic 2d vector data.
! calls PNACGUARD2, PNACGUARD22, PNACGUARD2L, PNACGUARD22L,
! PNLACGUARD2, PNLACGUARDS2, PNLACGUARD22, PNLACGUARDS22,
! PNLACGUARD2L, or PNLACGUARD22L
! pfmove => ipfmove2 moves 2d scalar data between uniform and
! non-uniform 1d partitions.
! calls PFMOVE2
! pfmove => ipfcmove2 moves 2d vector data between uniform and
! non-uniform 1d partitions.
! calls PFMOVE2
! pfmove => ipnfmove2 moves 2d scalar data between two different
! non-uniform 1d partitions.
! calls PFMOVE2
! repart => irepartd2 finds new 1d partitions from old partition and
! particle information.
! calls REPARTD2
! fnoff => ifnoff2 finds new 1d partitions arrays from edges.
! calls FNOFF2
! dblsin => ipdblsin2c doubles array in each dimension for 2d vector
! data for dirichlet boundary conditions.
! calls PDBLSIN2B, or PDBLSIN2C
! dblsin => ipdblsin2d doubles array in each dimension for 2d scalar
! data for dirichlet boundary conditions.
! calls PDBLSIN2D
! dblcos => ipdblcos2c doubles array in each dimension for 2d vector
! data for neumann boundary conditions.
! calls PDBLCOS2B, or PDBLCOS2C
! dblcos => ipdblcos2d doubles array in each dimension for 2d scalar
! data for neumann boundary conditions.
! calls PDBLCOS2D
! hafdbl => iphafdbl2c copies 2d vector data from double to normal array
! in each dimension.
! calls PHAFDBL2D
! hafdbl => iphafdbl2d copies 2d scalar data from double to normal array
! in each dimension.
! calls PHAFDBL2B, or PHAFDBL2C
! zdbl => izpdbl2c doubles array in each dimension for 2d vector data,
! zeroing copies for open boundary conditions.
! calls PZDBL2B, or PZDBL2C
! zdbl => izpdbl2d doubles array in each dimension for 2d scalar data,
! zeroing copies for open boundary conditions.
! calls PZDBL2D
! plsum => ipsum2 perform2 global sum of 2d real array.
! calls PSUM
! plbcast => ipbcast2 broadcasts 2d real array.
! calls PBCAST
! writebf => ipwrite2 collects a subset of a distributed real 2d scalar
! array and writes it to a direct access binary file.
! calls PWRITE2
! writebf => ipcwrite2 collects a subset of a distributed complex 2d
! scalar array and writes it to a direct access binary file.
! calls PCWRITE2
! writebf => ipvcwrite2 collects a subset of a distributed complex 2d
! vector array and writes it to a direct access binary file.
! calls PCWRITE2
! readbf => ipread2 reads a subset of a distributed real 2d scalar array
! from a direct access binary file and distributes it.
! calls PREAD2
! readbf => ipcread2 reads a subset of a distributed complex 2d scalar
! array from a direct access binary file and distributes it.
! calls PCREAD2
! readbf => ipvcread2 reads a subset of a distributed complex 2d vector
! array from a direct access binary file and distributes it.
! calls PCREAD2
! wrdata => ipwrdata2 collects distributed real 2d scalar data and
! writes it to a fortran unformatted sequential file.
! calls PWRDATA
! wrdata => ipwrrdata2 collects distributed real 2d vector data and
! writes it to a fortran unformatted sequential file.
! calls PWRDATA
! wrdata => ipwrcdata2 collects distributed complex 2d vector data and
! writes it to a fortran unformatted sequential file.
! calls PWRDATA
! rddata => iprddata2 reads real 2d scalar data from a fortran
! unformatted sequential file and distributes it, for uniform
! 1d partitions
! calls PRDDATA
! rddata => iprdrdata2 reads real 2d vector data from a fortran
! unformatted sequential file and distributes it.
! calls PWRDATA
! rddata => iprdcdata2 reads complex 2d vector data from a fortran
! unformatted sequential file, and distributes it.
! calls PRDDATA
! written by viktor k. decyk, ucla
! copyright 2000, regents of the university of california
! update: november 5, 2009
!
use p0d
implicit none
private
public :: LINEAR, QUADRATIC, STANDARD, LOOKAHEAD, VECTOR
public :: PPINIT, PPID, PPEXIT, HARTBEAT
public :: get_funit, pwtimer, plsum, plmax, plscan, plbcast
public :: writebf, readbf, wtimer, wrdata, rddata
public :: dcomp, pmove, pcguard, pcguardp
public :: paguard, pamcguard, paguardp, pncguardp, pnaguardp
public :: pfmove, repart
public :: fnoff, dblsin, dblcos, hafdbl, zdbl, pmoves
!
! buffer data for particle managers
real, dimension(:,:,:), allocatable :: sbufl, sbufr, rbufl, rbufr
integer, dimension(:,:), allocatable :: ihole
integer :: szbuf = 0
save
!
! define interface to original Fortran77 procedures
!
interface
subroutine DCOMP2(edges,nyp,noff,ny,kstrt,nvp,idps,nblok)
implicit none
integer :: ny, kstrt, nvp, idps, nblok
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: nyp, noff
end subroutine
end interface
interface
subroutine DCOMP2L(edges,nyp,noff,ny,kstrt,nvp,idps,nblok)
implicit none
integer :: ny, kstrt, nvp, idps, nblok
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: nyp, noff
end subroutine
end interface
interface
subroutine PCGUARD2(f,kstrt,nvp,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PNCGUARD2(f,scs,nyp,kstrt,nvp,nxv,nypmx,nblok,mter)
implicit none
integer :: kstrt, nvp, nxv, nypmx, nblok, mter
real, dimension(nxv,nypmx,nblok) :: f
real, dimension(nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PCGUARD2L(f,kstrt,nvp,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PNCGUARD2L(f,nyp,kstrt,nvp,nxv,nypmx,nblok)
implicit none
integer :: kstrt, nvp, nxv, nypmx, nblok
real, dimension(nxv,nypmx,nblok) :: f
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PACGUARD2(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ngd&
&s)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(3,nxv,nypmx,kblok) :: f
real, dimension(3,nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PACGUARD22(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ng&
&ds)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(2,nxv,nypmx,kblok) :: f
real, dimension(2,nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PAGUARD2(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ngds&
&)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(nxv,nypmx,kblok) :: f
real, dimension(nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PAMCGUARD2(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ngd&
&s,ndim)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds, ndim
real, dimension(ndim,nxv,nypmx,kblok) :: f
real, dimension(ndim,nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PNACGUARD2(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblo&
&k,ngds,mter)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,ngds,nblok) :: scr
real, dimension(3,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNACGUARD22(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nbl&
&ok,ngds,mter)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(2,nxv,nypmx,nblok) :: f
real, dimension(2,nxv,ngds,nblok) :: scr
real, dimension(2,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNAGUARD2(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblok&
&,ngds,mter)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(nxv,nypmx,nblok) :: f
real, dimension(nxv,ngds,nblok) :: scr
real, dimension(nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNAMCGUARD2(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nbl&
&ok,ngds,ndim,mter)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok, ngds, ndim, mter
real, dimension(ndim,nxv,nypmx,nblok) :: f
real, dimension(ndim,nxv,ngds,nblok) :: scr
real, dimension(ndim,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PACGUARD2L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(3,nxv,nypmx,kblok) :: f
real, dimension(3,nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PACGUARD22L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(2,nxv,nypmx,kblok) :: f
real, dimension(2,nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PAGUARD2L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
real, dimension(nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PAMCGUARD2L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,n&
&dim)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ndim
real, dimension(ndim,nxv,nypmx,kblok) :: f
real, dimension(ndim,nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PNACGUARD2L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNACGUARD22L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(2,nxv,nypmx,nblok) :: f
real, dimension(2,nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNAGUARD2L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(nxv,nypmx,nblok) :: f
real, dimension(nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNAMCGUARD2L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,&
&ndim)
implicit none
integer kstrt, nvp, nx, nxv, nypmx, nblok, ndim
real, dimension(ndim,nxv,nypmx,nblok) :: f
real, dimension(ndim,nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PDBLSIN2C(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok&
&,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(2,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PDBLSIN2D(q,q2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k&
&2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: q
real, dimension(2*nxv,kyp2,k2blok) :: q2
end subroutine
end interface
interface
subroutine PDBLSIN2B(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok&
&,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(3,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PDBLCOS2C(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok&
&,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(2,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PDBLCOS2D(q,q2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k&
&2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: q
real, dimension(2*nxv,kyp2,k2blok) :: q2
end subroutine
end interface
interface
subroutine PDBLCOS2B(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok&
&,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(3,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PHAFDBL2C(fxy,fxy2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kbl&
&ok,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: fxy
real, dimension(2,2*nxv,kyp2,k2blok) :: fxy2
end subroutine
end interface
interface
subroutine PHAFDBL2D(q,q2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k&
&2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: q
real, dimension(2*nxv,kyp2,k2blok) :: q2
end subroutine
end interface
interface
subroutine PHAFDBL2B(fxy,fxy2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kbl&
&ok,k2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: fxy
real, dimension(3,2*nxv,kyp2,k2blok) :: fxy2
end subroutine
end interface
interface
subroutine PLCGUARD2(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(2,nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PLDGUARD2(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PLBGUARD2(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(3,nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PNLCGUARD2(f,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mt&
&er)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(2,nxv,nypmx,nblok) :: f
real, dimension(2,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLDGUARD2(f,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mt&
&er)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(nxv,nypmx,nblok) :: f
real, dimension(nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLBGUARD2(f,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mt&
&er)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PLCGUARD2L(f,kstrt,nvp,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PNLCGUARD2L(f,nyp,kstrt,nvp,nxv,nypmx,nblok)
implicit none
integer :: kstrt, nvp, nxv, nypmx, nblok
real, dimension(nxv,nypmx,nblok) :: f
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PLACGUARD2(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ng&
&ds)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(3,nxv,nypmx,kblok) :: f
real, dimension(3,nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PLACGUARD22(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,n&
&gds)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(2,nxv,nypmx,kblok) :: f
real, dimension(2,nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PLAGUARD2(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok,ngd&
&s)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok, ngds
real, dimension(nxv,nypmx,kblok) :: f
real, dimension(nxv,ngds,kblok) :: scr
end subroutine
end interface
interface
subroutine PNLACGUARD2(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nbl&
&ok,ngds,mter)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,ngds,nblok) :: scr
real, dimension(3,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLACGUARD22(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nb&
&lok,ngds,mter)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(2,nxv,nypmx,nblok) :: f
real, dimension(2,nxv,ngds,nblok) :: scr
real, dimension(2,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLAGUARD2(f,scr,scs,nyp,kstrt,nvp,nx,nxv,nypmx,nblo&
&k,ngds,mter)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, ngds, mter
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,ngds,nblok) :: scr
real, dimension(3,nxv,nblok) :: scs
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PLACGUARDS2(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(3,nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PLACGUARDS22(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(2,nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PLAGUARDS2(f,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
end subroutine
end interface
interface
subroutine PNLACGUARDS2(f,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mter&
&)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(3,nxv,nypmx,nblok) :: f
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLACGUARDS22(f,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mte&
&r)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(2,nxv,nypmx,nblok) :: f
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLAGUARDS2(f,nyp,kstrt,nvp,nx,nxv,nypmx,nblok,mter)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok, mter
real, dimension(nxv,nypmx,nblok) :: f
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PLACGUARD2L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(3,nxv,nypmx,kblok) :: f
real, dimension(3,nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PLACGUARD22L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(2,nxv,nypmx,kblok) :: f
real, dimension(2,nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PLAGUARD2L(f,scr,kstrt,nvp,nx,nxv,nypmx,kyp,kblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, kyp, kblok
real, dimension(nxv,nypmx,kblok) :: f
real, dimension(nxv,kblok) :: scr
end subroutine
end interface
interface
subroutine PNLACGUARD2L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(3,nxv,nypmx,nblok) :: f
real, dimension(3,nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLACGUARD22L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok&
&)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(2,nxv,nypmx,nblok) :: f
real, dimension(2,nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PNLAGUARD2L(f,scr,nyp,kstrt,nvp,nx,nxv,nypmx,nblok)
implicit none
integer :: kstrt, nvp, nx, nxv, nypmx, nblok
real, dimension(nxv,nypmx,nblok) :: f
real, dimension(nxv,nblok) :: scr
integer, dimension(nblok) :: nyp
end subroutine
end interface
interface
subroutine PZDBL2C(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k&
&2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(2,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PZDBL2D(q,q2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k2b&
&lok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: q
real, dimension(2*nxv,kyp2,k2blok) :: q2
end subroutine
end interface
interface
subroutine PZDBL2B(cu,cu2,nx,ny,kstrt,nxv,kyp,kypd,kyp2,kblok,k&
&2blok)
implicit none
integer :: nx, ny, kstrt, nxv, kyp, kypd, kyp2, kblok, k2blok
real :: cu
real, dimension(3,2*nxv,kyp2,k2blok) :: cu2
end subroutine
end interface
interface
subroutine PMOVE2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihole,&
&jsr,jsl,jss,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,info)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real, dimension(idimp,npmax,nblok) :: part
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine PXMOV2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihole,&
&jsr,jsl,jss,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,maskp,&
&info)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real, dimension(idimp,npmax,nblok) :: part
integer, dimension(npmax,nblok) :: maskp
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine WPMOVE2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihole&
&,jsr,jsl,jss,th,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,in&
&fo)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real :: th
real, dimension(idimp,npmax,nblok) :: part
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine WPXMOV2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihole&
&,jsr,jsl,jss,th,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,ma&
&skp,info)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real :: th
real, dimension(idimp,npmax,nblok) :: part
integer, dimension(npmax,nblok) :: maskp
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine WPMOVES2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihol&
&e,jsr,jsl,jss,th,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,i&
&nfo)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real :: th
real, dimension(idimp,npmax,nblok) :: part
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine WPXMOVS2(part,edges,npp,sbufr,sbufl,rbufr,rbufl,ihol&
&e,jsr,jsl,jss,th,ny,kstrt,nvp,idimp,npmax,nblok,idps,nbmax,ntmax,m&
&askp,info)
implicit none
integer :: ny, kstrt, nvp, idimp, npmax, nblok, idps
integer :: nbmax, ntmax
real :: th
real, dimension(idimp,npmax,nblok) :: part
integer, dimension(npmax,nblok) :: maskp
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: npp
real, dimension(idimp,nbmax,nblok) :: sbufl, sbufr
real, dimension(idimp,nbmax,nblok) :: rbufl, rbufr
integer, dimension(idps,nblok) :: jsl, jsr, jss
integer, dimension(ntmax,nblok) :: ihole
integer, dimension(7) :: info
end subroutine
end interface
interface
subroutine PFMOVE2(f,g,noff,nyp,noffs,nyps,noffd,nypd,jsr,jsl,i&
&sign,kyp,kstrt,nvp,nxv,nypmx,nblok,idps,mter,ierr)
implicit none
integer :: isign, kyp, kstrt, nvp, nxv, nypmx, nblok, idps
integer :: mter, ierr
! real, dimension(*) :: f
real :: f
real, dimension(nxv,nypmx,nblok) :: g
integer, dimension(nblok) :: noff, nyp
integer, dimension(nblok) :: noffs, nyps, noffd, nypd
integer, dimension(idps,nblok) :: jsl, jsr
end subroutine
end interface
interface
subroutine REPARTD2(edges,edg,eds,eg,es,et2,npic,noff,nyp,anpav&
&,nypmin,nypmax,kstrt,nvp,nblok,idps,nypm)
implicit none
integer :: nypmin, nypmax, kstrt, nvp, nblok, idps, nypm
real :: anpav
real, dimension(idps,nblok) :: edges
real, dimension(nypm,nblok) :: edg, eds
real, dimension(idps,nblok) :: eg, es
real, dimension(2*idps,nblok) :: et2
integer, dimension(nypm,nblok) :: npic
integer, dimension(nblok) :: noff, nyp
end subroutine
end interface
interface
subroutine FNOFF2(edges,noff,nyp,nypmin,nypmax,nblok,idps)
implicit none
integer :: nypmin, nypmax, nblok, idps
real, dimension(idps,nblok) :: edges
integer, dimension(nblok) :: noff, nyp
end subroutine
end interface
interface
subroutine PTPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kypd&
&,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
complex, dimension(nxv,kypd,kblok) :: f
complex, dimension(nyv,kxpd,jblok) :: g
complex, dimension(kxp,kyp,kblok) :: s
complex, dimension(kxp,kyp,jblok) :: t
end subroutine
end interface
interface
subroutine P2TPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kyp&
&d,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
complex, dimension(2,nxv,kypd,kblok) :: f
complex, dimension(2,nyv,kxpd,jblok) :: g
complex, dimension(2,kxp,kyp,kblok) :: s
complex, dimension(2,kxp,kyp,jblok) :: t
end subroutine
end interface
interface
subroutine P3TPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kyp&
&d,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
complex, dimension(3,nxv,kypd,kblok) :: f
complex, dimension(3,nyv,kxpd,jblok) :: g
complex, dimension(3,kxp,kyp,kblok) :: s
complex, dimension(3,kxp,kyp,jblok) :: t
end subroutine
end interface
interface
subroutine PTPOSEX(f,g,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kypd,jb&
&lok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp
integer :: kxpd, kypd, jblok, kblok
complex, dimension(nxv*kypd*kblok) :: f
complex, dimension(nyv*kxpd*jblok) :: g
end subroutine
end interface
interface
subroutine P2TPOSEX(f,g,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kypd,j&
&blok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp
integer :: kxpd, kypd, jblok, kblok
complex, dimension(2*nxv*kypd*kblok) :: f
complex, dimension(2*nyv*kxpd*jblok) :: g
end subroutine
end interface
interface
subroutine P3TPOSEX(f,g,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kypd,j&
&blok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp
integer :: kxpd, kypd, jblok, kblok
complex, dimension(3*nxv*kypd*kblok) :: f
complex, dimension(3*nyv*kxpd*jblok) :: g
end subroutine
end interface
interface
subroutine PNTPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kyp&
&d,jblok,kblok,ndim)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok, ndim
complex, dimension(3,nxv,kypd,kblok) :: f
complex, dimension(3,nyv,kxpd,jblok) :: g
complex, dimension(3,kxp,kyp,kblok) :: s
complex, dimension(3,kxp,kyp,jblok) :: t
end subroutine
end interface
interface
subroutine PNTPOSEX(f,g,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kypd,j&
&blok,kblok,ndim)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp
integer :: kxpd, kypd, jblok, kblok, ndim
complex, dimension(3*nxv*kypd*kblok) :: f
complex, dimension(3*nyv*kxpd*jblok) :: g
end subroutine
end interface
interface
subroutine PRTPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,kyp&
&d,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
real, dimension(nxv,kypd,kblok) :: f
real, dimension(nyv,kxpd,jblok) :: g
real, dimension(kxp+1,kyp+1,kblok) :: s
real, dimension(kxp+1,kyp+1,jblok) :: t
end subroutine
end interface
interface
subroutine PR2TPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,ky&
&pd,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
real, dimension(2,nxv,kypd,kblok) :: f
real, dimension(2,nyv,kxpd,jblok) :: g
real, dimension(2,kxp+1,kyp+1,kblok) :: s
real, dimension(2,kxp+1,kyp+1,jblok) :: t
end subroutine
end interface
interface
subroutine PR3TPOSE(f,g,s,t,nx,ny,kstrt,nxv,nyv,kxp,kyp,kxpd,ky&
&pd,jblok,kblok)
implicit none
integer :: nx, ny, kstrt, nxv, nyv, kxp, kyp, kxpd, kypd
integer :: jblok, kblok
real, dimension(3,nxv,kypd,kblok) :: f
real, dimension(3,nyv,kxpd,jblok) :: g
real, dimension(3,kxp+1,kyp+1,kblok) :: s
real, dimension(3,kxp+1,kyp+1,jblok) :: t
end subroutine
end interface
interface
subroutine PWRITE2(f,nx,kyp,nxv,kypmx,nblok,iunit,nrec,lrec,nam&
&e)
implicit none
integer :: nx, kyp, nxv, kypmx, nblok, iunit, nrec, lrec
character(len=*) :: name
! real, dimension(*) :: f
real :: f
end subroutine
end interface
interface
subroutine PREAD2(f,nx,kyp,nxv,kypmx,nblok,iunit,nrec,lrec,name&
&,ierror)
implicit none
integer :: nx, kyp, nxv, kypmx, nblok, iunit, nrec, lrec
integer :: ierror
character(len=*) :: name
! real, dimension(*) :: f
real :: f
end subroutine
end interface
interface
subroutine PCWRITE2(f,nx,ny,kxp,nyv,kxpd,jblok,iunit,nrec,lrec,&
&name)
implicit none
integer :: nx, ny, kxp, nyv, kxpd, jblok, iunit, nrec, lrec
character(len=*) :: name
complex, dimension(nyv,kxpd,jblok) :: f
end subroutine
end interface
interface