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 1463 for trunk/NEMO/LIM_SRC_2/limsbc_2.F90 – NEMO

Ignore:
Timestamp:
2009-06-09T16:45:31+02:00 (15 years ago)
Author:
smasson
Message:

force 3rd dimension in sea-ice coupling fields, see ticket:444

File:
1 edited

Legend:

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

    r1370 r1463  
    173173            !   computation the solar flux at ocean surface 
    174174#if defined key_coupled  
    175             zqsr = qsr_tot(ji,jj) + ( fstric(ji,jj) - qsr_ice(ji,jj) ) * ( 1.0 - pfrld(ji,jj) ) 
     175            zqsr = qsr_tot(ji,jj) + ( fstric(ji,jj) - qsr_ice(ji,jj,1) ) * ( 1.0 - pfrld(ji,jj) ) 
    176176#else 
    177177            zqsr = pfrld(ji,jj) * qsr(ji,jj)  + ( 1.  - pfrld(ji,jj) ) * fstric(ji,jj) 
     
    286286      IF ( lk_cpl ) THEN            
    287287         ! Ice surface temperature  
    288          tn_ice(:,:) = sist(:,:)          ! sea-ice surface temperature        
     288         tn_ice(:,:,1) = sist(:,:)          ! sea-ice surface temperature        
    289289         ! Computation of snow/ice and ocean albedo 
    290290         ! INTERFACE 3D versus 2D 
     
    292292         zhicif(:,:,1) = hicif(:,:)   ;   zhsnif(:,:,1) = hsnif(:,:) 
    293293         CALL albedo_ice( zsist, zhicif, zhsnif, zalbp, zalb ) 
    294          alb_ice(:,:) =  0.5 * ( zalbp(:,:,1) + zalb (:,:,1) )   ! Ice albedo (mean clear and overcast skys) 
     294         alb_ice(:,:,1) =  0.5 * ( zalbp(:,:,1) + zalb (:,:,1) )   ! Ice albedo (mean clear and overcast skys) 
    295295      ENDIF 
    296296 
     
    300300         CALL prt_ctl(tab2d_1=utau  , clinfo1=' lim_sbc: utau   : ', mask1=umask,   & 
    301301            &         tab2d_2=vtau  , clinfo2=' vtau    : '        , mask2=vmask ) 
    302          CALL prt_ctl(tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i   : ', tab2d_2=tn_ice, clinfo2=' tn_ice  : ') 
     302         CALL prt_ctl(tab2d_1=fr_i  , clinfo1=' lim_sbc: fr_i   : ', tab2d_2=tn_ice(:,:,1), clinfo2=' tn_ice  : ') 
    303303      ENDIF  
    304304    
Note: See TracChangeset for help on using the changeset viewer.