Ignore:
Timestamp:
Apr 18, 2023, 10:41:16 AM (20 months ago)
Author:
llange
Message:

PEM
Introduce module 'constants_marspem': Constants that are used are now put in this module, and load in each subroutine.
LL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/libf/evolution/co2glaciers_mod.F90

    r2918 r2944  
    6464
    6565     USE comconst_mod, ONLY: pi
     66     use comcstfi_h, only: g
    6667
    6768!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    8788      REAL,INTENT(OUT) :: hmax(ngrid,nslope) ! Physical grid x Slope field: maximum co2 thickness before flaw [m]
    8889! Local
    89       REAL, PARAMETER :: g = 3.71 ! surface gravity [m/s^2]
    9090      INTEGER,PARAMETER :: n = 7 ! flow law exponent Nye et al., 2000
    9191      REAL,PARAMETER :: Rg = 8.3145 ! gas constant [J/K/mol]
     
    226226!!!
    227227!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    228 implicit none
     228 
     229use constants_marspem_mod,only : alpha_clap_co2,beta_clap_co2
     230
     231implicit none
     232
    229233! arguments:
    230234! ----------
     
    243247      INTEGER :: ig,it ! for loop
    244248      REAL :: ave ! intermediate to compute average
    245       REAL :: alpha_clap, beta_clap ! Clapeyron law for CO2
    246       alpha_clap = 23.3494 ! James et al. 1992
    247       beta_clap = 3182.48  ! James et al. 1992
    248249
    249250!!!!!!!!!!!!!!!!!!!!!!!!!!!!
     
    253254        ave = 0
    254255        DO it = 1,timelen
    255            ave = ave + beta_clap/(alpha_clap-log(vmr_co2_PEM(ig,it)*ps_GCM(ig,it)*global_ave_ps_GCM/global_ave_ps_PEM/100))
     256           ave = ave + beta_clap_co2/(alpha_clap_co2-log(vmr_co2_PEM(ig,it)*ps_GCM(ig,it)*global_ave_ps_GCM/global_ave_ps_PEM/100))
    256257        ENDDO
    257258        Tcond(ig) = ave/timelen
Note: See TracChangeset for help on using the changeset viewer.