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/dyn3d/iniacademic.F90

    r4325 r4376  
    1818  USE comconst_mod, ONLY: cpp, kappa, g, daysec, dtvr, pi, im, jm
    1919  USE logic_mod, ONLY: iflag_phys, read_start
    20   USE comvert_mod, ONLY: ap, bp, preff, presnivs, pressure_exner
     20  USE comvert_mod, ONLY: ap, bp, preff, pa, presnivs, pressure_exner
    2121  USE temps_mod, ONLY: annee_ref, day_ini, day_ref
    2222  USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0
     
    114114  endif
    115115
     116
     117  if ( ( .not. read_start ) .and. ( iflag_phys > 2 ) ) then
     118        ! 101080 : specific value for CMIP5 aqua/terra planets
     119        ! "Specify the initial dry mass to be equivalent to
     120        !  a global mean surface pressure (101325 minus 245) Pa."
     121        preff=101080.
     122        call getin('psurf',preff)
     123        pa=preff/2.
     124  endif
     125
    116126  CALL iniconst
    117127  CALL inigeom
     
    120130  ! Initialize pressure and mass field if read_start=.false.
    121131  IF (.NOT. read_start) THEN
    122      ! surface pressure
    123      if (iflag_phys>2) then
    124         ! specific value for CMIP5 aqua/terra planets
    125         ! "Specify the initial dry mass to be equivalent to
    126         !  a global mean surface pressure (101325 minus 245) Pa."
    127         ps(:)=101080. 
    128      else
    129         ! use reference surface pressure
    130         ps(:)=preff
    131      endif
     132     ps(:)=preff
    132133
    133134     ! ground geopotential
Note: See TracChangeset for help on using the changeset viewer.