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 4626 for branches/dev_r4028_CNRS_LIM3_MV2014/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90 – NEMO

Ignore:
Timestamp:
2014-05-02T12:11:34+02:00 (10 years ago)
Author:
gm
Message:

dev_r4028_CNRS_LIM3_MV2014 : minor corrections on LIM3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev_r4028_CNRS_LIM3_MV2014/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90

    r4332 r4626  
    145145      REAL(wp), DIMENSION(kiut,jkmax+2) ::   zdiagbis 
    146146      REAL(wp), DIMENSION(kiut,jkmax+2,3) ::   ztrid   ! tridiagonal system terms 
     147      REAL(wp) ::   ztemp   ! local scalar  
    147148      !!------------------------------------------------------------------      
    148149      !  
     
    328329            DO layer = 1, nlay_i-1 
    329330               DO ji = kideb , kiut 
    330                   ztcond_i(ji,layer) = rcdic + 0.090_wp * ( s_i_b(ji,layer) + s_i_b(ji,layer+1) )   & 
    331                      &                                  / MIN(-2.0_wp * epsi10, t_i_b(ji,layer)+t_i_b(ji,layer+1) - 2.0_wp * rtt)   & 
    332                      &                       - 0.0055_wp* ( t_i_b(ji,layer) + t_i_b(ji,layer+1) - 2.0*rtt )   
     331                  ztemp = t_i_b(ji,layer) + t_i_b(ji,layer+1) - 2._wp * rtt 
     332                  ztcond_i(ji,layer) = rcdic + 0.0900_wp * ( s_i_b(ji,layer) + s_i_b(ji,layer+1) )   & 
     333                     &                                   / MIN( -2.0_wp * epsi10, ztemp )   & 
     334                     &                       - 0.0055_wp * ztemp 
    333335                  ztcond_i(ji,layer) = MAX( ztcond_i(ji,layer), zkimin ) 
    334336               END DO 
    335337            END DO 
    336338            DO ji = kideb , kiut 
    337                ztcond_i(ji,nlay_i) = rcdic + 0.090_wp * s_i_b(ji,nlay_i) / MIN(-epsi10,t_bo_b(ji)-rtt)   & 
    338                   &                        - 0.011_wp * ( t_bo_b(ji) - rtt )   
     339               ztemp = t_bo_b(ji) - rtt 
     340               ztcond_i(ji,nlay_i) = rcdic + 0.090_wp * s_i_b(ji,nlay_i) / MIN( -epsi10, ztemp )   & 
     341                  &                        - 0.011_wp * ztemp   
    339342               ztcond_i(ji,nlay_i) = MAX( ztcond_i(ji,nlay_i), zkimin ) 
    340343            END DO 
Note: See TracChangeset for help on using the changeset viewer.