Changeset 3143 for palm/trunk/SOURCE
- Timestamp:
- Jul 17, 2018 10:14:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/land_surface_model_mod.f90
r3142 r3143 25 25 ! ----------------- 26 26 ! $Id$ 27 ! Modified calculation of the surface resistance r_s 28 ! 29 ! 3142 2018-07-17 15:27:45Z suehring 27 30 ! Minor bugfix for last commit. 28 31 ! … … 2151 2154 2152 2155 ! 2153 !-- Calculate the true surface resistance 2156 !-- Calculate the true surface resistance. ABS is used here to avoid negative 2157 !-- values that can occur for very small fluxes due to the artifical addition 2158 !-- of 1.0E-20. 2154 2159 IF ( .NOT. humidity ) THEN 2155 2160 surf%r_s(m) = 1.0E10_wp 2156 2161 ELSE 2157 surf%r_s(m) = - rho_lv * ( surf%qv1(m) - q_s + dq_s_dt & 2158 * surf_t_surface%var_1d(m) - dq_s_dt * & 2159 surf_t_surface_p%var_1d(m) ) / & 2160 (surf%qsws(m) + 1.0E-20) - surf%r_a(m) 2162 surf%r_s(m) = ABS(rho_lv / (f_qsws + 1.0E-20_wp) - surf%r_a(m)) 2161 2163 ENDIF 2162 !2163 !-- Limit resistance resistance2164 surf%r_s(m) = MAX( surf%r_s(m), 1.0_wp )2165 2164 ! 2166 2165 !-- Calculate change in liquid water reservoir due to dew fall or
Note: See TracChangeset
for help on using the changeset viewer.