Ignore:
Timestamp:
Feb 1, 2023, 9:34:37 AM (22 months ago)
Author:
llange
Message:

Mars PCM
Include geothermal flux as boundary conditions when solving the
diffusion equation for the soil temperature
By default, the geothermal flux is set to 0. To have geothermal flux >
0., it must be specified in the startfi. (I suggest to use a value of
30e-3 in this case)
Will be use with the PEM for studies of "paleosubsurfaces"
LL

File:
1 edited

Legend:

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

    r2616 r2887  
    2525  real,save,allocatable :: beta(:,:)        ! beta_k coefficients
    2626  real,save :: mu
     27  real,save,allocatable :: flux_geo(:)       ! Geothermal Flux (W/m^2)
    2728
    28 !$OMP THREADPRIVATE(tsoil,mthermdiff,thermdiff,coefq,coefd,alph,beta,mu )
     29!$OMP THREADPRIVATE(tsoil,mthermdiff,thermdiff,coefq,coefd,alph,beta,mu,flux_geo)
    2930
    3031contains
     
    4748    allocate(alph(ngrid,nsoilmx-1))
    4849    allocate(beta(ngrid,nsoilmx-1))
    49 
     50    allocate(flux_geo(ngrid))
    5051 
    5152  end subroutine ini_comsoil_h
     
    6667    if (allocated(alph)) deallocate(alph)
    6768    if (allocated(beta)) deallocate(beta)
    68 
     69    if (allocated(flux_geo)) deallocate(flux_geo)
    6970  end subroutine end_comsoil_h
    7071
Note: See TracChangeset for help on using the changeset viewer.