Changeset 4717 for palm/trunk/SOURCE/poisfft_mod.f90
- Timestamp:
- Sep 30, 2020 10:27:40 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/poisfft_mod.f90
r4671 r4717 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Formatting of OpenMP directives (J. Resler) 28 ! 29 ! 4671 2020-09-09 20:27:58Z pavelkrc 27 30 ! OMP bugfix 28 31 ! … … 1001 1004 1002 1005 tn = 0 ! Default thread number in case of one thread 1003 !$OMP PARALLEL DO PRIVATE ( i, j, k, m, n, tn, work_fftx, work_trix )1006 !$OMP PARALLEL DO PRIVATE ( i, j, k, m, n, tn, work_fftx, work_trix ) 1004 1007 DO j = nys_x, nyn_x 1005 1008 … … 1142 1145 ! 1143 1146 !-- Code for vector processors 1144 !$OMP PARALLEL PRIVATE ( i, j, k )1145 !$OMP DO1147 !$OMP PARALLEL PRIVATE ( i, j, k ) 1148 !$OMP DO 1146 1149 DO i = 0, nx 1147 1150 … … 1154 1157 ENDDO 1155 1158 1156 !$OMP DO1159 !$OMP DO 1157 1160 DO j = nys, nyn 1158 1161 … … 1166 1169 1167 1170 ENDDO 1168 !$OMP END PARALLEL1171 !$OMP END PARALLEL 1169 1172 1170 1173 ELSE … … 1172 1175 ! 1173 1176 !-- Cache optimized code (there might still be a potential for better optimization). 1174 !$OMP PARALLEL PRIVATE (i,j,k)1175 !$OMP DO1177 !$OMP PARALLEL PRIVATE (i,j,k) 1178 !$OMP DO 1176 1179 DO i = 0, nx 1177 1180 … … 1184 1187 ENDDO 1185 1188 1186 !$OMP DO1189 !$OMP DO 1187 1190 DO j = nys, nyn 1188 1191 DO k = 1, nz … … 1196 1199 1197 1200 ENDDO 1198 !$OMP END PARALLEL1201 !$OMP END PARALLEL 1199 1202 1200 1203 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.