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 6060 for branches/2015/dev_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRD/trdpen.F90 – NEMO

Ignore:
Timestamp:
2015-12-16T10:25:22+01:00 (8 years ago)
Author:
timgraham
Message:

Merged dev_r5836_noc2_VVL_BY_DEFAULT into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_merge_2015/NEMOGCM/NEMO/OPA_SRC/TRD/trdpen.F90

    r5836 r6060  
    3737 
    3838   !! * Substitutions 
    39 #  include "domzgr_substitute.h90" 
    4039#  include "zdfddm_substitute.h90" 
    4140#  include "vectopt_loop_substitute.h90" 
     
    7978      zpe(:,:,:) = 0._wp 
    8079      ! 
    81       IF ( kt /= nkstp ) THEN   ! full eos: set partial derivatives at the 1st call of kt time step 
     80      IF( kt /= nkstp ) THEN     ! full eos: set partial derivatives at the 1st call of kt time step 
    8281         nkstp = kt 
    8382         CALL eos_pen( tsn, rab_PE, zpe ) 
     
    9796      CASE ( jptra_yad  )   ;   CALL iom_put( "petrd_yad", zpe )   ! merid.   advection 
    9897      CASE ( jptra_zad  )   ;   CALL iom_put( "petrd_zad", zpe )   ! vertical advection 
    99                                 IF( .NOT.lk_vvl ) THEN                   ! cst volume : adv flux through z=0 surface 
     98                                IF( ln_linssh ) THEN                   ! cst volume : adv flux through z=0 surface 
    10099                                   CALL wrk_alloc( jpi, jpj, z2d ) 
    101100                                   z2d(:,:) = wn(:,:,1) * ( & 
    102101                                     &   - ( rab_n(:,:,1,jp_tem) + rab_pe(:,:,1,jp_tem) ) * tsn(:,:,1,jp_tem)    & 
    103102                                     &   + ( rab_n(:,:,1,jp_sal) + rab_pe(:,:,1,jp_sal) ) * tsn(:,:,1,jp_sal)    & 
    104                                      & ) / fse3t(:,:,1) 
     103                                     & ) / e3t_n(:,:,1) 
    105104                                   CALL iom_put( "petrd_sad" , z2d ) 
    106105                                   CALL wrk_dealloc( jpi, jpj, z2d ) 
     
    116115      CASE ( jptra_bbc  )   ;   CALL iom_put( "petrd_bbc" , zpe )   ! bottom bound cond (geoth flux) 
    117116      CASE ( jptra_atf  )   ;   CALL iom_put( "petrd_atf" , zpe )   ! asselin time filter (last trend) 
    118                                 !IF( .NOT.lk_vvl ) THEN                   ! cst volume : ssh term (otherwise include in e3t variation) 
     117                                !IF( ln_linssh ) THEN                   ! cst volume : ssh term (otherwise include in e3t variation) 
    119118                                !   CALL wrk_alloc( jpi, jpj, z2d ) 
    120119                                !   z2d(:,:) = ( ssha(:,:) - sshb(:,:) )                 & 
    121120                                !      &     * (   dPE_dt(:,:,1) * tsn(:,:,1,jp_tem)    & 
    122                                 !      &         + dPE_ds(:,:,1) * tsn(:,:,1,jp_sal)  ) / ( fse3t(:,:,1) * pdt ) 
     121                                !      &         + dPE_ds(:,:,1) * tsn(:,:,1,jp_sal)  ) / ( e3t_n(:,:,1) * pdt ) 
    123122                                !   CALL iom_put( "petrd_sad" , z2d ) 
    124123                                !   CALL wrk_dealloc( jpi, jpj, z2d ) 
     
    151150      rab_pe(:,:,:,:) = 0._wp 
    152151      ! 
    153       IF ( lk_vvl              )   CALL ctl_stop('trd_pen_init : PE trends not coded for variable volume') 
     152      IF( .NOT.ln_linssh )   CALL ctl_stop('trd_pen_init : PE trends not coded for variable volume') 
    154153      ! 
    155154      nkstp     = nit000 - 1 
Note: See TracChangeset for help on using the changeset viewer.