Changeset 13004
- Timestamp:
- 2020-06-02T14:22:16+02:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/branches/2020/r4.0-HEAD_r12713_clem_dan_fixcpl/src/OCE/SBC/sbccpl.F90
r12955 r13004 1129 1129 REAL(wp) :: zcdrag = 1.5e-3 ! drag coefficient 1130 1130 REAL(wp) :: zzx, zzy ! temporary variables 1131 REAL(wp), DIMENSION(jpi,jpj) :: ztx, zty, zmsk, zemp, zqns, zqsr 1131 REAL(wp), DIMENSION(jpi,jpj) :: ztx, zty, zmsk, zemp, zqns, zqsr, zcloud_fra 1132 1132 !!---------------------------------------------------------------------- 1133 1133 ! … … 1247 1247 ENDIF 1248 1248 ENDIF 1249 1249 !!$ ! ! ========================= ! 1250 !!$ SELECT CASE( TRIM( sn_rcv_clouds%cldes ) ) ! cloud fraction ! 1251 !!$ ! ! ========================= ! 1252 !!$ cloud_fra(:,:) = frcv(jpr_clfra)*z3(:,:,1) 1253 !!$ END SELECT 1254 !!$ 1255 zcloud_fra(:,:) = pp_cldf ! should be real cloud fraction instead (as in the bulk) but needs to be read from atm. 1256 IF( ln_mixcpl ) THEN 1257 cloud_fra(:,:) = cloud_fra(:,:) * xcplmask(:,:,0) + zcloud_fra(:,:)* zmsk(:,:) 1258 ELSE 1259 cloud_fra(:,:) = zcloud_fra(:,:) 1260 ENDIF 1261 ! ! ========================= ! 1250 1262 ! u(v)tau and taum will be modified by ice model 1251 1263 ! -> need to be reset before each call of the ice/fsbc … … 1649 1661 REAL(wp), DIMENSION(jpi,jpj) :: zevap_ice_total 1650 1662 REAL(wp), DIMENSION(jpi,jpj,jpl) :: zqns_ice, zqsr_ice, zdqns_ice, zqevap_ice, zevap_ice, zqtr_ice_top, ztsu 1651 REAL(wp), DIMENSION(jpi,jpj) :: ztri , zcloud_fra1663 REAL(wp), DIMENSION(jpi,jpj) :: ztri 1652 1664 !!---------------------------------------------------------------------- 1653 1665 ! … … 2085 2097 ENDIF 2086 2098 END SELECT 2087 !!$ ! ! ========================= !2088 !!$ SELECT CASE( TRIM( sn_rcv_clouds%cldes ) ) ! cloud fraction !2089 !!$ ! ! ========================= !2090 !!$ cloud_fra(:,:) = frcv(jpr_clfra)*z3(:,:,1)2091 !!$ END SELECT2092 zcloud_fra(:,:) = pp_cldf ! should be real cloud fraction instead (as in the bulk) but needs to be read from atm.2093 IF( ln_mixcpl ) THEN2094 cloud_fra(:,:) = cloud_fra(:,:) * xcplmask(:,:,0) + zcloud_fra(:,:)* zmsk(:,:)2095 ELSE2096 cloud_fra(:,:) = zcloud_fra(:,:)2097 ENDIF2098 2099 ! ! ========================= ! 2099 2100 ! ! Transmitted Qsr ! [W/m2] … … 2108 2109 ! 2) is 0 when there is any snow 2109 2110 ! 3) tends to 1 for thin ice 2110 ztri(:,:) = 0.18 * ( 1.0 - zcloud_fra(:,:) ) + 0.35 * zcloud_fra(:,:) ! surface transmission when hi>10cm2111 ztri(:,:) = 0.18 * ( 1.0 - cloud_fra(:,:) ) + 0.35 * cloud_fra(:,:) ! surface transmission when hi>10cm 2111 2112 DO jl = 1, jpl 2112 2113 WHERE ( phs(:,:,jl) <= 0._wp .AND. phi(:,:,jl) < 0.1_wp ) ! linear decrease from hi=0 to 10cm
Note: See TracChangeset
for help on using the changeset viewer.