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 2115 – NEMO

Changeset 2115


Ignore:
Timestamp:
2010-09-23T18:52:39+02:00 (14 years ago)
Author:
cetlod
Message:

improve trcsbc.F90 routine in DEV_r2006_merge_TRA_TRC branch

Location:
branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/TRP/trcsbc.F90

    r2052 r2115  
    8282#if ! defined key_offline 
    8383      ! Concentration dilution effect on tracer due to evaporation, precipitation, and river runoff 
    84       IF( lk_vvl ) THEN   ;   zemps(:,:) = emps(:,:) - emp(:,:)   ! volume variable 
    85       ELSE                ;   zemps(:,:) = emps(:,:) - rnf(:,:)   ! linear free surface  
     84      IF( lk_vvl ) THEN                      ! volume variable 
     85         zemps(:,:) = emps(:,:) - emp(:,:)    
     86      ELSE                                   ! linear free surface 
     87         IF( ln_rnf ) THEN  ;  zemps(:,:) = emps(:,:) - rnf(:,:)   !  E-P-R 
     88         ELSE               ;  zemps(:,:) = emps(:,:) 
     89         ENDIF  
    8690      ENDIF  
    8791#else 
     
    9195      ENDIF 
    9296#endif 
     97 
    9398      ! 0. initialization 
    9499      zsrau = 1. / rau0 
    95 #if defined key_zco 
    96       zse3t = 1. / e3t_0(1) 
    97 #endif 
    98  
    99100      DO jn = 1, jptra 
    100101         ! 
    101102         IF( l_trdtrc ) ztrtrd(:,:,:) = tra(:,:,:,jn)  ! save trends 
    102  
     103         !                                             ! add the trend to the general tracer trend 
    103104         DO jj = 2, jpj 
    104105            DO ji = fs_2, fs_jpim1   ! vector opt. 
    105 #if ! defined key_zco  
    106106               zse3t = 1. / fse3t(ji,jj,1) 
    107 #endif 
    108                ! add the trend to the general tracer trend 
    109                ztra = zemps(ji,jj) *  zsrau * trn(ji,jj,1,jn) * zse3t 
    110                tra(ji,jj,1,jn) = tra(ji,jj,1,jn) + ztra 
     107               tra(ji,jj,1,jn) = tra(ji,jj,1,jn) + zemps(ji,jj) *  zsrau * trn(ji,jj,1,jn) * zse3t 
    111108            END DO 
    112109         END DO 
  • branches/DEV_r2006_merge_TRA_TRC/NEMO/TOP_SRC/oce_trc.F90

    r2104 r2115  
    201201   USE sbc_oce , ONLY :   emps       =>    emps       !: freshwater budget: concentration/dillution   [Kg/m2/s] 
    202202   USE sbc_oce , ONLY :   rnf        =>    rnf        !: river runoff   [Kg/m2/s] 
     203   USE sbc_oce , ONLY :   ln_rnf     =>    ln_rnf     !: runoffs / runoff mouths 
    203204   USE sbc_oce , ONLY :   fr_i       =>    fr_i       !: ice fraction (between 0 to 1) 
    204205   USE traqsr  , ONLY :   rn_abs     =>    rn_abs     !: fraction absorbed in the very near surface 
Note: See TracChangeset for help on using the changeset viewer.