Ignore:
Timestamp:
Apr 22, 2025, 6:08:46 PM (8 weeks ago)
Author:
jbclement
Message:

Mars PCM:
Fixing a sanity check for the prescribtion of the atmospheric water profile in 1D and making comments more explicit.
JBC

File:
1 edited

Legend:

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

    r3726 r3733  
    150150                     time,psurf,u,v,temp,ndt,ptif,pks,dttestphys,zqsat,dq,dqdyn,day0,day,gru,grv,w, &
    151151                     play,plev,latitude,longitude,cell_area,atm_wat_profile,atm_wat_tau)
    152 
     152print*, 'yooooooooooooooooooo', q(1,1,igcm_h2o_vap)
    153153! Write a "startfi" file
    154154! ----------------------
     
    163163                  totcloudfrac,wstar,watercap,perennial_co2ice)
    164164endif !(.not. therestartfi)
     165print*, 'yooooooooooooooooooo', q(1,1,igcm_h2o_vap)
    165166
    166167!=======================================================================
     
    200201    if (water) then
    201202        call watersat(nlayer,temp,play,zqsat)
    202         if (0. <= atm_wat_profile .and. atm_wat_profile <= 1.) then
    203         ! If atmospheric water is monitored
    204             if (atm_wat_tau < 0.) then ! Prescribed atm_wat_profile: wet if >0, dry if =0
     203        if (0. <= atm_wat_profile) then ! If atmospheric water is monitored
     204            if (atm_wat_tau < 0.) then ! Case for prescribed atm_wat_profile: wet if >0, dry if =0
    205205                q(1,:,igcm_h2o_vap) = min(zqsat,atm_wat_profile*g/psurf)
    206206                q(1,:,igcm_h2o_ice) = 0. ! reset h2o ice
    207             else ! Relaxation towards the value atm_wat_profile with relaxation time atm_wat_tau
     207            else !  Case for relaxation towards the value atm_wat_profile with relaxation time atm_wat_tau
    208208                q(1,:,igcm_h2o_vap) = atm_wat_profile*g/psurf + (q(1,:,igcm_h2o_vap) - atm_wat_profile*g/psurf)*dexp(-dttestphys/atm_wat_tau)
    209209                q(1,:,igcm_h2o_ice) = 0. ! reset h2o ice
Note: See TracChangeset for help on using the changeset viewer.