- Timestamp:
- Jul 24, 2024, 4:23:34 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/surf_landice_mod.F90
r5116 r5117 66 66 !**************************************************************************************** 67 67 INTEGER, INTENT(IN) :: itime, knon 68 INTEGER, DIMENSION(klon), INTENT( in) :: knindex69 REAL, INTENT( in) :: dtime68 INTEGER, DIMENSION(klon), INTENT(IN) :: knindex 69 REAL, INTENT(IN) :: dtime 70 70 REAL, DIMENSION(klon), INTENT(IN) :: swnet ! net shortwave radiance 71 71 REAL, DIMENSION(klon), INTENT(IN) :: lwnet ! net longwave radiance … … 135 135 #ifdef ISO 136 136 REAL, DIMENSION(ntiso,klon), INTENT(OUT) :: xtevap 137 ! real, DIMENSION(niso,klon) :: xtrun_off_lic_0_diag ! est une variable globale de137 ! REAL, DIMENSION(niso,klon) :: xtrun_off_lic_0_diag ! est une variable globale de 138 138 ! fonte_neige 139 139 #endif … … 163 163 REAL, DIMENSION(niso,klon) :: xtsnow_prec,xtsol_prec 164 164 REAL, DIMENSION(klon) :: snow_prec,qsol_prec 165 ! real, DIMENSION(klon) :: run_off_lic_0_diag165 ! REAL, DIMENSION(klon) :: run_off_lic_0_diag 166 166 #endif 167 167 … … 433 433 !**************************************************************************************** 434 434 435 if(z0m_landice > 0.) THEN435 IF (z0m_landice > 0.) THEN 436 436 z0m(1:knon) = z0m_landice 437 437 z0h(1:knon) = z0h_landice … … 449 449 coefd = log(z03) - coefc * ta3 450 450 do j = 1, knon 451 if(temp_air(j) < ta1) THEN451 IF (temp_air(j) < ta1) THEN 452 452 z0m(j) = z01 453 else if (temp_air(j)>=ta1 .and. temp_air(j)<ta2) THEN453 ELSE IF (temp_air(j)>=ta1 .AND. temp_air(j)<ta2) THEN 454 454 z0m(j) = exp(coefa * temp_air(j) + coefb) 455 else if (temp_air(j)>=ta2 .and. temp_air(j)<ta3) THEN455 ELSE IF (temp_air(j)>=ta2 .AND. temp_air(j)<ta3) THEN 456 456 ! if st > 0, melting induce smooth surface 457 457 z0m(j) = exp(coefc * temp_air(j) + coefd) … … 473 473 ! this layer 474 474 475 if(ok_bs) THEN475 IF (ok_bs) THEN 476 476 fluxbs(:) = 0. 477 477 do j = 1, knon … … 484 484 ! 1st step: erosion of fresh snow accumulated during the time step 485 485 do j = 1, knon 486 if(precip_snow(j) > 0.) THEN486 IF (precip_snow(j) > 0.) THEN 487 487 rhos(j) = rhofresh_bs 488 488 ! blowing snow flux formula used in MAR … … 507 507 fluxbs_1(j) = max(-maxerosion, fluxbs_1(j)) 508 508 509 if(precip_snow(j) > abs(fluxbs_1(j))) THEN509 IF (precip_snow(j) > abs(fluxbs_1(j))) THEN 510 510 ok_remaining_freshsnow(j) = .TRUE. 511 511 bsweight_fresh(j) = 1. … … 530 530 ! which depends on surface snow density 531 531 do j = 1, knon 532 if(ok_remaining_freshsnow(j)) THEN532 IF (ok_remaining_freshsnow(j)) THEN 533 533 fluxbs_2(j) = 0. 534 534 else
Note: See TracChangeset
for help on using the changeset viewer.