Ignore:
Timestamp:
Jan 8, 2023, 2:30:23 AM (17 months ago)
Author:
fhourdin
Message:

Imposing surface pressure from .def with iniacademic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3dmem/iniacademic_loc.F90

    r4325 r4376  
    1919  USE comconst_mod, ONLY: cpp, kappa, g, daysec, dtvr, pi, im, jm
    2020  USE logic_mod, ONLY: iflag_phys, read_start
    21   USE comvert_mod, ONLY: ap, bp, preff, presnivs, pressure_exner
     21  USE comvert_mod, ONLY: ap, bp, preff, pa, presnivs, pressure_exner
    2222  USE temps_mod, ONLY: annee_ref, day_ini, day_ref
    2323  USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0
     
    118118  endif
    119119
     120  if ( ( .not. read_start ) .and. (iflag_phys>2) ) then
     121     ! 101080 : specific value for CMIP5 aqua/terra planets
     122     ! "Specify the initial dry mass to be equivalent to
     123     !  a global mean surface pressure (101325 minus 245) Pa."
     124     preff=101080.
     125     call getin('psurf',preff)
     126     pa=preff/2.
     127  endif
     128
    120129  CALL iniconst
    121130  CALL inigeom
     
    133142
    134143     ! surface pressure
    135      if (iflag_phys>2) then
    136         ! specific value for CMIP5 aqua/terra planets
    137         ! "Specify the initial dry mass to be equivalent to
    138         !  a global mean surface pressure (101325 minus 245) Pa."
    139         ps_glo(:)=101080. 
    140      else
    141         ! use reference surface pressure
    142         ps_glo(:)=preff
    143      endif
     144     ps_glo(:)=preff
    144145
    145146     ! ground geopotential
Note: See TracChangeset for help on using the changeset viewer.