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 5866 for branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/TRA/trazdf_exp.F90 – NEMO

Ignore:
Timestamp:
2015-11-06T11:42:35+01:00 (8 years ago)
Author:
gm
Message:

#1613: vvl by default: add ln_linssh and remove key_vvl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2015/dev_r5836_NOC3_vvl_by_default/NEMOGCM/NEMO/OPA_SRC/TRA/trazdf_exp.F90

    r5845 r5866  
    6666      !!      (N.B. bottom condition is applied through the masked field avt). 
    6767      !!              - the after tracer fields due to the whole trend is  
    68       !!      obtained in leap-frog environment by : 
    69       !!          pta = zwx + p2dt pta 
    70       !!              - in case of variable level thickness (lk_vvl=T) the  
    71       !!     the leap-frog is applied on thickness weighted tracer. That is: 
     68      !!      obtained in leap-frog environment applied on thickness weighted tracer by : 
    7269      !!          pta = [ ptb*e3tb + e3tn*( zwx - ptb + p2dt pta ) ] / e3tn 
    7370      !! 
    7471      !! ** Action : - after tracer fields pta 
    7572      !!--------------------------------------------------------------------- 
    76       ! 
    7773      INTEGER                              , INTENT(in   ) ::   kt          ! ocean time-step index 
    7874      INTEGER                              , INTENT(in   ) ::   kit000      ! first time step index 
     
    9288      IF( nn_timing == 1 )  CALL timing_start('tra_zdf_exp') 
    9389      ! 
    94       CALL wrk_alloc( jpi, jpj, jpk, zwx, zwy )  
     90      CALL wrk_alloc( jpi,jpj,jpk,  zwx, zwy )  
    9591      ! 
    9692 
     
    121117               DO jj = 2, jpjm1  
    122118                  DO ji = fs_2, fs_jpim1   ! vector opt. 
    123                      zave3r = 1.e0 / e3w_n(ji,jj,jk)  
     119                     zave3r = 1.e0 / e3w_n(ji,jj,jk)            !!gm here it should be e3w_b  ???? 
    124120                     IF( cdtype == 'TRA' .AND. jn == jp_tem ) THEN  ! temperature : use of avt 
    125121                        zwy(ji,jj,jk) =   avt(ji,jj,jk) * ( zwx(ji,jj,jk-1) - zwx(ji,jj,jk) ) * zave3r 
     
    144140         ! After tracer due to all trends 
    145141         ! ------------------------------ 
    146          IF( lk_vvl ) THEN          ! variable level thickness : leap-frog on tracer*e3t 
     142         IF( .NOT.ln_linssh ) THEN     ! variable level thickness : leap-frog on tracer*e3t 
    147143            DO jk = 1, jpkm1 
    148144               DO jj = 2, jpjm1  
     
    154150               END DO 
    155151            END DO 
    156          ELSE                       ! fixed level thickness : leap-frog on tracers 
     152         ELSE                          ! fixed level thickness : leap-frog on tracers 
    157153            DO jk = 1, jpkm1 
    158154               DO jj = 2, jpjm1  
     
    166162      END DO 
    167163      ! 
    168       CALL wrk_dealloc( jpi, jpj, jpk, zwx, zwy )  
     164      CALL wrk_dealloc( jpi,jpj,jpk,  zwx, zwy )  
    169165      ! 
    170166      IF( nn_timing == 1 )  CALL timing_stop('tra_zdf_exp') 
Note: See TracChangeset for help on using the changeset viewer.