- Timestamp:
- 2016-10-18T15:32:04+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90
r6790 r7037 146 146 ! N.B. tmask has already the right boundary conditions since mbathy is ok 147 147 ! 148 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 148 !$OMP PARALLEL 149 !$OMP DO schedule(static) private(jk, jj, ji) 149 150 DO jk = 1, jpk 150 151 DO jj = 1, jpj … … 157 158 158 159 ! (ISF) define barotropic mask and mask the ice shelf point 159 !$OMP PARALLELWORKSHARE160 !$OMP WORKSHARE 160 161 ssmask(:,:)=tmask(:,:,1) ! at this stage ice shelf is not masked 161 !$OMP END PARALLELWORKSHARE162 !$OMP PARALLELDO schedule(static) private(jk, jj, ji)162 !$OMP END WORKSHARE 163 !$OMP DO schedule(static) private(jk, jj, ji) 163 164 DO jk = 1, jpk 164 165 DO jj = 1, jpj … … 173 174 ! Interior domain mask (used for global sum) 174 175 ! -------------------- 175 !$OMP PARALLELWORKSHARE176 !$OMP WORKSHARE 176 177 tmask_i(:,:) = ssmask(:,:) ! (ISH) tmask_i = 1 even on the ice shelf 177 178 178 179 tmask_h(:,:) = 1._wp ! 0 on the halo and 1 elsewhere 179 !$OMP END PARALLEL WORKSHARE 180 !$OMP END WORKSHARE NOWAIT 181 !$OMP END PARALLEL 180 182 iif = jpreci ! ??? 181 183 iil = nlci - jpreci + 1 … … 211 213 ! 2. Ocean/land mask at u-, v-, and z-points (computed from tmask) 212 214 ! ------------------------------------------- 213 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 215 !$OMP PARALLEL 216 !$OMP DO schedule(static) private(jk, jj, ji) 214 217 DO jk = 1, jpk 215 218 DO jj = 1, jpjm1 … … 225 228 END DO 226 229 ! (ISF) MIN(1,SUM(umask)) is here to check if you have effectively at least 1 wet cell at u point 227 !$OMP PARALLELDO schedule(static) private(jj, ji)230 !$OMP DO schedule(static) private(jj, ji) 228 231 DO jj = 1, jpjm1 229 232 DO ji = 1, fs_jpim1 ! vector loop … … 236 239 END DO 237 240 END DO 241 !$OMP END DO NOWAIT 242 !$OMP END PARALLEL 238 243 CALL lbc_lnk( umask , 'U', 1._wp ) ! Lateral boundary conditions 239 244 CALL lbc_lnk( vmask , 'V', 1._wp ) … … 245 250 ! 3. Ocean/land mask at wu-, wv- and w points 246 251 !---------------------------------------------- 252 !$OMP PARALLEL 253 !$OMP WORKSHARE 247 254 wmask (:,:,1) = tmask(:,:,1) ! surface 248 255 wumask(:,:,1) = umask(:,:,1) 249 256 wvmask(:,:,1) = vmask(:,:,1) 250 !$OMP PARALLEL DO schedule(static) private(jk) 257 !$OMP END WORKSHARE 258 !$OMP DO schedule(static) private(jk) 251 259 DO jk = 2, jpk ! interior values 252 260 wmask (:,:,jk) = tmask(:,:,jk) * tmask(:,:,jk-1) … … 254 262 wvmask(:,:,jk) = vmask(:,:,jk) * vmask(:,:,jk-1) 255 263 END DO 264 !$OMP END DO NOWAIT 265 !$OMP END PARALLEL 256 266 257 267 ! Lateral boundary conditions on velocity (modify fmask)
Note: See TracChangeset
for help on using the changeset viewer.