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 7753 for trunk/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90 – NEMO

Ignore:
Timestamp:
2017-03-03T12:46:59+01:00 (7 years ago)
Author:
mocavero
Message:

Reverting trunk to remove OpenMP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfmxl.F90

    r7698 r7753  
    9696 
    9797      ! w-level of the mixing and mixed layers 
    98       zN2_c = grav * rho_c * r1_rau0           ! convert density criteria into N^2 criteria 
    99 !$OMP PARALLEL 
    100 !$OMP DO schedule(static) private(jj, ji) 
    101       DO jj = 1, jpj 
    102          DO ji = 1, jpi 
    103             nmln(ji,jj)  = nlb10               ! Initialization to the number of w ocean point 
    104             hmlp(ji,jj)  = 0._wp               ! here hmlp used as a dummy variable, integrating vertically N^2 
    105          END DO 
    106       END DO 
     98      nmln(:,:)  = nlb10               ! Initialization to the number of w ocean point 
     99      hmlp(:,:)  = 0._wp               ! here hmlp used as a dummy variable, integrating vertically N^2 
     100      zN2_c = grav * rho_c * r1_rau0   ! convert density criteria into N^2 criteria 
    107101      DO jk = nlb10, jpkm1 
    108 !$OMP DO schedule(static) private(jj, ji, ikt) 
    109102         DO jj = 1, jpj                ! Mixed layer level: w-level  
    110103            DO ji = 1, jpi 
     
    117110      ! 
    118111      ! w-level of the turbocline and mixing layer (iom_use) 
    119 !$OMP DO schedule(static) private(jj, ji) 
    120       DO jj = 1, jpj 
    121          DO ji = 1, jpi 
    122             imld(ji,jj) = mbkt(ji,jj) + 1        ! Initialization to the number of w ocean point 
    123          END DO 
    124       END DO 
     112      imld(:,:) = mbkt(:,:) + 1        ! Initialization to the number of w ocean point 
    125113      DO jk = jpkm1, nlb10, -1         ! from the bottom to nlb10  
    126 !$OMP DO schedule(static) private(jj, ji) 
    127114         DO jj = 1, jpj 
    128115            DO ji = 1, jpi 
     
    132119      END DO 
    133120      ! depth of the mixing and mixed layers 
    134 !$OMP DO schedule(static) private(jj, ji, iiki, iikn) 
    135121      DO jj = 1, jpj 
    136122         DO ji = 1, jpi 
     
    142128         END DO 
    143129      END DO 
    144 !$OMP END PARALLEL 
    145130      ! 
    146131      IF( .NOT.l_offline ) THEN 
Note: See TracChangeset for help on using the changeset viewer.