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 6403 for trunk/NEMOGCM/NEMO/TOP_SRC – NEMO

Ignore:
Timestamp:
2016-03-25T17:24:35+01:00 (8 years ago)
Author:
cetlod
Message:

trunk:new developments already included in 3.6 stable, see points 1, 2 and 4 of ticket #1678

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMOGCM/NEMO/TOP_SRC/TRP/trcldf.F90

    r6140 r6403  
    4040   REAL(wp), PUBLIC ::   rn_ahtrc_0          !:   laplacian diffusivity coefficient for passive tracer [m2/s] 
    4141   REAL(wp), PUBLIC ::   rn_bhtrc_0          !: bilaplacian      -          --     -       -   [m4/s] 
     42   REAL(wp), PUBLIC ::   rn_fact_lap         !: Enhanced zonal diffusivity coefficent in the equatorial domain 
    4243   ! 
    4344   !                      !!: ** lateral mixing namelist (nam_trcldf) ** 
     
    6465      INTEGER, INTENT( in ) ::   kt   ! ocean time-step index 
    6566      ! 
    66       INTEGER            :: jn 
     67      INTEGER            :: ji, jj, jk, jn 
     68      REAL(wp)           :: zdep 
    6769      CHARACTER (len=22) :: charout 
    6870      REAL(wp), POINTER, DIMENSION(:,:,:)   ::   zahu, zahv 
     
    7678         ztrtrd(:,:,:,:)  = tra(:,:,:,:) 
    7779      ENDIF 
    78       ! 
    79       !                                        !* set the lateral diffusivity coef. for passive tracer       
     80      !                                  !* set the lateral diffusivity coef. for passive tracer       
    8081      CALL wrk_alloc( jpi,jpj,jpk,   zahu, zahv ) 
    81       zahu(:,:,:) = rldf * ahtu(:,:,:) 
     82      zahu(:,:,:) = rldf * ahtu(:,:,:)  
    8283      zahv(:,:,:) = rldf * ahtv(:,:,:) 
    83  
     84      !                                  !* Enhanced zonal diffusivity coefficent in the equatorial domain 
     85      DO jk= 1, jpk 
     86         DO jj = 1, jpj 
     87            DO ji = 1, jpi 
     88               IF( gdept_n(ji,jj,jk) > 200. .AND. gphit(ji,jj) < 5. .AND. gphit(ji,jj) > -5. ) THEN 
     89                  zdep = MAX( gdept_n(ji,jj,jk) - 1000., 0. ) / 1000. 
     90                  zahu(ji,jj,jk) = zahu(ji,jj,jk) * MAX( 1., rn_fact_lap * EXP( -zdep ) ) 
     91               ENDIF 
     92            END DO 
     93         END DO 
     94      END DO 
     95      ! 
    8496      SELECT CASE ( nldf )                     !* compute lateral mixing trend and add it to the general trend 
    8597      ! 
     
    136148      NAMELIST/namtrc_ldf/ ln_trcldf_lap, ln_trcldf_blp,                                  & 
    137149         &                 ln_trcldf_lev, ln_trcldf_hor, ln_trcldf_iso, ln_trcldf_triad,  & 
    138          &                 rn_ahtrc_0   , rn_bhtrc_0 
     150         &                 rn_ahtrc_0   , rn_bhtrc_0, rn_fact_lap   
    139151      !!---------------------------------------------------------------------- 
    140152      ! 
     
    164176         WRITE(numout,*) '           laplacian                 rn_ahtrc_0      = ', rn_ahtrc_0 
    165177         WRITE(numout,*) '         bilaplacian                 rn_bhtrc_0      = ', rn_bhtrc_0 
     178         WRITE(numout,*) '      enhanced zonal diffusivity     rn_fact_lap     = ', rn_fact_lap 
     179 
    166180      ENDIF 
    167181      !       
Note: See TracChangeset for help on using the changeset viewer.