Changeset 4180 for trunk/LMDZ.COMMON/libf/evolution/planet.F90
- Timestamp:
- Apr 10, 2026, 7:17:55 PM (6 hours ago)
- File:
-
- 1 edited
-
trunk/LMDZ.COMMON/libf/evolution/planet.F90 (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.COMMON/libf/evolution/planet.F90
r4170 r4180 21 21 ! ------------ 22 22 use numerics, only: dp, qp, k4 23 use layered_deposits, only: layering 23 use layered_deposits, only: layering, del_layering 24 24 25 25 ! DECLARATION … … 231 231 implicit none 232 232 233 ! LOCAL VARIABLES 234 ! --------------- 235 integer :: i, islope 236 233 237 ! CODE 234 238 ! ---- … … 253 257 delta_h2o_ads(:) = 0._dp 254 258 delta_co2_ads(:) = 0._dp 259 do islope = 1,nslope 260 do i = 1,ngrid 261 layerings_map(i,islope)%nb_str = 0 262 nullify(layerings_map(i,islope)%bottom,layerings_map(i,islope)%top) 263 end do 264 end do 255 265 256 266 END SUBROUTINE allocate_startevo_state … … 386 396 !----------------------------------------------------------------------- 387 397 388 ! DECLARATION 389 ! ----------- 390 implicit none 398 ! DEPENDENCIES 399 ! ------------ 400 use geometry, only: ngrid, nslope 401 402 ! DECLARATION 403 ! ----------- 404 implicit none 405 406 ! LOCAL VARIABLES 407 ! --------------- 408 integer :: i, islope 391 409 392 410 ! CODE … … 407 425 if (allocated(tsoil_ts)) deallocate(tsoil_ts) 408 426 if (allocated(tsoil_ts_old)) deallocate(tsoil_ts_old) 409 if (allocated(layerings_map)) deallocate(layerings_map) 427 if (allocated(layerings_map)) then 428 do islope = 1,nslope 429 do i = 1,ngrid 430 call del_layering(layerings_map(i,islope)) 431 end do 432 end do 433 deallocate(layerings_map) 434 end if 410 435 if (allocated(h2o_soildensity_avg)) deallocate(h2o_soildensity_avg) 411 436 if (allocated(delta_co2_ads)) deallocate(delta_co2_ads) … … 424 449 if (allocated(d_co2ice_ini)) deallocate(d_co2ice_ini) 425 450 if (allocated(d_h2oice)) deallocate(d_h2oice) 426 if (allocated(layerings_map)) deallocate(layerings_map)427 451 if (allocated(flux_ssice_avg)) deallocate(flux_ssice_avg) 428 452
Note: See TracChangeset
for help on using the changeset viewer.
