Ignore:
Timestamp:
Apr 14, 2023, 6:25:51 PM (20 months ago)
Author:
llange
Message:

Mars PCM
Add the possibility to use a different thermal inertia (field
'inertiesoil') than inertiedat in the PCM (for paleoclimate studies). By defaut, if there is not
inertiesoil, inertiedat is used. Soil_tifeedback still work with
inertiedat
Newstart adapted, start2archive will be modified by Romain
Vandemeulebrouck.
LL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/comsoil_h.F90

    r2919 r2942  
    88  real,save,allocatable,dimension(:) :: layer      ! soil layer depths
    99  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
    1112  real,save :: volcapa    ! soil volumetric heat capacity
    1213       ! NB: volcapa is read fromn control(35) from physicq start file
     
    3839    allocate(layer(nsoilmx)) !soil layer depths
    3940    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
    4243    allocate(tsoil(ngrid,nsoilmx,nslope)) ! soil temperatures
    43 
    4444    allocate(mthermdiff(ngrid,0:nsoilmx-1,nslope))
    4545    allocate(thermdiff(ngrid,nsoilmx-1,nslope))
     
    6060    if (allocated(mlayer)) deallocate(mlayer)
    6161    if (allocated(inertiedat)) deallocate(inertiedat)
     62    if (allocated(inertiesoil)) deallocate(inertiesoil)
    6263    if (allocated(tsoil)) deallocate(tsoil)
    6364    if (allocated(mthermdiff)) deallocate(mthermdiff)
     
    7778 
    7879    allocate(tsoil(ngrid,nsoilmx,nslope)) ! soil temperatures
     80    allocate(inertiesoil(ngrid,nsoilmx,nslope)) ! soil thermal inertia
    7981    allocate(mthermdiff(ngrid,0:nsoilmx-1,nslope))
    8082    allocate(thermdiff(ngrid,nsoilmx-1,nslope))
     
    9193
    9294    if (allocated(tsoil)) deallocate(tsoil)
     95    if (allocated(inertiesoil)) deallocate(inertiesoil)
    9396    if (allocated(mthermdiff)) deallocate(mthermdiff)
    9497    if (allocated(thermdiff)) deallocate(thermdiff)
Note: See TracChangeset for help on using the changeset viewer.