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/init_testphys1d_mod.F90

    r3726 r3733  
    779779! ---------------------------------------------------
    780780! Adding an option to force atmospheric water values JN
    781 atm_wat_profile = -1. ! Default: free atm wat profile
     781atm_wat_profile = -1. ! Default: free atmospheric water profile
    782782if (water) then
    783     write(*,*)'Force atmospheric water vapor profile?'
     783    write(*,*)'Force atmospheric water vapor profile (uniform column value in kg.m-2)?'
    784784    call getin('atm_wat_profile',atm_wat_profile)
    785785    write(*,*) 'atm_wat_profile = ', atm_wat_profile
     
    789789    else if (abs(atm_wat_profile) < 1.e-15) then ! if == 0.
    790790        write(*,*) 'Dry atmospheric water vapor profile'
    791     else if (0. < atm_wat_profile .and. atm_wat_profile <= 1.) then
     791    else if (0. < atm_wat_profile) then
    792792        write(*,*) 'Prescribed atmospheric water vapor profile'
    793         write(*,*) 'Unless it reaches saturation (maximal value)'
    794     else if (atm_wat_profile .eq. 2) then
    795         write(*,*) 'Prescribed atmospheric water vapor profile'
    796         write(*,*) 'like present day northern midlatitude'
    797793        write(*,*) 'Unless it reaches saturation (maximal value)'
    798794    else
     
    806802atm_wat_tau = -1. ! Default: no time relaxation
    807803if (water) then
    808     write(*,*) 'Relax atmospheric water vapor profile?'
     804    write(*,*) 'Relax atmospheric water vapor profile with time constant (s)?'
    809805    call getin('atm_wat_tau',atm_wat_tau)
    810806    write(*,*) 'atm_wat_tau = ', atm_wat_tau
    811807    if (atm_wat_tau < 0.) then
    812         write(*,*) 'Atmospheric water vapor profile is not relaxed.'
     808        write(*,*) 'Atmospheric water vapor profile is not relaxed (forcing).'
    813809    else
    814         if (0. <= atm_wat_profile .and. atm_wat_profile <= 1.) then
     810        if (0. <= atm_wat_profile) then
    815811            write(*,*) 'Relaxed atmospheric water vapor profile towards ', atm_wat_profile
    816812            write(*,*) 'Unless it reaches saturation (maximal value)'
     
    821817    endif
    822818endif
     819print*, 'looooooooooool', q(1,1,igcm_h2o_vap)
    823820
    824821END SUBROUTINE init_testphys1d
Note: See TracChangeset for help on using the changeset viewer.