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 3517 for branches/2012/dev_r3385_NOCS04_HAMF/NEMOGCM/NEMO/LIM_SRC_3/limthd_dif.F90 – NEMO

Ignore:
Timestamp:
2012-10-26T12:13:21+02:00 (12 years ago)
Author:
gm
Message:

gm: Branch: dev_r3385_NOCS04_HAMF; #665. update sbccpl ; change LIM3 from equivalent salt flux to salt flux and mass flux

File:
1 edited

Legend:

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

    r3351 r3517  
    147147      REAL(wp), DIMENSION(kiut,jkmax+2) ::   zdiagbis 
    148148      REAL(wp), DIMENSION(kiut,jkmax+2,3) ::   ztrid   ! tridiagonal system terms 
    149       !!------------------------------------------------------------------ 
    150        
     149      !!------------------------------------------------------------------      
    151150      !  
    152151      !------------------------------------------------------------------------------! 
     
    156155      DO ji = kideb , kiut 
    157156         ! is there snow or not 
    158          isnow(ji)= INT(  1._wp - MAX( 0._wp , SIGN(1._wp, - ht_s_b(ji) ) )  ) 
     157         isnow(ji)= INT(  1._wp - MAX(  0._wp , SIGN(1._wp, - ht_s_b(ji) ) )  ) 
    159158         ! surface temperature of fusion 
    160159!!gm ???  ztfs(ji) = rtt !!!???? 
     
    201200      DO ji = kideb , kiut 
    202201         ! switches 
    203          isnow(ji) = INT(  1._wp - MAX( 0._wp , SIGN( 1._wp , - ht_s_b(ji) ) )  )  
     202         isnow(ji) = INT(  1._wp - MAX(  0._wp , SIGN( 1._wp , - ht_s_b(ji) ) )  )  
    204203         ! hs > 0, isnow = 1 
    205204         zhsu (ji) = hnzst  ! threshold for the computation of i0 
     
    262261      ! just to check energy conservation 
    263262      DO ji = kideb, kiut 
    264          ii                = MOD( npb(ji) - 1, jpi ) + 1 
    265          ij                = ( npb(ji) - 1 ) / jpi + 1 
     263         ii = MOD( npb(ji) - 1 , jpi ) + 1 
     264         ij =    ( npb(ji) - 1 ) / jpi + 1 
    266265         fstroc(ii,ij,jl) = zradtr_i(ji,nlay_i) 
    267266      END DO 
     
    273272         END DO 
    274273      END DO 
    275  
    276274 
    277275      ! 
     
    662660 
    663661            ! surface temperature 
    664             isnow(ji)     = INT(1.0-max(0.0,sign(1.0,-ht_s_b(ji)))) 
     662            isnow(ji)     = INT(  1.0 - MAX( 0.0 , SIGN( 1.0 , -ht_s_b(ji) )  )  ) 
    665663            ztsuoldit(ji) = t_su_b(ji) 
    666             IF (t_su_b(ji) .LT. ztfs(ji)) & 
     664            IF( t_su_b(ji) < ztfs(ji) )  & 
    667665               t_su_b(ji) = ( zindtbis(ji,numeqmin(ji)) - ztrid(ji,numeqmin(ji),3)* ( isnow(ji)*t_s_b(ji,1)   & 
    668666               &          + (1.0-isnow(ji))*t_i_b(ji,1) ) ) / zdiagbis(ji,numeqmin(ji))   
Note: See TracChangeset for help on using the changeset viewer.