Changeset 2942 for trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90
- Timestamp:
- Apr 14, 2023, 6:25:51 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90
r2919 r2942 8 8 real,save,allocatable,dimension(:) :: layer ! soil layer depths 9 9 real,save,allocatable,dimension(:) :: mlayer ! soil mid-layer depths 10 real,save,allocatable,dimension(:,:) :: inertiedat ! soil thermal inertia 10 real,save,allocatable,dimension(:,:) :: inertiedat ! soil thermal inertia for present climate 11 real,save,allocatable,dimension(:,:,:) :: inertiesoil ! soil thermal inertia 11 12 real,save :: volcapa ! soil volumetric heat capacity 12 13 ! NB: volcapa is read fromn control(35) from physicq start file … … 38 39 allocate(layer(nsoilmx)) !soil layer depths 39 40 allocate(mlayer(0:nsoilmx-1)) ! soil mid-layer depths 40 allocate(inertiedat(ngrid,nsoilmx)) ! soil thermal inertia 41 41 allocate(inertiedat(ngrid,nsoilmx)) ! soil thermal inertia for present climate 42 allocate(inertiesoil(ngrid,nsoilmx,nslope)) ! soil thermal inertia 42 43 allocate(tsoil(ngrid,nsoilmx,nslope)) ! soil temperatures 43 44 44 allocate(mthermdiff(ngrid,0:nsoilmx-1,nslope)) 45 45 allocate(thermdiff(ngrid,nsoilmx-1,nslope)) … … 60 60 if (allocated(mlayer)) deallocate(mlayer) 61 61 if (allocated(inertiedat)) deallocate(inertiedat) 62 if (allocated(inertiesoil)) deallocate(inertiesoil) 62 63 if (allocated(tsoil)) deallocate(tsoil) 63 64 if (allocated(mthermdiff)) deallocate(mthermdiff) … … 77 78 78 79 allocate(tsoil(ngrid,nsoilmx,nslope)) ! soil temperatures 80 allocate(inertiesoil(ngrid,nsoilmx,nslope)) ! soil thermal inertia 79 81 allocate(mthermdiff(ngrid,0:nsoilmx-1,nslope)) 80 82 allocate(thermdiff(ngrid,nsoilmx-1,nslope)) … … 91 93 92 94 if (allocated(tsoil)) deallocate(tsoil) 95 if (allocated(inertiesoil)) deallocate(inertiesoil) 93 96 if (allocated(mthermdiff)) deallocate(mthermdiff) 94 97 if (allocated(thermdiff)) deallocate(thermdiff)
Note: See TracChangeset
for help on using the changeset viewer.