- Timestamp:
- Jul 19, 2024, 5:41:58 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/inlandsis/inlandsis.F
r3900 r5082 409 409 IF (BloMod) THEN 410 410 411 if (klonv .eq.1) then412 if(isnoSV(1) .ge.2 .and.411 if (klonv==1) then 412 if(isnoSV(1)>=2 .and. 413 413 . TsisSV(1,max(1,isnoSV(1)))<273. .and. 414 414 . ro__SV(1,max(1,isnoSV(1)))<500. .and. … … 518 518 C + Gallee et al., 2001 eq 5, p5 519 519 520 if (usth_param .eq."gal") then520 if (usth_param == "gal") then 521 521 Salt_us = (log(2.868) - log(1 + SaltMo)) * rCd10n/0.085 522 522 Salt_us = Salt_us * Fac_Mo … … 525 525 endif 526 526 527 if (usth_param .eq."lis") then !Liston et al. 2007527 if (usth_param == "lis") then !Liston et al. 2007 528 528 if(ro__SV(ikl,isn)>300.) then 529 529 Salt_us = 0.005*exp(0.013*ro__SV(ikl,isn)) … … 607 607 hSalSV(ikl) = 8.436e-2 * us__SV(ikl)**SblPom 608 608 609 if (qsalt_param .eq."pom") then609 if (qsalt_param == "pom") then 610 610 qSalSV(ikl) = (us__SV(ikl)**2 - usthSV(ikl)**2) *signus 611 611 . / (hSalSV(ikl) * gravit * us__SV(ikl) * 3.25) 612 612 endif 613 613 614 if (qsalt_param .eq."bin") then614 if (qsalt_param == "bin") then 615 615 qSalSV(ikl) = (us__SV(ikl) * us__SV(ikl) 616 616 . -usthSV(ikl) * usthSV(ikl))*signus … … 668 668 C + ... [ A compromise between 669 669 C + ... Kotlyakov (1961) and Lenaerts (2012, JGR, Part1) ] 670 if (tt_tmp .ge.-10) then670 if (tt_tmp>=-10) then 671 671 BufPro = max( rosMin, 672 672 . 104. *sqrt( max( vv_tmp-6.0,0.0))) ! Kotlyakov (1961) … … 894 894 895 895 896 if (discret_xf.AND.klonv .eq.1) then897 898 if(isnoSV(1) .ge.1.or.NLaysv(1).ge.1) then896 if (discret_xf.AND.klonv==1) then 897 898 if(isnoSV(1)>=1.or.NLaysv(1)>=1) then 899 899 C + ********** 900 900 call SISVAT_zSn … … 1081 1081 1082 1082 1083 if (iflag_temp_inlandsis .eq.0) then1083 if (iflag_temp_inlandsis == 0) then 1084 1084 1085 1085 call SISVAT_TSo … … 1198 1198 ! ^^^^^^^^^^^^^^^^^^^^ 1199 1199 1200 IF (iflag_tsurf_inlandsis .EQ. 0) THEN1200 IF (iflag_tsurf_inlandsis == 0) THEN 1201 1201 1202 1202 Tsrfsv(ikl) =TsisSV(ikl,isnoSV(ikl)) 1203 1203 1204 ELSE IF (iflag_tsurf_inlandsis .GT.0) THEN1204 ELSE IF (iflag_tsurf_inlandsis > 0) THEN 1205 1205 ! Etienne: extrapolation from the two uppermost levels: 1206 1206 … … 1208 1208 zm1=-dzsnSV(ikl,isnoSV(ikl))/2. 1209 1209 zm2=-(dzsnSV(ikl,isnoSV(ikl)) + dzsnSV(ikl,isnoSV(ikl)-1)/2.) 1210 else if (isnoSV(ikl) .EQ.1) then1210 else if (isnoSV(ikl) == 1) then 1211 1211 zm1=-dzsnSV(ikl,isnoSV(ikl))/2. 1212 1212 zm2=-(dzsnSV(ikl,isnoSV(ikl))+dz_dSV(0)/2.) … … 1236 1236 IF (SnoMod) THEN 1237 1237 1238 if (discret_xf .AND. klonv .eq.1) then1239 if(isnoSV(1) .ge.1) then1238 if (discret_xf .AND. klonv==1) then 1239 if(isnoSV(1)>=1) then 1240 1240 C + ********** 1241 1241 call SISVAT_GSn … … 1305 1305 ! Calculation of snow roughness length 1306 1306 !===================================== 1307 IF (iflag_z0m_snow .EQ.0) THEN1307 IF (iflag_z0m_snow == 0) THEN 1308 1308 1309 1309 Z0m_Sn=prescribed_z0m_snow 1310 1310 1311 ELSE IF (iflag_z0m_snow .EQ.1) THEN1311 ELSE IF (iflag_z0m_snow == 1) THEN 1312 1312 1313 1313 Z0m_Sn=Z0enSV(ikl) 1314 1314 1315 ELSE IF (iflag_z0m_snow .EQ. 2) THEN1315 ELSE IF (iflag_z0m_snow == 2) THEN 1316 1316 1317 1317 C +--Rough Snow Surface Roughness Length (Variable Sastrugi Height) … … 1336 1336 coefd = log(z03)-coefc*ta3 1337 1337 1338 if (TaT_SV(ikl) .lt.ta1) then1338 if (TaT_SV(ikl) < ta1) then 1339 1339 Z0_obs = z01 1340 else if (TaT_SV(ikl) .ge.ta1 .and. TaT_SV(ikl).lt.ta2) then1340 else if (TaT_SV(ikl)>=ta1 .and. TaT_SV(ikl)<ta2) then 1341 1341 Z0_obs = exp(coefa*TaT_SV(ikl) + coefb) 1342 else if (TaT_SV(ikl) .ge.ta2 .and. TaT_SV(ikl).lt.ta3) then1342 else if (TaT_SV(ikl)>=ta2 .and. TaT_SV(ikl)<ta3) then 1343 1343 ! if st > 0, melting induce smooth surface 1344 1344 Z0_obs = exp(coefc*TaT_SV(ikl) + coefd)
Note: See TracChangeset
for help on using the changeset viewer.