New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 7037 for branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90 – NEMO

Ignore:
Timestamp:
2016-10-18T15:32:04+02:00 (8 years ago)
Author:
mocavero
Message:

ORCA2_LIM_PISCES hybrid version update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/DOM/dommsk.F90

    r6790 r7037  
    146146      ! N.B. tmask has already the right boundary conditions since mbathy is ok 
    147147      ! 
    148 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 
     148!$OMP PARALLEL 
     149!$OMP DO schedule(static) private(jk, jj, ji) 
    149150      DO jk = 1, jpk 
    150151         DO jj = 1, jpj 
     
    157158       
    158159      ! (ISF) define barotropic mask and mask the ice shelf point 
    159 !$OMP PARALLEL WORKSHARE 
     160!$OMP WORKSHARE 
    160161      ssmask(:,:)=tmask(:,:,1) ! at this stage ice shelf is not masked 
    161 !$OMP END PARALLEL WORKSHARE       
    162 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 
     162!$OMP END WORKSHARE       
     163!$OMP DO schedule(static) private(jk, jj, ji) 
    163164      DO jk = 1, jpk 
    164165         DO jj = 1, jpj 
     
    173174      ! Interior domain mask (used for global sum) 
    174175      ! -------------------- 
    175 !$OMP PARALLEL WORKSHARE 
     176!$OMP WORKSHARE 
    176177      tmask_i(:,:) = ssmask(:,:)            ! (ISH) tmask_i = 1 even on the ice shelf 
    177178 
    178179      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 
    180182      iif = jpreci                         ! ??? 
    181183      iil = nlci - jpreci + 1 
     
    211213      ! 2. Ocean/land mask at u-,  v-, and z-points (computed from tmask) 
    212214      ! ------------------------------------------- 
    213 !$OMP PARALLEL DO schedule(static) private(jk, jj, ji) 
     215!$OMP PARALLEL 
     216!$OMP DO schedule(static) private(jk, jj, ji) 
    214217      DO jk = 1, jpk 
    215218         DO jj = 1, jpjm1 
     
    225228      END DO 
    226229      ! (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) 
     230!$OMP DO schedule(static) private(jj, ji) 
    228231      DO jj = 1, jpjm1 
    229232         DO ji = 1, fs_jpim1   ! vector loop 
     
    236239         END DO 
    237240      END DO 
     241!$OMP END DO NOWAIT 
     242!$OMP END PARALLEL 
    238243      CALL lbc_lnk( umask  , 'U', 1._wp )      ! Lateral boundary conditions 
    239244      CALL lbc_lnk( vmask  , 'V', 1._wp ) 
     
    245250      ! 3. Ocean/land mask at wu-, wv- and w points  
    246251      !---------------------------------------------- 
     252!$OMP PARALLEL 
     253!$OMP WORKSHARE 
    247254      wmask (:,:,1) = tmask(:,:,1)     ! surface 
    248255      wumask(:,:,1) = umask(:,:,1) 
    249256      wvmask(:,:,1) = vmask(:,:,1) 
    250 !$OMP PARALLEL DO schedule(static) private(jk) 
     257!$OMP END WORKSHARE 
     258!$OMP DO schedule(static) private(jk) 
    251259      DO jk = 2, jpk                   ! interior values 
    252260         wmask (:,:,jk) = tmask(:,:,jk) * tmask(:,:,jk-1) 
     
    254262         wvmask(:,:,jk) = vmask(:,:,jk) * vmask(:,:,jk-1) 
    255263      END DO 
     264!$OMP END DO NOWAIT 
     265!$OMP END PARALLEL 
    256266 
    257267      ! Lateral boundary conditions on velocity (modify fmask) 
Note: See TracChangeset for help on using the changeset viewer.