Changeset 4429 for palm/trunk/SOURCE/transpose.f90
- Timestamp:
- Feb 27, 2020 3:24:30 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/transpose.f90
r4415 r4429 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfix: cpp-directives added for serial mode 28 ! 29 ! 4415 2020-02-20 10:30:33Z raasch 27 30 ! bugfix for misplaced preprocessor directive 28 31 ! … … 111 114 112 115 116 #if defined( __parallel ) 113 117 USE cpulog, & 114 118 ONLY: cpu_log, cpu_log_nowait, log_point_s 119 #endif 115 120 116 121 USE indices, & … … 129 134 INTEGER(iwp) :: j !< 130 135 INTEGER(iwp) :: k !< 136 137 #if defined( __parallel ) 131 138 INTEGER(iwp) :: l !< 132 139 INTEGER(iwp) :: ys !< 140 #endif 133 141 134 142 REAL(wp) :: f_inv(nys_x:nyn_x,nzb_x:nzt_x,0:nx) !< 135 143 REAL(wp) :: f_out(0:ny,nxl_y:nxr_y,nzb_y:nzt_y) !< 136 144 145 #if defined( __parallel ) 137 146 REAL(wp), DIMENSION(nyn_x-nys_x+1,nzb_y:nzt_y,nxl_y:nxr_y,0:pdims(2)-1) :: work !< 138 147 #if __acc_fft_device 139 148 !$ACC DECLARE CREATE(work) 149 #endif 140 150 #endif 141 151 … … 271 281 SUBROUTINE transpose_xz( f_in, f_inv ) 272 282 273 283 #if defined( __parallel ) 274 284 USE cpulog, & 275 285 ONLY: cpu_log, cpu_log_nowait, log_point_s … … 277 287 USE fft_xy, & 278 288 ONLY: f_vec_x, temperton_fft_vec 289 #endif 279 290 280 291 USE indices, & 281 ONLY: nnx, nx, nxl, nxr, nyn, nys, nz 292 ONLY: nx, nxl, nxr, nyn, nys, nz 293 #if defined( __parallel ) 294 USE indices, & 295 ONLY: nnx 296 #endif 282 297 283 298 USE kinds … … 293 308 INTEGER(iwp) :: j !< 294 309 INTEGER(iwp) :: k !< 310 #if defined( __parallel ) 295 311 INTEGER(iwp) :: l !< 296 312 INTEGER(iwp) :: mm !< 297 313 INTEGER(iwp) :: xs !< 314 #endif 298 315 299 316 REAL(wp) :: f_in(0:nx,nys_x:nyn_x,nzb_x:nzt_x) !< 300 317 REAL(wp) :: f_inv(nys:nyn,nxl:nxr,1:nz) !< 301 318 319 #if defined( __parallel ) 302 320 REAL(wp), DIMENSION(nys_x:nyn_x,nnx,nzb_x:nzt_x,0:pdims(1)-1) :: work !< 303 321 #if __acc_fft_device 304 322 !$ACC DECLARE CREATE(work) 323 #endif 305 324 #endif 306 325 … … 460 479 461 480 481 #if defined( __parallel ) 462 482 USE cpulog, & 463 483 ONLY: cpu_log, cpu_log_nowait, log_point_s 484 #endif 464 485 465 486 USE indices, & … … 478 499 INTEGER(iwp) :: j !< 479 500 INTEGER(iwp) :: k !< 501 #if defined( __parallel ) 480 502 INTEGER(iwp) :: l !< 481 503 INTEGER(iwp) :: ys !< 504 #endif 482 505 483 506 REAL(wp) :: f_in(0:ny,nxl_y:nxr_y,nzb_y:nzt_y) !< 484 507 REAL(wp) :: f_inv(nys_x:nyn_x,nzb_x:nzt_x,0:nx) !< 485 508 509 #if defined( __parallel ) 486 510 REAL(wp), DIMENSION(nyn_x-nys_x+1,nzb_y:nzt_y,nxl_y:nxr_y,0:pdims(2)-1) :: work !< 487 511 #if __acc_fft_device 488 512 !$ACC DECLARE CREATE(work) 513 #endif 489 514 #endif 490 515 … … 575 600 !> (k,j,i) (cf. transpose_yx). 576 601 !------------------------------------------------------------------------------! 602 #if defined( __parallel ) 577 603 SUBROUTINE transpose_yxd( f_in, f_out ) 578 604 … … 604 630 REAL(wp) :: f_out(0:nx,nys_x:nyn_x,nzb_x:nzt_x) !< 605 631 REAL(wp) :: work(nnx*nny*nnz) !< 606 #if defined( __parallel )607 632 608 633 ! … … 641 666 ENDDO 642 667 643 #endif644 645 668 END SUBROUTINE transpose_yxd 669 #endif 646 670 647 671 … … 703 727 704 728 729 #if defined( __parallel ) 705 730 USE cpulog, & 706 731 ONLY: cpu_log, cpu_log_nowait, log_point_s 732 #endif 707 733 708 734 USE indices, & … … 721 747 INTEGER(iwp) :: j !< 722 748 INTEGER(iwp) :: k !< 749 #if defined( __parallel ) 723 750 INTEGER(iwp) :: l !< 724 751 INTEGER(iwp) :: zs !< 752 #endif 725 753 726 754 REAL(wp) :: f_inv(nxl_y:nxr_y,nzb_y:nzt_y,0:ny) !< 727 755 REAL(wp) :: f_out(nxl_z:nxr_z,nys_z:nyn_z,1:nz) !< 728 756 757 #if defined( __parallel ) 729 758 REAL(wp), DIMENSION(nxl_z:nxr_z,nzt_y-nzb_y+1,nys_z:nyn_z,0:pdims(1)-1) :: work !< 730 759 #if __acc_fft_device 731 760 !$ACC DECLARE CREATE(work) 761 #endif 732 762 #endif 733 763 … … 864 894 865 895 896 #if defined( __parallel ) 866 897 USE cpulog, & 867 898 ONLY: cpu_log, cpu_log_nowait, log_point_s … … 869 900 USE fft_xy, & 870 901 ONLY: f_vec_x, temperton_fft_vec 902 #endif 871 903 872 904 USE indices, & 873 ONLY: nnx, nx, nxl, nxr, nyn, nys, nz 905 ONLY: nx, nxl, nxr, nyn, nys, nz 906 #if defined( __parallel ) 907 USE indices, & 908 ONLY: nnx 909 #endif 874 910 875 911 USE kinds … … 885 921 INTEGER(iwp) :: j !< 886 922 INTEGER(iwp) :: k !< 923 #if defined( __parallel ) 887 924 INTEGER(iwp) :: l !< 888 925 INTEGER(iwp) :: mm !< 889 926 INTEGER(iwp) :: xs !< 927 #endif 890 928 891 929 REAL(wp) :: f_inv(nys:nyn,nxl:nxr,1:nz) !< 892 930 REAL(wp) :: f_out(0:nx,nys_x:nyn_x,nzb_x:nzt_x) !< 893 931 932 #if defined( __parallel ) 894 933 REAL(wp), DIMENSION(nys_x:nyn_x,nnx,nzb_x:nzt_x,0:pdims(1)-1) :: work !< 895 934 #if __acc_fft_device 896 935 !$ACC DECLARE CREATE(work) 936 #endif 897 937 #endif 898 938 … … 1054 1094 1055 1095 1096 #if defined( __parallel ) 1056 1097 USE cpulog, & 1057 1098 ONLY: cpu_log, cpu_log_nowait, log_point_s 1099 #endif 1058 1100 1059 1101 USE indices, & … … 1072 1114 INTEGER(iwp) :: j !< 1073 1115 INTEGER(iwp) :: k !< 1116 #if defined( __parallel ) 1074 1117 INTEGER(iwp) :: l !< 1075 1118 INTEGER(iwp) :: zs !< 1119 #endif 1076 1120 1077 1121 REAL(wp) :: f_in(nxl_z:nxr_z,nys_z:nyn_z,1:nz) !< 1078 1122 REAL(wp) :: f_inv(nxl_y:nxr_y,nzb_y:nzt_y,0:ny) !< 1079 1123 1124 #if defined( __parallel ) 1080 1125 REAL(wp), DIMENSION(nxl_z:nxr_z,nzt_y-nzb_y+1,nys_z:nyn_z,0:pdims(1)-1) :: work !< 1081 1126 #if __acc_fft_device 1082 1127 !$ACC DECLARE CREATE(work) 1128 #endif 1083 1129 #endif 1084 1130 … … 1170 1216 !> (k,j,i) (cf. transpose_zy). 1171 1217 !------------------------------------------------------------------------------! 1218 #if defined( __parallel ) 1172 1219 SUBROUTINE transpose_zyd( f_in, f_out ) 1173 1220 … … 1199 1246 REAL(wp) :: f_out(0:ny,nxl_yd:nxr_yd,nzb_yd:nzt_yd) !< 1200 1247 REAL(wp) :: work(nnx*nny*nnz) !< 1201 1202 #if defined( __parallel )1203 1248 1204 1249 ! … … 1253 1298 ENDDO 1254 1299 1255 #endif1256 1257 1300 END SUBROUTINE transpose_zyd 1301 #endif
Note: See TracChangeset
for help on using the changeset viewer.