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 5845 for branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DIA/diahth.F90 – NEMO

Ignore:
Timestamp:
2015-10-31T08:40:45+01:00 (8 years ago)
Author:
gm
Message:

#1613: vvl by default: suppression of domzgr_substitute.h90

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/DIA/diahth.F90

    r5836 r5845  
    2020   USE dom_oce         ! ocean space and time domain 
    2121   USE phycst          ! physical constants 
     22   ! 
    2223   USE in_out_manager  ! I/O manager 
    2324   USE lib_mpp         ! MPP library 
     
    3132   PUBLIC   dia_hth_alloc ! routine called by nemogcm.F90 
    3233 
    33    LOGICAL , PUBLIC, PARAMETER          ::   lk_diahth = .TRUE.    !: thermocline-20d depths flag 
     34   LOGICAL , PUBLIC, PARAMETER ::   lk_diahth = .TRUE.    !: thermocline-20d depths flag 
     35    
    3436   ! note: following variables should move to local variables once iom_put is always used  
    3537   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   hth    !: depth of the max vertical temperature gradient [m] 
     
    3840   REAL(wp), PUBLIC, ALLOCATABLE, SAVE, DIMENSION(:,:) ::   htc3   !: heat content of first 300 m                    [W] 
    3941 
    40    !! * Substitutions 
    41 #  include "domzgr_substitute.h90" 
    4242   !!---------------------------------------------------------------------- 
    4343   !! NEMO/OPA 4.0 , NEMO Consortium (2011) 
     
    187187            DO ji = 1, jpi 
    188188               ! 
    189                zzdep = fsdepw(ji,jj,jk) 
     189               zzdep = gdepw_n(ji,jj,jk) 
    190190               zztmp = ( tsn(ji,jj,jk-1,jp_tem) - tsn(ji,jj,jk,jp_tem) ) / zzdep * tmask(ji,jj,jk)   ! vertical gradient of temperature (dT/dz) 
    191191               zzdep = zzdep * tmask(ji,jj,1) 
     
    223223            DO ji = 1, jpi 
    224224               ! 
    225                zzdep = fsdepw(ji,jj,jk) * tmask(ji,jj,1) 
     225               zzdep = gdepw_n(ji,jj,jk) * tmask(ji,jj,1) 
    226226               ! 
    227227               zztmp = tsn(ji,jj,nla10,jp_tem) - tsn(ji,jj,jk,jp_tem)  ! - delta T(10m) 
     
    270270         DO ji = 1, jpi 
    271271            ! 
    272             zzdep = fsdepw(ji,jj,mbkt(ji,jj)+1)       ! depth of the oean bottom 
     272            zzdep = gdepw_n(ji,jj,mbkt(ji,jj)+1)       ! depth of the oean bottom 
    273273            ! 
    274274            iid = ik20(ji,jj) 
    275275            IF( iid /= 1 ) THEN  
    276                zztmp =      fsdept(ji,jj,iid  )   &                     ! linear interpolation 
    277                   &  + (    fsdept(ji,jj,iid+1) - fsdept(ji,jj,iid)                       )   & 
     276               zztmp =      gdept_n(ji,jj,iid  )   &                     ! linear interpolation 
     277                  &  + (    gdept_n(ji,jj,iid+1) - gdept_n(ji,jj,iid)                       )   & 
    278278                  &  * ( 20.*tmask(ji,jj,iid+1) - tsn(ji,jj,iid,jp_tem)                       )   & 
    279279                  &  / ( tsn(ji,jj,iid+1,jp_tem) - tsn(ji,jj,iid,jp_tem) + (1.-tmask(ji,jj,1)) ) 
     
    285285            iid = ik28(ji,jj) 
    286286            IF( iid /= 1 ) THEN  
    287                zztmp =      fsdept(ji,jj,iid  )   &                     ! linear interpolation 
    288                   &  + (    fsdept(ji,jj,iid+1) - fsdept(ji,jj,iid)                       )   & 
     287               zztmp =      gdept_n(ji,jj,iid  )   &                     ! linear interpolation 
     288                  &  + (    gdept_n(ji,jj,iid+1) - gdept_n(ji,jj,iid)                       )   & 
    289289                  &  * ( 28.*tmask(ji,jj,iid+1) -    tsn(ji,jj,iid,jp_tem)                       )   & 
    290290                  &  / (  tsn(ji,jj,iid+1,jp_tem) -    tsn(ji,jj,iid,jp_tem) + (1.-tmask(ji,jj,1)) ) 
     
    316316      ! integration down to ilevel 
    317317      DO jk = 1, ilevel 
    318          zthick(:,:) = zthick(:,:) + fse3t(:,:,jk) 
    319          htc3  (:,:) = htc3  (:,:) + fse3t(:,:,jk) * tsn(:,:,jk,jp_tem) * tmask(:,:,jk) 
     318         zthick(:,:) = zthick(:,:) + e3t_n(:,:,jk) 
     319         htc3  (:,:) = htc3  (:,:) + e3t_n(:,:,jk) * tsn(:,:,jk,jp_tem) * tmask(:,:,jk) 
    320320      END DO 
    321321      ! deepest layer 
     
    323323      DO jj = 1, jpj 
    324324         DO ji = 1, jpi 
    325             htc3(ji,jj) = htc3(ji,jj) + tsn(ji,jj,ilevel+1,jp_tem) * MIN( fse3t(ji,jj,ilevel+1), zthick(ji,jj) )  & 
     325            htc3(ji,jj) = htc3(ji,jj) + tsn(ji,jj,ilevel+1,jp_tem) * MIN( e3t_n(ji,jj,ilevel+1), zthick(ji,jj) )  & 
    326326                                                                   * tmask(ji,jj,ilevel+1) 
    327327         END DO 
Note: See TracChangeset for help on using the changeset viewer.