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 7525 for branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn.F90 – NEMO

Ignore:
Timestamp:
2017-01-04T17:47:47+01:00 (7 years ago)
Author:
mocavero
Message:

changes after review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_r6519_HPC_4/NEMOGCM/NEMO/OPA_SRC/LDF/ldfdyn.F90

    r7508 r7525  
    160160            IF(lwp) WRITE(numout,*) '          momentum mixing coef. = constant ' 
    161161!$OMP PARALLEL DO schedule(static) private(jk,jj,ji) 
    162       DO jk = 1, jpk 
    163          DO jj = 1, jpj 
    164             DO ji = 1, jpi 
    165                ahmt(ji,jj,jk) = zah0 * tmask(ji,jj,jk) 
    166                ahmf(ji,jj,jk) = zah0 * fmask(ji,jj,jk) 
    167             END DO 
    168          END DO 
    169       END DO 
    170             ! 
     162               DO jk = 1, jpk 
     163                  DO jj = 1, jpj 
     164                     DO ji = 1, jpi 
     165                        ahmt(ji,jj,jk) = zah0 * tmask(ji,jj,jk) 
     166                        ahmf(ji,jj,jk) = zah0 * fmask(ji,jj,jk) 
     167                     END DO 
     168                  END DO 
     169               END DO 
     170               ! 
    171171         CASE(  10  )      !==  fixed profile  ==! 
    172172            IF(lwp) WRITE(numout,*) '          momentum mixing coef. = F( depth )' 
     
    189189!!              do we introduce a scaling by the max value of the array, and then multiply by zah0 ???? 
    190190!!              better:  check that the max is <=1  i.e. it is a shape from 0 to 1, not a coef that has physical dimension 
    191 !$OMP PARALLEL DO schedule(static) private(jk) 
     191!$OMP PARALLEL DO schedule(static) private(jk,jj,ji) 
    192192            DO jk = 2, jpkm1 
    193                ahmt(:,:,jk) = ahmt(:,:,1) * tmask(:,:,jk) 
    194                ahmf(:,:,jk) = ahmf(:,:,1) * fmask(:,:,jk) 
     193               DO jj = 1, jpj 
     194                  DO ji = 1, jpi 
     195                     ahmt(ji,jj,jk) = ahmt(ji,jj,1) * tmask(ji,jj,jk) 
     196                     ahmf(ji,jj,jk) = ahmf(ji,jj,1) * fmask(ji,jj,jk) 
     197                  END DO 
     198               END DO 
    195199            END DO 
    196200            ! 
     
    208212!!gm Question : info for LAP or BLP case  to take into account the SQRT in the bilaplacian case ???? 
    209213!!              do we introduce a scaling by the max value of the array, and then multiply by zah0 ???? 
    210 !$OMP PARALLEL DO schedule(static) private(jk) 
     214!$OMP PARALLEL DO schedule(static) private(jk,jj,ji) 
    211215            DO jk = 1, jpkm1 
    212                ahmt(:,:,jk) = ahmt(:,:,jk) * tmask(:,:,jk) 
    213                ahmf(:,:,jk) = ahmf(:,:,jk) * fmask(:,:,jk) 
     216               DO jj = 1, jpj 
     217                  DO ji = 1, jpi 
     218                     ahmt(ji,jj,jk) = ahmt(ji,jj,jk) * tmask(ji,jj,jk) 
     219                     ahmf(ji,jj,jk) = ahmf(ji,jj,jk) * fmask(ji,jj,jk) 
     220                  END DO 
     221               END DO 
    214222            END DO 
    215223            ! 
Note: See TracChangeset for help on using the changeset viewer.