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 13472 for NEMO/trunk/src/ICE/iceupdate.F90 – NEMO

Ignore:
Timestamp:
2020-09-16T15:05:19+02:00 (4 years ago)
Author:
smasson
Message:

trunk: commit changes from r4.0-HEAD from 13284 to 13449, see #2523

File:
1 edited

Legend:

Unmodified
Added
Removed
  • NEMO/trunk/src/ICE/iceupdate.F90

    r13295 r13472  
    2525   USE icectl         ! sea-ice: control prints 
    2626   USE bdy_oce , ONLY : ln_bdy 
     27   USE zdfdrg  , ONLY : ln_drgice_imp 
    2728   ! 
    2829   USE in_out_manager ! I/O manager 
     
    9394      REAL(wp) ::   zqmass           ! Heat flux associated with mass exchange ice->ocean (W.m-2) 
    9495      REAL(wp) ::   zqsr             ! New solar flux received by the ocean 
    95       REAL(wp), DIMENSION(jpi,jpj)     ::   z2d                  ! 2D workspace 
    96       REAL(wp), DIMENSION(jpi,jpj,jpl) ::   zalb_cs, zalb_os     ! 3D workspace 
     96      REAL(wp), DIMENSION(jpi,jpj) ::   z2d                  ! 2D workspace 
    9797      !!--------------------------------------------------------------------- 
    9898      IF( ln_timing )   CALL timing_start('ice_update') 
     
    182182      ! Snow/ice albedo (only if sent to coupler, useless in forced mode) 
    183183      !------------------------------------------------------------------ 
    184       CALL ice_alb( t_su, h_i, h_s, ln_pnd_alb, a_ip_frac, h_ip, zalb_cs, zalb_os ) ! cloud-sky and overcast-sky ice albedos 
    185       ! 
    186       alb_ice(:,:,:) = ( 1._wp - cldf_ice ) * zalb_cs(:,:,:) + cldf_ice * zalb_os(:,:,:) 
     184      CALL ice_alb( t_su, h_i, h_s, ln_pnd_alb, a_ip_eff, h_ip, cloud_fra, alb_ice ) ! ice albedo 
     185 
    187186      ! 
    188187      IF( lrst_ice ) THEN                       !* write snwice_mass fields in the restart file 
     
    320319      REAL(wp) ::   zat_u, zutau_ice, zu_t, zmodt   ! local scalar 
    321320      REAL(wp) ::   zat_v, zvtau_ice, zv_t, zrhoco  !   -      - 
     321      REAL(wp) ::   zflagi                          !   -      - 
    322322      !!--------------------------------------------------------------------- 
    323323      IF( ln_timing )   CALL timing_start('ice_update_tau') 
     
    350350      ! 
    351351      !                                      !==  every ocean time-step  ==! 
     352      IF ( ln_drgice_imp ) THEN 
     353         ! Save drag with right sign to update top drag in the ocean implicit friction  
     354         rCdU_ice(:,:) = -r1_rho0 * tmod_io(:,:) * at_i(:,:) * tmask(:,:,1)  
     355         zflagi = 0._wp 
     356      ELSE 
     357         zflagi = 1._wp 
     358      ENDIF 
    352359      ! 
    353360      DO_2D( 0, 0, 0, 0 ) 
Note: See TracChangeset for help on using the changeset viewer.