- Timestamp:
- 2016-06-28T11:53:56+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
r6140 r6748 146 146 ! N.B. tmask has already the right boundary conditions since mbathy is ok 147 147 ! 148 tmask(:,:,:) = 0._wp 148 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 149 149 DO jk = 1, jpk 150 150 DO jj = 1, jpj 151 151 DO ji = 1, jpi 152 tmask(ji,jj,jk) = 0._wp 152 153 IF( REAL( mbathy(ji,jj) - jk, wp ) + 0.1_wp >= 0._wp ) tmask(ji,jj,jk) = 1._wp 153 154 END DO … … 156 157 157 158 ! (ISF) define barotropic mask and mask the ice shelf point 159 !$OMP PARALLEL WORKSHARE 158 160 ssmask(:,:)=tmask(:,:,1) ! at this stage ice shelf is not masked 159 161 !$OMP END PARALLEL WORKSHARE 162 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 160 163 DO jk = 1, jpk 161 164 DO jj = 1, jpj … … 170 173 ! Interior domain mask (used for global sum) 171 174 ! -------------------- 175 !$OMP PARALLEL WORKSHARE 172 176 tmask_i(:,:) = ssmask(:,:) ! (ISH) tmask_i = 1 even on the ice shelf 173 177 174 178 tmask_h(:,:) = 1._wp ! 0 on the halo and 1 elsewhere 179 !$OMP END PARALLEL WORKSHARE 175 180 iif = jpreci ! ??? 176 181 iil = nlci - jpreci + 1 … … 206 211 ! 2. Ocean/land mask at u-, v-, and z-points (computed from tmask) 207 212 ! ------------------------------------------- 213 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 208 214 DO jk = 1, jpk 209 215 DO jj = 1, jpjm1 … … 219 225 END DO 220 226 ! (ISF) MIN(1,SUM(umask)) is here to check if you have effectively at least 1 wet cell at u point 227 !$OMP PARALLEL DO schedule(static) private(jj, ji) 221 228 DO jj = 1, jpjm1 222 229 DO ji = 1, fs_jpim1 ! vector loop … … 241 248 wumask(:,:,1) = umask(:,:,1) 242 249 wvmask(:,:,1) = vmask(:,:,1) 250 !$OMP PARALLEL DO schedule(static) private(jk) 243 251 DO jk = 2, jpk ! interior values 244 252 wmask (:,:,jk) = tmask(:,:,jk) * tmask(:,:,jk-1) … … 249 257 ! Lateral boundary conditions on velocity (modify fmask) 250 258 ! --------------------------------------- 259 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 251 260 DO jk = 1, jpk 252 261 zwf(:,:) = fmask(:,:,jk)
Note: See TracChangeset
for help on using the changeset viewer.