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 8970 for branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90 – NEMO

Ignore:
Timestamp:
2017-12-11T10:01:56+01:00 (6 years ago)
Author:
gm
Message:

dev_CNRS_2017: bug correction in GLS + minor updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_CNRS_2017/NEMOGCM/NEMO/OPA_SRC/ZDF/zdfgls.F90

    r8882 r8970  
    1919   USE dom_oce        ! ocean space and time domain 
    2020   USE domvvl         ! ocean space and time domain : variable volume layer 
    21    USE zdf_oce        ! ocean vertical physics 
    2221   USE zdfdrg  , ONLY : r_z0_top , r_z0_bot   ! top/bottom roughness 
    2322   USE zdfdrg  , ONLY : rCdU_top , rCdU_bot   ! top/bottom friction 
     
    133132      !!              coefficients using the GLS turbulent closure scheme. 
    134133      !!---------------------------------------------------------------------- 
     134      USE zdf_oce , ONLY : en, avtb, avmb   ! ocean vertical physics 
     135      !! 
    135136      INTEGER                   , INTENT(in   ) ::   kt             ! ocean time step 
    136137      REAL(wp), DIMENSION(:,:,:), INTENT(in   ) ::   p_sh2          ! shear production term 
     
    580581         zdep (:,:)   = ((zhsro(:,:) + gdept_n(:,:,1)) / zhsro(:,:))**(rmm*ra_sf) 
    581582         zflxs(:,:)   = (rnn + rsbc_tke1 * (rnn + rmm*ra_sf) * zdep(:,:))*(1._wp + rsbc_tke1*zdep(:,:))**(2._wp*rmm/3._wp-1_wp) 
    582          zdep (:,:)   = rsbc_psi1 * (zwall_psi(:,:,1)*avm(:,:,1)+zwall_psi(:,:,2)*avm(:,:,2)) * & 
     583         zdep (:,:)   = rsbc_psi1 * (zwall_psi(:,:,1)*p_avm(:,:,1)+zwall_psi(:,:,2)*p_avm(:,:,2)) * & 
    583584            &           ustar2_surf(:,:)**rmm * zkar(:,:)**rnn * (zhsro(:,:) + gdept_n(:,:,1))**(rnn-1.) 
    584585         zflxs(:,:)   = zdep(:,:) * zflxs(:,:) 
     
    815816         END DO 
    816817      END DO 
    817       avt(:,:,1) = 0._wp 
     818      p_avt(:,:,1) = 0._wp 
    818819      ! 
    819820      IF(ln_ctl) THEN 
    820          CALL prt_ctl( tab3d_1=en , clinfo1=' gls  - e: ', tab3d_2=avt, clinfo2=' t: ', ovlap=1, kdim=jpk) 
    821          CALL prt_ctl( tab3d_1=avm, clinfo1=' gls  - m: ', ovlap=1, kdim=jpk ) 
     821         CALL prt_ctl( tab3d_1=en   , clinfo1=' gls  - e: ', tab3d_2=p_avt, clinfo2=' t: ', ovlap=1, kdim=jpk) 
     822         CALL prt_ctl( tab3d_1=p_avm, clinfo1=' gls  - m: ', ovlap=1, kdim=jpk ) 
    822823      ENDIF 
    823824      ! 
     
    11441145      !!                set to rn_emin or recomputed (nn_igls/=0) 
    11451146      !!---------------------------------------------------------------------- 
     1147      USE zdf_oce , ONLY : en, avt_k, avm_k   ! ocean vertical physics 
     1148      !! 
    11461149      INTEGER         , INTENT(in) ::   kt     ! ocean time-step 
    11471150      CHARACTER(len=*), INTENT(in) ::   cdrw   ! "READ"/"WRITE" flag 
Note: See TracChangeset for help on using the changeset viewer.