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 1037 for trunk/NEMO/LIM_SRC_2 – NEMO

Changeset 1037 for trunk/NEMO/LIM_SRC_2


Ignore:
Timestamp:
2008-05-30T18:21:28+02:00 (16 years ago)
Author:
ctlod
Message:

trunk: replace freeze(:,:) variable with fr_i(:,:), use the tfreez function defined in eosbn2.F90 and remove the useless ocfzpt.F90 module, see ticket: #177

Location:
trunk/NEMO/LIM_SRC_2
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/NEMO/LIM_SRC_2/iceini_2.F90

    r900 r1037  
    2121   USE sbc_ice         ! surface boundary condition: ice 
    2222   USE phycst          ! Define parameters for the routines 
    23    USE ocfzpt 
    2423   USE ice_2 
    2524   USE limmsh_2 
     
    7574       
    7675      tn_ice(:,:) = sist(:,:)         ! initialisation of ice temperature    
    77       freeze(:,:) = 1.0 - frld(:,:)   ! initialisation of sea/ice cover     
     76      fr_i  (:,:) = 1.0 - frld(:,:)   ! initialisation of sea-ice fraction     
    7877# if defined key_coupled 
    7978      alb_ice(:,:) = albege(:,:)      ! sea-ice albedo 
  • trunk/NEMO/LIM_SRC_2/limistate_2.F90

    r888 r1037  
    1919   !!---------------------------------------------------------------------- 
    2020   USE phycst 
    21    USE ocfzpt 
    2221   USE par_ice_2       ! ice parameters 
    2322   USE ice_oce         ! ice variables 
    2423   USE dom_ice_2 
     24   USE eosbn2          ! equation of state 
    2525   USE lbclnk 
    2626   USE oce 
     
    7272      IF( .NOT. ln_limini ) THEN   
    7373          
    74          ! Initialisation at tn or -2 if ice 
     74         tfu(:,:) = tfreez( sn(:,:,1) ) * tmask(:,:,1)       ! freezing/melting point of sea water [Celcius] 
     75 
    7576         DO jj = 1, jpj 
    7677            DO ji = 1, jpi 
    77                zbin = MAX( 0., SIGN( 1., fzptn(ji,jj) - tn(ji,jj,1) ) ) 
    78                ztn(ji,jj) = ( (1.-zbin) * tn(ji,jj,1) - 2. * zbin + rt0 ) * tmask(ji,jj,1) 
    79             END DO 
    80          END DO 
    81                    
    82          !  tfu: Melting point of sea water [Kelvin] 
    83          zs0 = 34.e0 
    84          ztf = rt0 + ( - 0.0575 + 1.710523e-3 * SQRT( zs0 ) - 2.154996e-4 * zs0 ) * zs0 
    85          tfu(:,:) = ztf 
    86           
    87          DO jj = 1, jpj 
    88             DO ji = 1, jpi 
    89                !--- Criterion for presence (zidto=1) or absence (zidto=0) of ice 
    90                zidto  = tms(ji,jj) * ( 1.0 - MAX(zzero, SIGN( zone, ztn(ji,jj) - tfu(ji,jj) - ttest) ) ) 
    91                 
     78               !                     ! ice if sst <= t-freez + ttest 
     79               IF( tn(ji,jj,1)  - tfu(ji,jj) >= ttest ) THEN   ;   zidto = 0.e0      ! no ice 
     80               ELSE                                            ;   zidto = 1.e0      !    ice 
     81               ENDIF 
     82               ! 
    9283               IF( fcor(ji,jj) >= 0.e0 ) THEN     !--  Northern hemisphere. 
    9384                  hicif(ji,jj)   = zidto * hginn 
     
    10192            END DO 
    10293         END DO 
     94 
     95         tfu(:,:) = tfu(:,:) + rt0       ! ftu converted from Celsius to Kelvin (rt0 over land) 
    10396          
    10497         sist  (:,:)   = tfu(:,:) 
  • trunk/NEMO/LIM_SRC_2/limsbc_2.F90

    r888 r1037  
    2020   USE sbc_oce          ! surface boundary condition 
    2121   USE phycst           ! physical constants 
    22    USE ocfzpt           ! surface ocean freezing point 
    2322   USE ice_oce          ! sea-ice variable 
    2423   USE ice_2            ! LIM sea-ice variables 
     
    6160      !!              - Update  
    6261      !!      
    63       !! ** Outputs : - qsr    : sea heat flux:     solar  
    64       !!              - qns    : sea heat flux: non solar 
    65       !!              - emp    : freshwater budget: volume flux  
    66       !!              - emps   : freshwater budget: concentration/dillution  
    67       !!              - utau   : sea surface i-stress (ocean referential) 
    68       !!              - vtau   : sea surface j-stress (ocean referential) 
     62      !! ** Outputs : - qsr     : sea heat flux:     solar  
     63      !!              - qns     : sea heat flux: non solar 
     64      !!              - emp     : freshwater budget: volume flux  
     65      !!              - emps    : freshwater budget: concentration/dillution  
     66      !!              - utau    : sea surface i-stress (ocean referential) 
     67      !!              - vtau    : sea surface j-stress (ocean referential) 
     68      !!              - fr_i    : ice fraction 
     69      !!              - tn_ice  : sea-ice surface temperature 
     70      !!              - alb_ice : sea-ice alberdo (lk_cpl=T) 
    6971      !! 
    7072      !! References : Goosse, H. et al. 1996, Bul. Soc. Roy. Sc. Liege, 65, 87-90. 
     
    214216      !-----------------------------------------------! 
    215217 
    216       freeze(:,:) = 1.0 - frld(:,:)       ! Sea ice cover             
    217       tn_ice(:,:) = sist(:,:)             ! Ice surface temperature                       
     218      fr_i  (:,:) = 1.0 - frld(:,:)       ! sea-ice fraction 
     219      tn_ice(:,:) = sist(:,:)             ! sea-ice surface temperature                       
    218220 
    219221#if defined key_coupled             
     
    234236         CALL prt_ctl(tab2d_1=utau  , clinfo1=' lim_sbc: utau   : ', mask1=umask,   & 
    235237            &         tab2d_2=vtau  , clinfo2=' vtau    : '        , mask2=vmask ) 
    236          CALL prt_ctl(tab2d_1=freeze, clinfo1=' lim_sbc: freeze : ', tab2d_2=tn_ice, clinfo2=' tn_ice  : ') 
     238         CALL prt_ctl(tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i  : ', tab2d_2=tn_ice, clinfo2=' tn_ice  : ') 
    237239      ENDIF  
    238240    
Note: See TracChangeset for help on using the changeset viewer.