Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phylmd/conf_phys_m.F90

    r2298 r2408  
    2727    USE phys_cal_mod
    2828    USE carbon_cycle_mod, ONLY : carbon_cycle_tr, carbon_cycle_cpl
    29     USE control_mod
    3029    USE mod_grid_phy_lmdz, only: klon_glo
    31 
     30    USE print_control_mod, ONLY: lunout
    3231
    3332
     
    3938
    4039    include "thermcell.h"
    41     include "iniprint.h"
    4240
    4341
     
    206204    LOGICAL,SAVE :: ok_strato_omp
    207205    LOGICAL,SAVE :: ok_hines_omp, ok_gwd_rando_omp
    208     real, SAVE:: GWD_RANDO_RUWMAX_omp, gwd_rando_sat_omp
     206    real, SAVE:: gwd_rando_ruwmax_omp, gwd_rando_sat_omp
     207    real, SAVE:: gwd_front_ruwmax_omp, gwd_front_sat_omp
     208    real, save:: sso_gkdrag_omp,sso_grahil_omp,sso_grcrit_omp
     209    real, save:: sso_gfrcri_omp,sso_gkwake_omp,sso_gklift_omp
    209210    LOGICAL,SAVE :: ok_qch4_omp
    210211    LOGICAL,SAVE      :: carbon_cycle_tr_omp
     
    220221    !-----------------------------------------------------------------
    221222
    222      print*,'CONFPHYS ENTREE'
     223    print*,'CONFPHYS ENTREE'
    223224    !$OMP MASTER
    224225    !Config Key  = type_ocean
     
    249250       WRITE(lunout,*)'Variable OCEAN has been replaced by the variable type_ocean.'
    250251       WRITE(lunout,*)'You have to update your parameter file physiq.def to succed running'
    251        CALL abort_gcm('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)
     252       CALL abort_physic('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)
    252253    END IF
    253254
     
    262263       WRITE(lunout,*)'ERROR! Timestep of coupling between atmosphere and ocean'
    263264       WRITE(lunout,*)'cannot be zero.'
    264        CALL abort_gcm('conf_phys','t_coupl = 0.',1)
     265       CALL abort_physic('conf_phys','t_coupl = 0.',1)
    265266    END IF
    266267
     
    915916    NSW_omp = 6
    916917    call getin('NSW',NSW_omp)
    917 !albedo SB >>>
     918    !albedo SB >>>
    918919    iflag_albedo_omp = 0
    919920    call getin('iflag_albedo',iflag_albedo_omp)
     
    921922    ok_chlorophyll_omp=.false.
    922923    call getin('ok_chlorophyll',ok_chlorophyll_omp)
    923 !albedo SB <<<
     924    !albedo SB <<<
    924925
    925926    !
     
    930931    !
    931932    iflag_cld_th_omp = 1
    932 ! On lit deux fois avec l'ancien et le nouveau nom
    933 ! pour assurer une retrocompatiblite.
    934 ! A abandonner un jour
     933    ! On lit deux fois avec l'ancien et le nouveau nom
     934    ! pour assurer une retrocompatiblite.
     935    ! A abandonner un jour
    935936    call getin('iflag_cldcon',iflag_cld_th_omp)
    936937    call getin('iflag_cld_th',iflag_cld_th_omp)
     
    16801681    !
    16811682
    1682 ! Gustiness flags
     1683    ! Gustiness flags
    16831684    f_z0qh_oce_omp = 1.
    16841685    call getin('f_z0qh_oce',f_z0qh_oce_omp)
     
    18131814    !Config  Def  = .FALSE.
    18141815    !Config  Help = active la version stratosph\'erique de LMDZ de F. Lott
     1816    !               Et la sponge layer (Runs Stratospheriques)
    18151817
    18161818    ok_strato_omp=.FALSE.
     
    18211823    !Config  Def  = .FALSE.
    18221824    !Config  Help = Clefs controlant la parametrization de Hines
    1823     !               Et la sponge layer (Runs Stratospheriques)
    18241825
    18251826    ok_hines_omp=.FALSE.
    18261827    CALL getin('ok_hines',ok_hines_omp)
     1828
     1829    !  Parametres pour les ondes de gravite
     1830    ! 
     1831    !  Subgrid Scale Orography (Lott Miller (1997), Lott (1999))
     1832
     1833    sso_gkdrag_omp = merge(0.1875, 0.2, ok_strato_omp)
     1834    CALL getin('sso_gkdrag', sso_gkdrag_omp)
     1835
     1836    sso_grahil_omp=merge(0.1,1.,ok_strato_omp)
     1837    CALL getin('sso_grahil', sso_grahil_omp)
     1838
     1839    sso_grcrit_omp =merge(1.,0.01,ok_strato_omp)
     1840    CALL getin('sso_grcrit', sso_grcrit_omp)
     1841
     1842    sso_gfrcri_omp = 1.
     1843    CALL getin('sso_gfrcri', sso_gfrcri_omp)
     1844
     1845    sso_gkwake_omp = 0.50
     1846    CALL getin('sso_gkwake', sso_gkwake_omp)
     1847
     1848    sso_gklift_omp = merge(0.25,0.50,ok_strato_omp)
     1849    CALL getin('sso_gklift', sso_gklift_omp)
    18271850
    18281851    ! Random gravity waves:
     
    18361859    ENDIF
    18371860
    1838     GWD_RANDO_RUWMAX_omp = 0.01
    1839     CALL getin('gwd_rando_ruwmax', GWD_RANDO_RUWMAX_omp)
     1861    gwd_rando_ruwmax_omp = 2.00
     1862    CALL getin('gwd_rando_ruwmax', gwd_rando_ruwmax_omp)
    18401863
    18411864    gwd_rando_sat_omp = 0.25
    18421865    CALL getin('gwd_rando_sat', gwd_rando_sat_omp)
     1866
     1867    gwd_front_ruwmax_omp = 2.50
     1868    CALL getin('gwd_front_ruwmax', gwd_front_ruwmax_omp)
     1869
     1870    gwd_front_sat_omp = 0.60
     1871    CALL getin('gwd_front_sat', gwd_front_sat_omp)
     1872
    18431873
    18441874    !Config  key = ok_qch4
     
    20222052    iflag_radia = iflag_radia_omp
    20232053    iflag_rrtm = iflag_rrtm_omp
     2054    iflag_albedo = iflag_albedo_omp
     2055    ok_chlorophyll = ok_chlorophyll_omp
    20242056    NSW = NSW_omp
    20252057    iflag_cld_th = iflag_cld_th_omp
     
    20982130    tmax_fonte_cv = tmax_fonte_cv_omp
    20992131    alphas = alphas_omp
     2132
     2133    gkdrag=sso_gkdrag_omp
     2134    grahilo=sso_grahil_omp
     2135    grcrit=sso_grcrit_omp
     2136    gfrcrit=sso_gfrcri_omp
     2137    gkwake=sso_gkwake_omp
     2138    gklift=sso_gklift_omp
     2139
    21002140    ok_strato = ok_strato_omp
    21012141    ok_hines = ok_hines_omp
    21022142    ok_gwd_rando = ok_gwd_rando_omp
    2103     GWD_RANDO_RUWMAX = GWD_RANDO_RUWMAX_omp
     2143    gwd_rando_ruwmax = gwd_rando_ruwmax_omp
    21042144    gwd_rando_sat = gwd_rando_sat_omp
     2145    gwd_front_ruwmax = gwd_front_ruwmax_omp
     2146    gwd_front_sat = gwd_front_sat_omp
    21052147    ok_qch4 = ok_qch4_omp
    21062148    ok_LES = ok_LES_omp
     
    21132155    IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN
    21142156       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration'
    2115        CALL abort_gcm('conf_phys','version_ocean not valid',1)
     2157       CALL abort_physic('conf_phys','version_ocean not valid',1)
    21162158    END IF
    21172159
     
    21192161       version_ocean='sicOBS'
    21202162    ELSE IF (type_ocean=='slab' .AND. version_ocean/='sicOBS' &
    2121              .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN
     2163         .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN
    21222164       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean'
    2123        CALL abort_gcm('conf_phys','version_ocean not valid',1)
     2165       CALL abort_physic('conf_phys','version_ocean not valid',1)
    21242166    END IF
    21252167
     
    21282170    IF (ok_ade .OR. ok_aie) THEN
    21292171       IF ( flag_aerosol .EQ. 0 ) THEN
    2130           CALL abort_gcm('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)
     2172          CALL abort_physic('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)
    21312173       END IF
    21322174       IF ( .NOT. new_aod .AND.  flag_aerosol .NE. 1) THEN
    2133           CALL abort_gcm('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)
     2175          CALL abort_physic('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)
    21342176       END IF
    21352177    END IF
     
    21372179    ! ok_cdnc must be set to y if ok_aie is activated
    21382180    IF (ok_aie .AND. .NOT. ok_cdnc) THEN
    2139        CALL abort_gcm('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)
     2181       CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)
    21402182    ENDIF
    21412183
     
    23082350    write(lunout,*) 'ok_gwd_rando = ',  ok_gwd_rando
    23092351    write(lunout,*) 'ok_qch4 = ',  ok_qch4
    2310     write(lunout,*) 'GWD_RANDO_RUWMAX = ', GWD_RANDO_RUWMAX
     2352    write(lunout,*) 'gwd_rando_ruwmax = ', gwd_rando_ruwmax
    23112353    write(lunout,*) 'gwd_rando_sat = ', gwd_rando_sat
     2354    write(lunout,*) 'gwd_front_ruwmax = ', gwd_front_ruwmax
     2355    write(lunout,*) 'gwd_front_sat = ', gwd_front_sat
     2356    write(lunout,*) 'SSO gkdrag =',gkdrag
     2357    write(lunout,*) 'SSO grahilo=',grahilo
     2358    write(lunout,*) 'SSO grcrit=',grcrit
     2359    write(lunout,*) 'SSO gfrcrit=',gfrcrit
     2360    write(lunout,*) 'SSO gkwake=',gkwake
     2361    write(lunout,*) 'SSO gklift=',gklift
    23122362    write(lunout,*) 'read_climoz = ', read_climoz
    23132363    write(lunout,*) 'carbon_cycle_tr = ', carbon_cycle_tr
     
    23282378
    23292379  use IOIPSL
     2380  USE print_control_mod, ONLY: lunout
    23302381  implicit none
    2331   include "iniprint.h"
    23322382  ! Configuration de l'interace atm/surf
    23332383  !
Note: See TracChangeset for help on using the changeset viewer.