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 8592 for branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90 – NEMO

Ignore:
Timestamp:
2017-10-04T20:08:33+02:00 (7 years ago)
Author:
clem
Message:

rewrite ice albedo routine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2017/dev_r8183_ICEMODEL/NEMOGCM/NEMO/OPA_SRC/SBC/sbccpl.F90

    r8563 r8592  
    3232   USE geo2ocean      !  
    3333   USE oce   , ONLY : tsn, un, vn, sshn, ub, vb, sshb, fraqsr_1lev 
    34    USE albedooce      !  
     34   USE ocealb         !  
    3535   USE eosbn2         !  
    3636   USE sbcrnf, ONLY : l_rnfcpl 
     
    177177   TYPE( DYNARR ), SAVE, DIMENSION(jprcv) ::   frcv                     ! all fields recieved from the atmosphere 
    178178 
    179    REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   albedo_oce_mix    ! ocean albedo sent to atmosphere (mix clear/overcast sky) 
     179   REAL(wp), ALLOCATABLE, SAVE, DIMENSION(:,:)   ::   alb_oce_mix    ! ocean albedo sent to atmosphere (mix clear/overcast sky) 
    180180 
    181181   REAL(wp) ::   rpref = 101000._wp   ! reference atmospheric pressure[N/m2]  
     
    201201      ierr(:) = 0 
    202202      ! 
    203       ALLOCATE( albedo_oce_mix(jpi,jpj), nrcvinfo(jprcv),  STAT=ierr(1) ) 
     203      ALLOCATE( alb_oce_mix(jpi,jpj), nrcvinfo(jprcv),  STAT=ierr(1) ) 
    204204       
    205205#if ! defined key_lim3 && ! defined key_cice 
     
    735735      !     2. receiving mixed oce-ice solar radiation  
    736736      IF ( TRIM ( sn_snd_alb%cldes ) == 'mixed oce-ice' .OR. TRIM ( sn_rcv_qsr%cldes ) == 'mixed oce-ice' ) THEN 
    737          CALL albedo_oce( zaos, zacs ) 
     737         CALL oce_alb( zaos, zacs ) 
    738738         ! Due to lack of information on nebulosity : mean clear/overcast sky 
    739          albedo_oce_mix(:,:) = ( zacs(:,:) + zaos(:,:) ) * 0.5 
     739         alb_oce_mix(:,:) = ( zacs(:,:) + zaos(:,:) ) * 0.5 
    740740      ENDIF 
    741741 
     
    18841884!       ( see OASIS3 user guide, 5th edition, p39 ) 
    18851885         zqsr_ice(:,:,1) = frcv(jpr_qsrmix)%z3(:,:,1) * ( 1.- palbi(:,:,1) )   & 
    1886             &            / (  1.- ( albedo_oce_mix(:,:  ) * ziceld(:,:)       & 
     1886            &            / (  1.- ( alb_oce_mix(:,:  ) * ziceld(:,:)       & 
    18871887            &                     + palbi         (:,:,1) * picefr(:,:) ) ) 
    18881888      END SELECT 
     
    20512051                   ztmp1(:,:) = SUM( alb_ice (:,:,1:jpl) * a_i(:,:,1:jpl), dim=3 ) / SUM( a_i(:,:,1:jpl), dim=3 ) 
    20522052                ELSEWHERE 
    2053                    ztmp1(:,:) = albedo_oce_mix(:,:) 
     2053                   ztmp1(:,:) = alb_oce_mix(:,:) 
    20542054                END WHERE 
    20552055             CASE default   ;   CALL ctl_stop( 'sbc_cpl_snd: wrong definition of sn_snd_alb%clcat' ) 
     
    20792079 
    20802080      IF( ssnd(jps_albmix)%laction ) THEN                         ! mixed ice-ocean 
    2081          ztmp1(:,:) = albedo_oce_mix(:,:) * zfr_l(:,:) 
     2081         ztmp1(:,:) = alb_oce_mix(:,:) * zfr_l(:,:) 
    20822082         DO jl=1,jpl 
    20832083            ztmp1(:,:) = ztmp1(:,:) + alb_ice(:,:,jl) * a_i(:,:,jl) 
Note: See TracChangeset for help on using the changeset viewer.