- Timestamp:
- Sep 25, 2019 11:26:18 AM (5 years ago)
- Location:
- palm/trunk/SOURCE
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/transpose.f90
r4182 r4236 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Added missing OpenMP directives 28 ! 29 ! 4182 2019-08-22 15:20:23Z scharf 27 30 ! Corrected "Former revisions" section 28 31 ! … … 162 165 !-- Reorder transposed array 163 166 !$OMP PARALLEL PRIVATE ( i, j, k, l, ys ) 164 !$OMP DO165 167 DO l = 0, pdims(2) - 1 166 168 ys = 0 + l * ( nyn_x - nys_x + 1 ) … … 169 171 !$ACC PRESENT(f_out, work) 170 172 #endif 173 !$OMP DO 171 174 DO i = nxl_y, nxr_y 172 175 DO k = nzb_y, nzt_y … … 176 179 ENDDO 177 180 ENDDO 181 !$OMP END DO NOWAIT 178 182 ENDDO 179 183 !$OMP END PARALLEL … … 298 302 !-- Reorder input array for transposition 299 303 !$OMP PARALLEL PRIVATE ( i, j, k, l, xs ) 300 !$OMP DO301 304 DO l = 0, pdims(1) - 1 302 305 xs = 0 + l * nnx … … 305 308 !$ACC PRESENT(work, f_in) 306 309 #endif 310 !$OMP DO 307 311 DO k = nzb_x, nzt_x 308 312 DO i = xs, xs + nnx - 1 … … 312 316 ENDDO 313 317 ENDDO 318 !$OMP END DO NOWAIT 314 319 ENDDO 315 320 !$OMP END PARALLEL … … 460 465 !-- Reorder input array for transposition 461 466 !$OMP PARALLEL PRIVATE ( i, j, k, l, ys ) 462 !$OMP DO463 467 DO l = 0, pdims(2) - 1 464 468 ys = 0 + l * ( nyn_x - nys_x + 1 ) … … 467 471 !$ACC PRESENT(work, f_in) 468 472 #endif 473 !$OMP DO 469 474 DO i = nxl_y, nxr_y 470 475 DO k = nzb_y, nzt_y … … 474 479 ENDDO 475 480 ENDDO 481 !$OMP END DO NOWAIT 476 482 ENDDO 477 483 !$OMP END PARALLEL … … 749 755 !-- Reorder transposed array 750 756 !$OMP PARALLEL PRIVATE ( i, j, k, l, zs ) 751 !$OMP DO752 757 DO l = 0, pdims(1) - 1 753 758 zs = 1 + l * ( nzt_y - nzb_y + 1 ) … … 756 761 !$ACC PRESENT(f_out, work) 757 762 #endif 763 !$OMP DO 758 764 DO j = nys_z, nyn_z 759 765 DO k = zs, zs + nzt_y - nzb_y … … 763 769 ENDDO 764 770 ENDDO 771 !$OMP END DO NOWAIT 765 772 ENDDO 766 773 !$OMP END PARALLEL … … 909 916 !-- Reorder transposed array 910 917 !$OMP PARALLEL PRIVATE ( i, j, k, l, xs ) 911 !$OMP DO912 918 DO l = 0, pdims(1) - 1 913 919 xs = 0 + l * nnx … … 916 922 !$ACC PRESENT(f_out, work) 917 923 #endif 924 !$OMP DO 918 925 DO k = nzb_x, nzt_x 919 926 DO i = xs, xs + nnx - 1 … … 923 930 ENDDO 924 931 ENDDO 932 !$OMP END DO NOWAIT 925 933 ENDDO 926 934 !$OMP END PARALLEL … … 1028 1036 !-- Reorder input array for transposition 1029 1037 !$OMP PARALLEL PRIVATE ( i, j, k, l, zs ) 1030 !$OMP DO1031 1038 DO l = 0, pdims(1) - 1 1032 1039 zs = 1 + l * ( nzt_y - nzb_y + 1 ) … … 1035 1042 !$ACC PRESENT(work, f_in) 1036 1043 #endif 1044 !$OMP DO 1037 1045 DO j = nys_z, nyn_z 1038 1046 DO k = zs, zs + nzt_y - nzb_y … … 1042 1050 ENDDO 1043 1051 ENDDO 1052 !$OMP END DO NOWAIT 1044 1053 ENDDO 1045 1054 !$OMP END PARALLEL -
palm/trunk/SOURCE/tridia_solver_mod.f90
r4182 r4236 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Added missing OpenMP directives 28 ! 29 ! 4182 2019-08-22 15:20:23Z scharf 27 30 ! Corrected "Former revisions" section 28 31 ! … … 249 252 #endif 250 253 254 !$OMP PARALLEL PRIVATE(i,j,k) 255 251 256 ! 252 257 !-- Forward substitution … … 258 263 !$ACC LOOP COLLAPSE(2) 259 264 #endif 265 !$OMP DO 260 266 DO j = nys_z, nyn_z 261 267 DO i = nxl_z, nxr_z … … 286 292 !$ACC LOOP COLLAPSE(2) 287 293 #endif 294 !$OMP DO 288 295 DO j = nys_z, nyn_z 289 296 DO i = nxl_z, nxr_z … … 301 308 !$ACC END PARALLEL 302 309 #endif 310 311 !$OMP END PARALLEL 303 312 304 313 !
Note: See TracChangeset
for help on using the changeset viewer.