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 9019 for branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/TRP/trdmxl_trc.F90 – NEMO

Ignore:
Timestamp:
2017-12-13T15:58:53+01:00 (6 years ago)
Author:
timgraham
Message:

Merge of dev_CNRS_2017 into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_merge_2017/NEMOGCM/NEMO/TOP_SRC/TRP/trdmxl_trc.F90

    r7646 r9019  
    2020   USE dom_oce           ! domain definition 
    2121   USE zdfmxl  , ONLY : nmln ! number of level in the mixed layer 
    22    USE zdf_oce , ONLY : avt  ! vert. diffusivity coef. at w-point for temp   
    23 # if defined key_zdfddm    
    24    USE zdfddm  , ONLY : avs  ! salinity vertical diffusivity coeff. at w-point 
    25 # endif 
     22   USE zdf_oce , ONLY : avs  ! vert. diffusivity coef. at w-point for temp   
    2623   USE trdtrc_oce    ! definition of main arrays used for trends computations 
    2724   USE in_out_manager    ! I/O manager 
     
    5451   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:,:,:) ::  ztmltrd2   ! 
    5552 
    56    !! * Substitutions 
    57 #  include "zdfddm_substitute.h90" 
    5853   !!---------------------------------------------------------------------- 
    5954   !! NEMO/TOP 3.3 , NEMO Consortium (2010) 
     
    275270      IF( ln_trcldf_iso ) THEN 
    276271         ! 
    277          DO jj = 1,jpj 
    278             DO ji = 1,jpi 
    279                ik = nmld_trc(ji,jj) 
    280                zavt = fsavs(ji,jj,ik) 
    281                DO jn = 1, jptra 
     272         DO jn = 1, jptra 
     273            DO jj = 1, jpj 
     274               DO ji = 1, jpi 
     275                  ik = nmld_trc(ji,jj) 
    282276                  IF( ln_trdtrc(jn) )    & 
    283                   tmltrd_trc(ji,jj,jpmxl_trc_zdf,jn) = - zavt / e3w_n(ji,jj,ik) * tmask(ji,jj,ik)  & 
     277                  tmltrd_trc(ji,jj,jpmxl_trc_zdf,jn) = - avs(ji,jj,ik) / e3w_n(ji,jj,ik) * tmask(ji,jj,ik)  & 
    284278                       &                    * ( trn(ji,jj,ik-1,jn) - trn(ji,jj,ik,jn) )            & 
    285279                       &                    / MAX( 1., rmld_trc(ji,jj) ) * tmask(ji,jj,1) 
Note: See TracChangeset for help on using the changeset viewer.