Changeset 4180 for trunk/LMDZ.COMMON/libf/evolution/tendencies.F90
- Timestamp:
- Apr 10, 2026, 7:17:55 PM (6 hours ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/tendencies.F90 (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/tendencies.F90
r4170 r4180 18 18 ! DEPENDENCIES 19 19 ! ------------ 20 use numerics, only: dp, di, k4, minieps, tol20 use numerics, only: dp, di, k4, eps 21 21 22 22 ! DECLARATION … … 62 62 63 63 ! If the difference is too small, then there is no evolution 64 where (abs(d_ice) < minieps) d_ice = 0._dp64 where (abs(d_ice) < eps) d_ice = 0._dp 65 65 66 66 ! If the tendency is negative but there is no ice reservoir for the PEM 67 where (d_ice(:,:) < 0._dp .and. abs(perice(:,:)) < minieps) d_ice(:,:) = 0._dp67 where (d_ice(:,:) < 0._dp .and. abs(perice(:,:)) < eps) d_ice(:,:) = 0._dp 68 68 69 69 END SUBROUTINE compute_tendice … … 170 170 ! ARGUMENTS 171 171 ! --------- 172 real(dp), dimension(:,:), intent(in) :: h2oice_depth_old ! Old H2O ice depth173 real(dp), dimension(:,:), intent(in) :: h2oice_depth_new ! New H2O ice depth174 real(dp), dimension(:,:), intent(in) :: tsurf ! Surface temperature175 real(dp), dimension(:,:,:,:), intent(in) :: tsoil_ts_old ! Old soil temperature time series176 real(dp), dimension(:,:,:,:), intent(in) :: tsoil_ts_new ! New soil temperature time series177 real(dp), dimension(:,:), intent(inout) :: flux_ssice_avg ! Tendency of sub-surface ice172 real(dp), dimension(:,:), intent(in) :: h2oice_depth_old ! Old H2O ice depth 173 real(dp), dimension(:,:), intent(in) :: h2oice_depth_new ! New H2O ice depth 174 real(dp), dimension(:,:), intent(in) :: tsurf ! Surface temperature 175 real(dp), dimension(:,:,:,:), intent(in) :: tsoil_ts_old ! Old soil temperature time series 176 real(dp), dimension(:,:,:,:), intent(in) :: tsoil_ts_new ! New soil temperature time series 177 real(dp), dimension(:,:), intent(inout) :: flux_ssice_avg ! Tendency of sub-surface ice 178 178 179 179 ! LOCAL VARIABLES … … 190 190 do islope = 1,nslope 191 191 ! Higher resistance due to growing lag layer (higher depth) 192 Rz_old = h2oice_depth_old(i,islope)*zcdv/ coef_ssdif_PCM(i,islope) ! Old resistance from PCM193 Rz_new = h2oice_depth_new(i,islope)*zcdv/ coef_ssdif_PCM(i,islope) ! New resistance based on new depth194 R_dec = Rz_old/ Rz_new! Decrease because of resistance192 Rz_old = h2oice_depth_old(i,islope)*zcdv/max(abs(coef_ssdif_PCM(i,islope)),eps) ! Old resistance from PCM 193 Rz_new = h2oice_depth_new(i,islope)*zcdv/max(abs(coef_ssdif_PCM(i,islope)),eps) ! New resistance based on new depth 194 R_dec = Rz_old/max(Rz_new,eps) ! Decrease because of resistance 195 195 196 196 ! The maxmimum of the daily averages over one year for the saturation vapor pressure at the ice table location … … 203 203 204 204 ! Lower humidity due to growing lag layer (higher depth) 205 if (abs(psv_max_old) < tol) then205 if (abs(psv_max_old) < eps) then 206 206 hum_dec = 1._dp 207 207 else
Note: See TracChangeset
for help on using the changeset viewer.
