Ignore:
Timestamp:
Jul 15, 2025, 12:13:09 PM (3 weeks ago)
Author:
jbclement
Message:

Mars PCM 1D:
In the 1D model, if no input profile found, the 'dust_mass' and 'dust_number' tracers are initialized according to "Conrath dust" in line with what it's done for CO2 and HDO, instead of being set to 0 which caused bugs.
JBC

File:
1 edited

Legend:

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

    r3843 r3848  
    319319write(*,*) " psurf = ",psurf
    320320
     321! Compute pressures and altitudes of atmospheric levels
     322! -----------------------------------------------------
     323! Vertical Coordinates
     324! """"""""""""""""""""
     325hybrid = .true.
     326write(*,*)'Hybrid coordinates?'
     327call getin("hybrid",hybrid)
     328write(*,*) " hybrid = ", hybrid
     329
     330! Reference pressures
     331pa = 20.     ! Transition pressure (for hybrid coord.)
     332preff = 610. ! Reference surface pressure
     333
     334call disvert_noterre
     335! Now that disvert has been called, initialize module vertical_layers_mod
     336call init_vertical_layers(nlayer,preff,scaleheight,ap,bp,aps,bps,presnivs,pseudoalt)
     337
     338plev = ap + psurf*bp
     339play = aps + psurf*bps
     340zlay = -200.*r*log(play/plev(1))/g
     341
    321342! Coefficient to control the surface pressure change
    322343! To be defined in "callphys.def" so that the PEM can read it asa well
     
    331352    error stop 'Please, specify a correct value!'
    332353endif
    333 
    334 ! Reference pressures
    335 pa = 20.     ! Transition pressure (for hybrid coord.)
    336 preff = 610. ! Reference surface pressure
    337354
    338355! Aerosol properties
     
    512529write(*,*) "init_testphys1d: initializing tracers"
    513530if (.not. therestart1D) then
    514     call read_profile(nq,nlayer,qsurf(1,:,1),q)
     531    call read_profile(nq,nlayer,qsurf(1,:,1),q,play)
    515532    do iq = 1,nq
    516533        qsurf(1,iq,:) = qsurf(1,iq,1)
     
    631648    endif
    632649endif !(.not. therestartfi)
    633 
    634 ! Compute pressures and altitudes of atmospheric levels
    635 ! -----------------------------------------------------
    636 ! Vertical Coordinates
    637 ! """"""""""""""""""""
    638 hybrid = .true.
    639 write(*,*)'Hybrid coordinates?'
    640 call getin("hybrid",hybrid)
    641 write(*,*) " hybrid = ", hybrid
    642 
    643 call disvert_noterre
    644 ! Now that disvert has been called, initialize module vertical_layers_mod
    645 call init_vertical_layers(nlayer,preff,scaleheight,ap,bp,aps,bps,presnivs,pseudoalt)
    646 
    647 plev = ap + psurf*bp
    648 play = aps + psurf*bps
    649 zlay = -200.*r*log(play/plev(1))/g
    650650
    651651! Initialize temperature profile
Note: See TracChangeset for help on using the changeset viewer.