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 4332 for branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limtrp.F90 – NEMO

Ignore:
Timestamp:
2013-12-11T15:38:42+01:00 (10 years ago)
Author:
clem
Message:

update LIM3 to fix remaining bugs. Now working in global and regional config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2013/dev_r4028_CNRS_LIM3/NEMOGCM/NEMO/LIM_SRC_3/limtrp.F90

    r4220 r4332  
    3636   PUBLIC   lim_trp    ! called by ice_step 
    3737 
    38    REAL(wp)  ::   epsi06 = 1.e-06_wp   ! constant values 
    39    REAL(wp)  ::   epsi03 = 1.e-03_wp   
    4038   REAL(wp)  ::   epsi10 = 1.e-10_wp   
    41    REAL(wp)  ::   epsi16 = 1.e-16_wp 
    42    REAL(wp)  ::   epsi20 = 1.e-20_wp 
    4339   REAL(wp)  ::   rzero  = 0._wp    
    4440   REAL(wp)  ::   rone   = 1._wp 
    45  
    46    REAL(wp), SAVE, ALLOCATABLE, DIMENSION(:,:,:,:) ::   zs0e 
    4741 
    4842   !! * Substitution 
     
    448442 
    449443                  ! Switches and dummy variables 
    450                   zusvosn         = 1.0/MAX( v_s(ji,jj,jl) , epsi16 ) 
    451                   zusvoic         = 1.0/MAX( v_i(ji,jj,jl) , epsi16 ) 
     444                  zusvosn         = 1.0/MAX( v_s(ji,jj,jl) , epsi10 ) 
     445                  zusvoic         = 1.0/MAX( v_i(ji,jj,jl) , epsi10 ) 
    452446                  zindsn          = MAX( rzero, SIGN( rone, v_s(ji,jj,jl) - epsi10 ) ) 
    453447                  zindic          = MAX( rzero, SIGN( rone, v_i(ji,jj,jl) - epsi10 ) ) 
     
    460454                  ENDIF 
    461455 
    462                   zage = MAX( MIN( zbigval, zs0oi(ji,jj,jl) / MAX( a_i(ji,jj,jl), epsi16 ) ), 0._wp  ) * a_i(ji,jj,jl) 
     456                  zage = MAX( MIN( zbigval, zs0oi(ji,jj,jl) / MAX( a_i(ji,jj,jl), epsi10 ) ), 0._wp  ) * a_i(ji,jj,jl) 
    463457                  oa_i (ji,jj,jl)  = zindic * zage  
    464458 
     
    500494               at_i(ji,jj) = at_i(ji,jj) + a_i(ji,jj,jl) ! ice concentration 
    501495               ! 
    502                zinda = MAX( rzero , SIGN( rone , at_i(ji,jj) - epsi16 ) ) 
    503                icethi(ji,jj) = vt_i(ji,jj) / MAX( at_i(ji,jj) , epsi16 ) * zinda  ! ice thickness 
     496               zinda = MAX( rzero , SIGN( rone , at_i(ji,jj) - epsi10 ) ) 
     497               icethi(ji,jj) = vt_i(ji,jj) / MAX( at_i(ji,jj) , epsi10 ) * zinda  ! ice thickness 
    504498            END DO 
    505499         END DO 
Note: See TracChangeset for help on using the changeset viewer.