Changeset 3744 for palm/trunk/SOURCE/plant_canopy_model_mod.f90
- Timestamp:
- Feb 15, 2019 6:38:58 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/plant_canopy_model_mod.f90
r3685 r3744 22 22 ! Current revisions: 23 23 ! ------------------ 24 ! 24 ! Bugfix in transpiration, floating invalid when temperature 25 ! becomes > 40 degrees 25 26 ! 26 27 ! Former revisions: … … 236 237 !> 2) Calculation of sinks and sources of momentum, heat and scalar concentration 237 238 !> due to canopy elements (subroutine pcm_tendency). 239 ! 240 ! @todo - precalculate constant terms in pcm_calc_transpiration_rate 238 241 !------------------------------------------------------------------------------! 239 242 MODULE plant_canopy_model_mod … … 422 425 sat_press_d = sat_press * 17.27_wp * 237.3_wp / (temp + 237.3_wp)**2 423 426 !-- Wind speed 424 wind_speed = SQRT( ( (u(k,j,i) + u(k,j,i+1))/2.0_wp )**2 +&425 ( (v(k,j,i) + v(k,j,i+1))/2.0_wp )**2 +&426 ( (w(k,j,i) + w(k,j,i+1))/2.0_wp)**2 )427 wind_speed = SQRT( ( 0.5_wp * ( u(k,j,i) + u(k,j,i+1) ) )**2 + & 428 ( 0.5_wp * ( v(k,j,i) + v(k,j,i+1) ) )**2 + & 429 ( 0.5_wp * ( w(k,j,i) + w(k,j,i+1) ) )**2 ) 427 430 !-- Aerodynamic conductivity (Daudet et al. (1999) eq. 14 428 431 g_b = 0.01_wp * wind_speed + 0.0071_wp … … 434 437 !-- Second function for calculation of stomatal conductivity (temperature dependency) 435 438 !-- Stewart (1988; Agric. and Forest. Meteorol. 43) eq. 21 436 f2 = MAX(t2_min, (temp-t2_min) * (t2_max-temp)**((t2_max-16.9_wp)/(16.9_wp-t2_min)) / &439 f2 = MAX(t2_min, (temp-t2_min) * MAX(0.0_wp,t2_max-temp)**((t2_max-16.9_wp)/(16.9_wp-t2_min)) / & 437 440 ((16.9_wp-t2_min) * (t2_max-16.9_wp)**((t2_max-16.9_wp)/(16.9_wp-t2_min))) ) 438 441 !-- Water pressure deficit
Note: See TracChangeset
for help on using the changeset viewer.