- Timestamp:
- 2022-03-04T12:18:30+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ORCHIDEE_2_2/ORCHIDEE/src_sechiba/thermosoil.f90
r7506 r7508 154 154 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:) :: QZ !! quartz content [-] 155 155 !$OMP THREADPRIVATE(QZ) 156 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:) :: so_capa_dry _ns!! Dry soil Heat capacity of soils,J.m^{-3}.K^{-1}157 !$OMP THREADPRIVATE(so_capa_dry _ns)156 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:) :: so_capa_dry !! Dry soil Heat capacity of soils,J.m^{-3}.K^{-1} 157 !$OMP THREADPRIVATE(so_capa_dry) 158 158 REAL(r_std), ALLOCATABLE, SAVE, DIMENSION (:) :: so_capa_ice !! Heat capacity of saturated frozen soil (J/K/m3) 159 159 !$OMP THREADPRIVATE(so_capa_ice) … … 372 372 IF (ier /= 0) CALL ipslerr_p(3,'thermosoil_initialize', 'Error in allocation of QZ','','') 373 373 374 ALLOCATE (so_capa_dry _ns(nscm),stat=ier)375 IF (ier /= 0) CALL ipslerr_p(3,'thermosoil_initialize', 'Error in allocation of so_capa_dry _ns','','')374 ALLOCATE (so_capa_dry(nscm),stat=ier) 375 IF (ier /= 0) CALL ipslerr_p(3,'thermosoil_initialize', 'Error in allocation of so_capa_dry','','') 376 376 377 377 ALLOCATE (so_capa_ice(kjpindex),stat=ier) … … 381 381 !! Soil texture choose : Now useless since njsc defines the dominant texture within 13 classes whichever the soil map 382 382 QZ(:) = QZ_usda(:) 383 so_capa_dry_ns(:) = so_capa_dry_ns_usda(:) 384 383 so_capa_dry(:) = so_capa_dry_usda(:) 384 385 !Config Key = DRY_SOIL_HEAT_CAPACITY 386 !Config Desc = Dry soil Heat capacity of soils 387 !Config If = OK_SECHIBA 388 !Config Def = (1.47, 1.41, 1.34, 1.27, 1.21, 1.21, 1.18, 1.32, 1.23, 1.18, 1.15, 1.09, 1.09)*e+6 389 !Config Help = Values taken from : Pielke [2002, 2013] 390 !Config Units = [J.m^{-3}.K^{-1}] 391 CALL getin_p("DRY_SOIL_HEAT_CAPACITY",so_capa_dry) 392 393 !! Check parameter value (correct range) 394 IF ( MINVAL(so_capa_dry(:)) <= zero ) THEN 395 CALL ipslerr_p(3, "thermosoil_initialize", & 396 "Wrong parameter value for DRY_SOIL_HEAT_CAPACITY.", & 397 "This parameter should be positive. ", & 398 "Please, check parameter value in run.def or orchidee.def. ") 399 END IF 400 401 385 402 !! 2. Initialize variable from restart file or with default values 386 403 … … 1627 1644 DO jg = 1, ngrnd 1628 1645 jst = njsc(ji) 1629 pcapa_tmp(ji, jg) = so_capa_dry _ns(jst) * (1-mcs(ji)) + water_capa * tmc_layt(ji,jg)/mille/dlt(jg)1646 pcapa_tmp(ji, jg) = so_capa_dry(jst) * (1-mcs(ji)) + water_capa * tmc_layt(ji,jg)/mille/dlt(jg) 1630 1647 ! 1631 1648 ! 2. Calculate volumetric heat capacity with allowance for permafrost … … 1638 1655 profil_froz(ji,jg) = 1. 1639 1656 pcappa_supp(ji,jg)= 0. 1640 pcapa(ji, jg) = so_capa_dry _ns(jst) * (1-mcs(ji)) + so_capa_ice(ji) * tmc_layt(ji,jg) / mille / dlt(jg)1657 pcapa(ji, jg) = so_capa_dry(jst) * (1-mcs(ji)) + so_capa_ice(ji) * tmc_layt(ji,jg) / mille / dlt(jg) 1641 1658 rho_tot = rho_soil * (1-mcs(ji)) + rho_ice * tmc_layt(ji,jg) / mille / dlt(jg) 1642 1659 pcapa_spec(ji, jg) = pcapa(ji, jg) / rho_tot … … 1655 1672 1656 1673 IF (ok_freeze_thaw_latent_heat) THEN 1657 pcapa(ji, jg) = so_capa_dry _ns(jst) * (1-mcs(ji)) + &1674 pcapa(ji, jg) = so_capa_dry(jst) * (1-mcs(ji)) + & 1658 1675 water_capa * tmc_layt(ji,jg)/mille / dlt(jg) * xx + & 1659 1676 so_capa_ice(ji) * tmc_layt(ji,jg) / mille/dlt(jg) * (1.-xx) + & 1660 1677 shum_ngrnd_perma(ji,jg)*mcs(ji)*lhf*rho_water/fr_dT 1661 1678 ELSE 1662 pcapa(ji, jg) = so_capa_dry _ns(jst) * (1-mcs(ji)) + &1679 pcapa(ji, jg) = so_capa_dry(jst) * (1-mcs(ji)) + & 1663 1680 water_capa * tmc_layt(ji,jg)/mille / dlt(jg) * xx + & 1664 1681 so_capa_ice(ji) * tmc_layt(ji,jg) / mille/dlt(jg) * (1.-xx) … … 1752 1769 DO ji = 1,kjpindex 1753 1770 jst = njsc(ji) 1754 pcapa_tmp(ji, jg) = so_capa_dry _ns(jst) * (1-mcs(ji)) + water_capa * tmc_layt(ji,jg)/mille/dlt(jg)1771 pcapa_tmp(ji, jg) = so_capa_dry(jst) * (1-mcs(ji)) + water_capa * tmc_layt(ji,jg)/mille/dlt(jg) 1755 1772 pcapa(ji,jg) = pcapa_tmp(ji, jg) 1756 1773 pcapa_en(ji,jg) = pcapa_tmp(ji, jg)
Note: See TracChangeset
for help on using the changeset viewer.