source: LMDZ6/trunk/libf/phylmd/conf_phys_m.F90 @ 3908

Last change on this file since 3908 was 3908, checked in by idelkadi, 3 years ago

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 91.0 KB
RevLine 
[1687]1!
2! $Id: conf_phys.F90 1668 2012-10-12 10:47:37Z idelkadi $
3!
4!
5!
[2702]6MODULE conf_phys_m
[1687]7
[2702]8  IMPLICIT NONE
[1687]9
[2702]10CONTAINS
[1687]11
[2702]12  SUBROUTINE conf_phys(ok_journe, ok_mensuel, ok_instan, ok_hf, &
[1938]13       ok_LES,&
14       callstats,&
15       solarlong0,seuil_inversion, &
16       fact_cldcon, facttemps,ok_newmicro,iflag_radia,&
[2236]17       iflag_cld_th, &
[1938]18       iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
[3479]19       ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan, aerosol_couple, chemistry_couple, &
[3630]20       flag_aerosol, flag_aerosol_strat, flag_aer_feedback, &
[2644]21       flag_bc_internal_mixture, bl95_b0, bl95_b1,&
[1938]22       read_climoz, &
23       alp_offset)
[1687]24
[2702]25    USE IOIPSL
[1938]26    USE surface_data
27    USE phys_cal_mod
[3447]28    USE carbon_cycle_mod,  ONLY: carbon_cycle_tr, carbon_cycle_cpl, carbon_cycle_rad, level_coupling_esm
[2702]29    USE mod_grid_phy_lmdz, ONLY: klon_glo
[2311]30    USE print_control_mod, ONLY: lunout
[3815]31    use config_ocean_skin_m, only: config_ocean_skin
[3435]32    USE phys_state_var_mod, ONLY: phys_tstep
[1687]33
[3384]34    INCLUDE "conema3.h"
35    INCLUDE "fisrtilp.h"
36    INCLUDE "nuage.h"
37    INCLUDE "YOMCST.h"
38    INCLUDE "YOMCST2.h"
39    INCLUDE "thermcell.h"
[1687]40
[1938]41    !IM : on inclut/initialise les taux de CH4, N2O, CFC11 et CFC12
[3384]42    INCLUDE "clesphys.h"
43    INCLUDE "compbl.h"
44    INCLUDE "comsoil.h"
45    INCLUDE "YOEGWD.h"
[1938]46    !
47    ! Configuration de la "physique" de LMDZ a l'aide de la fonction
48    ! GETIN de IOIPSL
49    !
50    ! LF 05/2001
51    !
52    ! type_ocean:      type d'ocean (force, slab, couple)
53    ! version_ocean:   version d'ocean (opa8/nemo pour type_ocean=couple ou
[2057]54    !                                   sicOBS,sicINT,sicNO pour type_ocean=slab)
[1938]55    ! ok_veget:   type de modele de vegetation
56    ! ok_journe:  sorties journalieres
57    ! ok_hf:  sorties haute frequence
58    ! ok_mensuel: sorties mensuelles
59    ! ok_instan:  sorties instantanees
60    ! ok_ade, ok_aie: apply or not aerosol direct and indirect effects
[2738]61    ! ok_alw: activate aerosol LW effect
[1938]62    ! ok_cdnc, ok cloud droplet number concentration
63    ! flag_aerosol_strat : flag pour les aerosols stratos
[2644]64    ! flag_bc_internal_mixture : use BC internal mixture if true
[1938]65    ! bl95_b*: parameters in the formula to link CDNC to aerosol mass conc
[3479]66    ! ok_volcan: activate volcanic diags (SW heat & LW cool rate, SW & LW flux)
[1938]67    !
[1687]68
[1938]69    ! Sortie:
[2702]70    LOGICAL              :: ok_newmicro
71    INTEGER              :: iflag_radia
72    LOGICAL              :: ok_journe, ok_mensuel, ok_instan, ok_hf
73    LOGICAL              :: ok_LES
[1938]74    LOGICAL              :: callstats
[3479]75    LOGICAL              :: ok_ade, ok_aie, ok_alw, ok_cdnc, ok_volcan
[3338]76    LOGICAL              :: aerosol_couple, chemistry_couple
[1938]77    INTEGER              :: flag_aerosol
[2530]78    INTEGER              :: flag_aerosol_strat
[3412]79    LOGICAL              :: flag_aer_feedback
[2644]80    LOGICAL              :: flag_bc_internal_mixture
[1938]81    REAL                 :: bl95_b0, bl95_b1
[2702]82    REAL                 :: fact_cldcon, facttemps,ratqsbas,ratqshaut,tau_ratqs
83    INTEGER              :: iflag_cld_th
84    INTEGER              :: iflag_ratqs
[1687]85
[2702]86    CHARACTER (len = 6), SAVE  :: type_ocean_omp, version_ocean_omp, ocean_omp
87    CHARACTER (len = 10),SAVE  :: type_veget_omp
88    CHARACTER (len = 8), SAVE  :: aer_type_omp
[3792]89    INTEGER, SAVE       :: landice_opt_omp
[3900]90    INTEGER, SAVE       :: iflag_tsurf_inlandsis_omp,iflag_temp_inlandsis_omp
91    INTEGER, SAVE       :: iflag_albcalc_omp,iflag_z0m_snow_omp   
92    LOGICAL, SAVE       :: SnoMod_omp,BloMod_omp,ok_outfor_omp,ok_zsn_ii_omp
93    LOGICAL, SAVE       :: discret_xf_omp,opt_runoff_ac_omp 
94    LOGICAL, SAVE       :: is_ok_slush_omp,is_ok_z0h_rn_omp,is_ok_density_kotlyakov_omp
95    REAL, SAVE          :: prescribed_z0m_snow_omp,correc_alb_omp
96    REAL, SAVE          :: buf_sph_pol_omp,buf_siz_pol_omp
[2702]97    LOGICAL, SAVE       :: ok_newmicro_omp
98    LOGICAL, SAVE       :: ok_all_xml_omp
[3048]99    LOGICAL, SAVE       :: ok_lwoff_omp
[2702]100    LOGICAL, SAVE       :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
101    LOGICAL, SAVE       :: ok_LES_omp   
102    LOGICAL, SAVE       :: callstats_omp
[3479]103    LOGICAL, SAVE       :: ok_ade_omp, ok_aie_omp, ok_alw_omp, ok_cdnc_omp, ok_volcan_omp
[3338]104    LOGICAL, SAVE       :: aerosol_couple_omp, chemistry_couple_omp
[1938]105    INTEGER, SAVE       :: flag_aerosol_omp
[2530]106    INTEGER, SAVE       :: flag_aerosol_strat_omp
[3412]107    LOGICAL, SAVE       :: flag_aer_feedback_omp
[2644]108    LOGICAL, SAVE       :: flag_bc_internal_mixture_omp
[1938]109    REAL,SAVE           :: bl95_b0_omp, bl95_b1_omp
110    REAL,SAVE           :: freq_ISCCP_omp, ecrit_ISCCP_omp
[2580]111    REAL,SAVE           :: freq_COSP_omp, freq_AIRS_omp
[2702]112    REAL,SAVE           :: fact_cldcon_omp, facttemps_omp,ratqsbas_omp
113    REAL,SAVE           :: tau_cld_cv_omp, coefw_cld_cv_omp
114    INTEGER, SAVE       :: iflag_cld_cv_omp
[2205]115
[2702]116    REAL, SAVE          :: ratqshaut_omp
117    REAL, SAVE          :: tau_ratqs_omp
[2075]118    REAL, SAVE          :: t_coupl_omp
[2702]119    INTEGER, SAVE       :: iflag_radia_omp
120    INTEGER, SAVE       :: iflag_rrtm_omp
121    INTEGER, SAVE       :: iflag_albedo_omp !albedo SB
122    LOGICAL, SAVE       :: ok_chlorophyll_omp ! albedo SB 
123    INTEGER, SAVE       :: NSW_omp
124    INTEGER, SAVE       :: iflag_cld_th_omp, ip_ebil_phy_omp
125    INTEGER, SAVE       :: iflag_ratqs_omp
[1687]126
[2704]127    REAL, SAVE          :: f_cdrag_ter_omp,f_cdrag_oce_omp
128    REAL, SAVE          :: f_rugoro_omp   , z0min_omp
129    REAL, SAVE          :: z0m_seaice_omp,z0h_seaice_omp
[2702]130    REAL, SAVE          :: min_wind_speed_omp,f_gust_wk_omp,f_gust_bl_omp,f_qsat_oce_omp, f_z0qh_oce_omp
131    INTEGER, SAVE       :: iflag_gusts_omp,iflag_z0_oce_omp
[1687]132
[1938]133    ! Local
[2702]134    REAL                 :: zzz
[1687]135
[2702]136    REAL :: seuil_inversion
137    REAL,SAVE :: seuil_inversion_omp
[1687]138
[2702]139    INTEGER,SAVE :: iflag_thermals_ed_omp,iflag_thermals_optflux_omp,iflag_thermals_closure_omp
140    REAL, SAVE :: fact_thermals_ed_dz_omp
141    INTEGER,SAVE :: iflag_thermals_omp,nsplit_thermals_omp
142    REAL,SAVE :: tau_thermals_omp,alp_bl_k_omp
[1938]143    ! nrlmd le 10/04/2012
[2702]144    INTEGER,SAVE :: iflag_trig_bl_omp,iflag_clos_bl_omp
145    INTEGER,SAVE :: tau_trig_shallow_omp,tau_trig_deep_omp
146    REAL,SAVE    :: s_trig_omp
[1938]147    ! fin nrlmd le 10/04/2012
[2702]148    REAL :: alp_offset
[1938]149    REAL, SAVE :: alp_offset_omp
[2702]150    INTEGER,SAVE :: iflag_coupl_omp,iflag_clos_omp,iflag_wake_omp
151    INTEGER,SAVE :: iflag_cvl_sigd_omp
[2201]152    REAL, SAVE :: coef_clos_ls_omp
[1938]153    REAL, SAVE :: supcrit1_omp, supcrit2_omp
154    INTEGER, SAVE :: iflag_mix_omp
[2420]155    INTEGER, SAVE :: iflag_mix_adiab_omp
[2702]156    REAL, SAVE :: scut_omp, qqa1_omp, qqa2_omp, gammas_omp, Fmax_omp, alphas_omp
[2287]157    REAL, SAVE :: tmax_fonte_cv_omp
[1687]158
[1938]159    REAL,SAVE :: R_ecc_omp,R_peri_omp,R_incl_omp,solaire_omp
[3435]160    REAL,SAVE      :: solaire_omp_init
[2524]161    LOGICAL,SAVE :: ok_suntime_rrtm_omp
[1938]162    REAL,SAVE :: co2_ppm_omp, RCO2_omp, co2_ppm_per_omp, RCO2_per_omp
163    REAL,SAVE :: CH4_ppb_omp, RCH4_omp, CH4_ppb_per_omp, RCH4_per_omp
164    REAL,SAVE :: N2O_ppb_omp, RN2O_omp, N2O_ppb_per_omp, RN2O_per_omp
165    REAL,SAVE :: CFC11_ppt_omp,RCFC11_omp,CFC11_ppt_per_omp,RCFC11_per_omp
166    REAL,SAVE :: CFC12_ppt_omp,RCFC12_omp,CFC12_ppt_per_omp,RCFC12_per_omp
167    REAL,SAVE :: epmax_omp
[2481]168    REAL,SAVE :: coef_epmax_cape_omp
[1938]169    LOGICAL,SAVE :: ok_adj_ema_omp
170    INTEGER,SAVE :: iflag_clw_omp
171    REAL,SAVE :: cld_lc_lsc_omp,cld_lc_con_omp,cld_tau_lsc_omp,cld_tau_con_omp
172    REAL,SAVE :: ffallv_lsc_omp, ffallv_con_omp,coef_eva_omp
173    LOGICAL,SAVE :: reevap_ice_omp
174    INTEGER,SAVE :: iflag_pdf_omp
175    INTEGER,SAVE :: iflag_ice_thermo_omp
[2006]176    INTEGER,SAVE :: iflag_t_glace_omp
[2547]177    INTEGER,SAVE :: iflag_cloudth_vert_omp
[2945]178    INTEGER,SAVE :: iflag_rain_incloud_vol_omp
[1938]179    REAL,SAVE :: rad_froid_omp, rad_chau1_omp, rad_chau2_omp
180    REAL,SAVE :: t_glace_min_omp, t_glace_max_omp
[2006]181    REAL,SAVE :: exposant_glace_omp
[1938]182    REAL,SAVE :: rei_min_omp, rei_max_omp
[2915]183    INTEGER,SAVE :: iflag_sic_omp
184    REAL,SAVE :: inertie_sol_omp,inertie_sno_omp,inertie_sic_omp
185    REAL,SAVE :: inertie_lic_omp
[1938]186    REAL,SAVE :: qsol0_omp
187    REAL,SAVE :: evap0_omp
188    REAL,SAVE :: albsno0_omp
189    REAL      :: solarlong0
190    REAL,SAVE :: solarlong0_omp
191    INTEGER,SAVE :: top_height_omp,overlap_omp
[2126]192    REAL,SAVE :: cdmmax_omp,cdhmax_omp,ksta_omp,ksta_ter_omp,f_ri_cd_min_omp
[1938]193    LOGICAL,SAVE :: ok_kzmin_omp
[2561]194    REAL, SAVE   :: pbl_lmixmin_alpha_omp
[1938]195    REAL, SAVE ::  fmagic_omp, pmagic_omp
196    INTEGER,SAVE :: iflag_pbl_omp,lev_histhf_omp,lev_histday_omp,lev_histmth_omp
[2159]197    INTEGER,SAVE :: iflag_pbl_split_omp
[2952]198!FC
199    INTEGER,SAVE :: ifl_pbltree_omp
200    REAL,SAVE :: Cd_frein_omp
201!FC
[2455]202    INTEGER,SAVE :: iflag_order2_sollw_omp
[2704]203    INTEGER, SAVE :: lev_histins_omp, lev_histLES_omp
[1938]204    INTEGER, SAVE :: lev_histdayNMC_omp
205    INTEGER, SAVE :: levout_histNMC_omp(3)
206    LOGICAL, SAVE :: ok_histNMC_omp(3)
[3384]207    REAL, SAVE    :: freq_outNMC_omp(3), freq_calNMC_omp(3)
[1938]208    CHARACTER*4, SAVE :: type_run_omp
[3384]209    LOGICAL, SAVE :: ok_cosp_omp, ok_airs_omp
210    LOGICAL, SAVE :: ok_mensuelCOSP_omp,ok_journeCOSP_omp,ok_hfCOSP_omp
211    REAL, SAVE    :: lonmin_ins_omp, lonmax_ins_omp, latmin_ins_omp, latmax_ins_omp
212    REAL, SAVE    :: ecrit_hf_omp, ecrit_day_omp, ecrit_mth_omp, ecrit_reg_omp
213    REAL, SAVE    :: ecrit_ins_omp
214    REAL, SAVE    :: ecrit_LES_omp
215    REAL, SAVE    :: ecrit_tra_omp
216    REAL, SAVE    :: cvl_comp_threshold_omp
217    REAL, SAVE    :: cvl_sig2feed_omp
218    REAL, SAVE    :: cvl_corr_omp
219    LOGICAL, SAVE :: ok_lic_melt_omp
220    LOGICAL, SAVE :: ok_lic_cond_omp
[1938]221    !
[3384]222    INTEGER, SAVE :: iflag_cycle_diurne_omp
223    LOGICAL, SAVE :: soil_model_omp,new_oliq_omp
224    LOGICAL, SAVE :: ok_orodr_omp, ok_orolf_omp, ok_limitvrai_omp
[1938]225    INTEGER, SAVE :: nbapp_rad_omp, iflag_con_omp
[2730]226    INTEGER, SAVE :: nbapp_cv_omp, nbapp_wk_omp
[1938]227    INTEGER, SAVE :: iflag_ener_conserv_omp
[2007]228    LOGICAL, SAVE :: ok_conserv_q_omp
[1938]229    INTEGER, SAVE :: iflag_fisrtilp_qsat_omp
[2415]230    INTEGER, SAVE :: iflag_bergeron_omp
[2702]231    LOGICAL,SAVE  :: ok_strato_omp
232    LOGICAL,SAVE  :: ok_hines_omp, ok_gwd_rando_omp
233    REAL, SAVE    :: gwd_rando_ruwmax_omp, gwd_rando_sat_omp
234    REAL, SAVE    :: gwd_front_ruwmax_omp, gwd_front_sat_omp
235    REAL, SAVE    :: sso_gkdrag_omp,sso_grahil_omp,sso_grcrit_omp
236    REAL, SAVE    :: sso_gfrcri_omp,sso_gkwake_omp,sso_gklift_omp
[3384]237    LOGICAL, SAVE :: ok_qch4_omp
238    LOGICAL, SAVE :: carbon_cycle_tr_omp
239    LOGICAL, SAVE :: carbon_cycle_cpl_omp
[3447]240    LOGICAL, SAVE :: carbon_cycle_rad_omp
[3384]241    INTEGER, SAVE :: level_coupling_esm_omp
242    LOGICAL, SAVE :: adjust_tropopause_omp
243    LOGICAL, SAVE :: ok_daily_climoz_omp
[1687]244
[2702]245    INTEGER, INTENT(OUT):: read_climoz ! read ozone climatology, OpenMP shared
[1938]246    ! Allowed values are 0, 1 and 2
247    ! 0: do not read an ozone climatology
248    ! 1: read a single ozone climatology that will be used day and night
249    ! 2: read two ozone climatologies, the average day and night
250    ! climatology and the daylight climatology
[1687]251
[1938]252    !-----------------------------------------------------------------
[1687]253
[2357]254    print*,'CONFPHYS ENTREE'
[1938]255    !$OMP MASTER
256    !Config Key  = type_ocean
257    !Config Desc = Type d'ocean
258    !Config Def  = force
259    !Config Help = Type d'ocean utilise: force, slab,couple
260    !
261    type_ocean_omp = 'force '
[2702]262    CALL getin('type_ocean', type_ocean_omp)
[1938]263    !
264    !Config Key  = version_ocean
265    !Config Desc = Version d'ocean
266    !Config Def  = xxxxxx
267    !Config Help = Version d'ocean utilise: opa8/nemo/sicOBS/xxxxxx
268    !
269    version_ocean_omp = 'xxxxxx'
[2702]270    CALL getin('version_ocean', version_ocean_omp)
[1687]271
[1938]272    !Config Key  = OCEAN
273    !Config Desc = Old parameter name for type_ocean
274    !Config Def  = yyyyyy
275    !Config Help = This is only for testing purpose
276    !
277    ocean_omp = 'yyyyyy'
[2702]278    CALL getin('OCEAN', ocean_omp)
[1938]279    IF (ocean_omp /= 'yyyyyy') THEN
280       WRITE(lunout,*)'ERROR! Old variable name OCEAN used in parmeter file.'
281       WRITE(lunout,*)'Variable OCEAN has been replaced by the variable type_ocean.'
282       WRITE(lunout,*)'You have to update your parameter file physiq.def to succed running'
[2311]283       CALL abort_physic('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)
[2702]284    ENDIF
[1865]285
[2075]286    !Config Key  = t_coupl
287    !Config Desc = Pas de temps du couplage atm/oce en sec.
288    !Config Def  = 86400
289    !Config Help = This is only for testing purpose
[1938]290    !
[2075]291    t_coupl_omp = 86400.
[2702]292    CALL getin('t_coupl', t_coupl_omp)
[2075]293    IF (t_coupl_omp == 0) THEN
294       WRITE(lunout,*)'ERROR! Timestep of coupling between atmosphere and ocean'
295       WRITE(lunout,*)'cannot be zero.'
[2311]296       CALL abort_physic('conf_phys','t_coupl = 0.',1)
[2702]297    ENDIF
[2075]298
299    !
[2114]300    !Config Key  = ok_all_xml
301    !Config Desc = utiliser les xml pourles définitions des champs pour xios
[2702]302    !Config Def  = .FALSE.
[2114]303    !Config Help =
304    !
[2702]305    ok_all_xml_omp = .FALSE.
306    CALL getin('ok_all_xml', ok_all_xml_omp)
[3048]307
[2114]308    !
[3048]309    !Config Key  = ok_lwoff
310    !Config Desc = inhiber l effet radiatif LW des nuages
311    !Config Def  = .FALSE.
312    !Config Help =
313    !
314    ok_lwoff_omp = .FALSE.
315    CALL getin('ok_lwoff', ok_lwoff_omp)
316    !
[2114]317
318    !
[1938]319    !Config Key  = VEGET
320    !Config Desc = Type de modele de vegetation
[2702]321    !Config Def  = .FALSE.
[1938]322    !Config Help = Type de modele de vegetation utilise
323    !
324    type_veget_omp ='orchidee'
[2702]325    CALL getin('VEGET', type_veget_omp)
[1938]326    !
[1865]327
[3792]328    ! INLANDSIS
329    !==================================================================
330    ! Martin et Etienne
331    !Config Key  = landice_opt
[3901]332    !Config Desc = which landice snow model (BULK, or INLANDSIS)
[3792]333    !Config Def  = 0
334    landice_opt_omp = 0
335    CALL getin('landice_opt', landice_opt_omp)
336    ! Martin et Etienne
[1687]337
[3792]338    !Etienne
[3900]339    !Config Key  = iflag_temp_inlandsis
340    !Config Desc = which method to calculate temp within the soil in INLANDSIS
341    !Config Def  = 0
342    iflag_temp_inlandsis_omp = 0
343    CALL getin('iflag_temp_inlandsis', iflag_temp_inlandsis_omp)
344
345    !Etienne
[3792]346    !Config Key  = iflag_tsurf_inlandsis
347    !Config Desc = which method to calculate tsurf in INLANDSIS
348    !Config Def  = 0
[3900]349    iflag_tsurf_inlandsis_omp = 1
[3792]350    CALL getin('iflag_tsurf_inlandsis', iflag_tsurf_inlandsis_omp)
351
[3900]352
[3792]353    !Etienne
[3900]354    !Config Key  = iflag_albcalc
355    !Config Desc = method to calculate snow albedo in INLANDSIS
[3792]356    !Config Def  = 0
[3900]357    iflag_albcalc_omp = 0
358    CALL getin('iflag_albcalc', iflag_albcalc_omp)
[3792]359
360
361    !Etienne
362    !Config Key  = SnoMod
363    !Config Desc = activation of snow modules in inlandsis
[3900]364    !Config Def  = .TRUE.
[3792]365    SnoMod_omp = .TRUE.
366    CALL getin('SnoMod', SnoMod_omp)
367
368    !Etienne
369    !Config Key  = BloMod
370    !Config Desc = activation of blowing snow in inlandsis
[3900]371    !Config Def  = .FALSE.
[3792]372    BloMod_omp = .FALSE.
373    CALL getin('BloMod', BloMod_omp)
374
375    !Etienne
376    !Config Key  = ok_outfor
377    !Config Desc = activation of output ascii file in inlandsis
[3900]378    !Config Def  = .FALSE.
[3876]379    ok_outfor_omp = .FALSE.
[3792]380    CALL getin('ok_outfor', ok_outfor_omp)
381
[3900]382
383    !Etienne
384    !Config Key  = ok_sn_ii
385    !Config Desc = activation of ice/snow detection
386    !Config Def  = .TRUE.
387    ok_zsn_ii = .TRUE.
388    CALL getin('ok_zsn_ii', ok_zsn_ii_omp)
389
390
391    !Etienne
392    !Config Key  = discret_xf
393    !Config Desc = snow discretization following XF
394    !Config Def  = .TRUE.
395    discret_xf = .TRUE.
396    CALL getin('discret_xf', discret_xf_omp)
397
398
399    !Etienne
400    !Config Key  = is_ok_slush
401    !Config Desc = activation of the slush option
402    !Config Def  = .TRUE.
403    is_ok_slush_omp = .TRUE.
404    CALL getin('is_ok_slush', is_ok_slush_omp)
405
406    !Etienne
407    !Config Key  = opt_runoff_ac
408    !Config Desc = option runoff AC
409    !Config Def  = .TRUE.
410    opt_runoff_ac_omp = .TRUE.
411    CALL getin('opt_runoff_ac', opt_runoff_ac_omp)
412
413    !Etienne
414    !Config Key  = is_ok_z0h_rn
415    !Config Desc = z0h calculation following RN method
416    !Config Def  = .TRUE.
417    is_ok_z0h_rn = .TRUE.
418    CALL getin('is_ok_z0h_rn', is_ok_z0h_rn_omp)
419
420
421    !Etienne
422    !Config Key  = is_ok_density_kotlyakov
423    !Config Desc = snow density calculation following kotlyakov
424    !Config Def  = .FALSE.
425    is_ok_density_kotlyakov = .FALSE.
426    CALL getin('is_ok_density_kotlyakov', is_ok_density_kotlyakov_omp)
427
428
429    !Etienne
430    !Config Key  = prescribed_z0m_snow
431    !Config Desc = prescribed snow z0m
432    !Config Def  = 0.005
433    prescribed_z0m_snow = 0.005
434    CALL getin('prescribed_z0m_snow', prescribed_z0m_snow_omp)
435
436
437    !Etienne
438    !Config Key  = iflag_z0m_snow
439    !Config Desc = method to calculate snow z0m
440    !Config Def  = 0
441    iflag_z0m_snow = 0
442    CALL getin('iflag_z0m_snow', iflag_z0m_snow_omp)
443
444
445    !Etienne
446    !Config Key  = correc_alb
447    !Config Desc = correction term for albedo
448    !Config Def  = 1.01
449    correc_alb_omp=1.01
450    CALL getin('correc_alb', correc_alb_omp)
451
452
453    !Etienne
454    !Config Key  = buf_sph_pol
455    !Config Desc = sphericity of buffer layer in polar regions
456    !Config Def  = 99.
457    buf_sph_pol_omp=99.
458    CALL getin('buf_sph_pol', buf_sph_pol_omp)
459
460    !Etienne
461    !Config Key  = buf_siz_pol
462    !Config Desc = grain size of buffer layer in polar regions in e-4m
463    !Config Def  = 4.
464    buf_siz_pol_omp=4.
465    CALL getin('buf_siz_pol', buf_siz_pol_omp)
466
[3792]467    !==================================================================
468   
[1938]469    !Config Key  = OK_journe
470    !Config Desc = Pour des sorties journalieres
[2702]471    !Config Def  = .FALSE.
[1938]472    !Config Help = Pour creer le fichier histday contenant les sorties
473    !              journalieres
474    !
[2702]475    ok_journe_omp = .FALSE.
476    CALL getin('OK_journe', ok_journe_omp)
[1938]477    !
478    !Config Key  = ok_hf
479    !Config Desc = Pour des sorties haute frequence
[2702]480    !Config Def  = .FALSE.
[1938]481    !Config Help = Pour creer le fichier histhf contenant les sorties
482    !              haute frequence ( 3h ou 6h)
483    !
[2702]484    ok_hf_omp = .FALSE.
485    CALL getin('ok_hf', ok_hf_omp)
[1938]486    !
487    !Config Key  = OK_mensuel
488    !Config Desc = Pour des sorties mensuelles
[2702]489    !Config Def  = .TRUE.
[1938]490    !Config Help = Pour creer le fichier histmth contenant les sorties
491    !              mensuelles
492    !
[2702]493    ok_mensuel_omp = .TRUE.
494    CALL getin('OK_mensuel', ok_mensuel_omp)
[1938]495    !
496    !Config Key  = OK_instan
497    !Config Desc = Pour des sorties instantanees
[2702]498    !Config Def  = .FALSE.
[1938]499    !Config Help = Pour creer le fichier histins contenant les sorties
500    !              instantanees
501    !
[2702]502    ok_instan_omp = .FALSE.
503    CALL getin('OK_instan', ok_instan_omp)
[1938]504    !
505    !Config Key  = ok_ade
506    !Config Desc = Aerosol direct effect or not?
[2702]507    !Config Def  = .FALSE.
[1938]508    !Config Help = Used in radlwsw.F
509    !
[2702]510    ok_ade_omp = .FALSE.
511    CALL getin('ok_ade', ok_ade_omp)
[1687]512
[2738]513    !Config Key  = ok_alw
514    !Config Desc = Aerosol longwave effect or not?
515    !Config Def  = .FALSE.
516    !Config Help = Used in radlwsw.F
[1938]517    !
[2738]518    ok_alw_omp = .FALSE.
519    CALL getin('ok_alw', ok_alw_omp)
520
521    !
[1938]522    !Config Key  = ok_aie
523    !Config Desc = Aerosol indirect effect or not?
[2702]524    !Config Def  = .FALSE.
[1938]525    !Config Help = Used in nuage.F and radlwsw.F
526    !
[2702]527    ok_aie_omp = .FALSE.
528    CALL getin('ok_aie', ok_aie_omp)
[1687]529
[1938]530    !
531    !Config Key  = ok_cdnc
532    !Config Desc = ok cloud droplet number concentration
[2702]533    !Config Def  = .FALSE.
[1938]534    !Config Help = Used in newmicro.F
535    !
[2702]536    ok_cdnc_omp = .FALSE.
537    CALL getin('ok_cdnc', ok_cdnc_omp)
[3479]538
[1938]539    !
[3479]540    !Config Key  = ok_volcan
541    !Config Desc = ok to generate volcanic diags
542    !Config Def  = .FALSE.
543    !Config Help = Used in radlwsw_m.F
544    !
545    ok_volcan_omp = .FALSE.
546    CALL getin('ok_volcan', ok_volcan_omp)
547
548    !
[1938]549    !Config Key  = aerosol_couple
550    !Config Desc = read aerosol in file or calcul by inca
[2702]551    !Config Def  = .FALSE.
[1938]552    !Config Help = Used in physiq.F
553    !
[2702]554    aerosol_couple_omp = .FALSE.
[1938]555    CALL getin('aerosol_couple',aerosol_couple_omp)
556    !
[3338]557    !Config Key  = chemistry_couple
558    !Config Desc = read O3 chemistry in file or calcul by inca
559    !Config Def  = .FALSE.
560    !Config Help = Used in physiq.F
561    !
562    chemistry_couple_omp = .FALSE.
563    CALL getin('chemistry_couple',chemistry_couple_omp)
564    !
[1938]565    !Config Key  = flag_aerosol
566    !Config Desc = which aerosol is use for coupled model
567    !Config Def  = 1
568    !Config Help = Used in physiq.F
569    !
570    ! - flag_aerosol=0 => no aerosol
571    ! - flag_aerosol=1 => so4 only (defaut)
572    ! - flag_aerosol=2 => bc  only
573    ! - flag_aerosol=3 => pom only
574    ! - flag_aerosol=4 => seasalt only
575    ! - flag_aerosol=5 => dust only
576    ! - flag_aerosol=6 => all aerosol
[3274]577    ! - flag_aerosol=7 => natural aerosol + MACv2SP
[3333]578    ! - (in this case aerosols.1980.nc should point to aerosols.nat.nc)
[1687]579
[1938]580    flag_aerosol_omp = 0
581    CALL getin('flag_aerosol',flag_aerosol_omp)
[1687]582
[2644]583    !
584    !Config Key  = flag_bc_internal_mixture
585    !Config Desc = state of mixture for BC aerosols
586    ! - n = external mixture
587    ! - y = internal mixture
588    !Config Def  = n
589    !Config Help = Used in physiq.F / aeropt
590    !
[2702]591    flag_bc_internal_mixture_omp = .FALSE.
[2644]592    CALL getin('flag_bc_internal_mixture',flag_bc_internal_mixture_omp)
593
[1938]594    !
595    !Config Key  = aer_type
596    !Config Desc = Use a constant field for the aerosols
597    !Config Def  = scenario
598    !Config Help = Used in readaerosol.F90
599    !
600    aer_type_omp = 'scenario'
[2702]601    CALL getin('aer_type', aer_type_omp)
[1687]602
[1938]603    !
604    !Config Key  = bl95_b0
605    !Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
[2702]606    !Config Def  = .FALSE.
[1938]607    !Config Help = Used in nuage.F
608    !
609    bl95_b0_omp = 2.
[2702]610    CALL getin('bl95_b0', bl95_b0_omp)
[1687]611
[1938]612    !Config Key  = bl95_b1
613    !Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
[2702]614    !Config Def  = .FALSE.
[1938]615    !Config Help = Used in nuage.F
616    !
617    bl95_b1_omp = 0.2
[2702]618    CALL getin('bl95_b1', bl95_b1_omp)
[1687]619
[1938]620    !Config Key  = freq_ISCCP
621    !Config Desc = Frequence d'appel du simulateur ISCCP en secondes;
622    !              par defaut 10800, i.e. 3 heures
623    !Config Def  = 10800.
624    !Config Help = Used in ini_histISCCP.h
625    !
626    freq_ISCCP_omp = 10800.
[2702]627    CALL getin('freq_ISCCP', freq_ISCCP_omp)
[1938]628    !
629    !Config Key  = ecrit_ISCCP
630    !Config Desc = Frequence d'ecriture des resultats du simulateur ISCCP en nombre de jours;
631    !              par defaut 1., i.e. 1 jour
632    !Config Def  = 1.
633    !Config Help = Used in ini_histISCCP.h
634    !
635    !
636    ecrit_ISCCP_omp = 1.
[2702]637    CALL getin('ecrit_ISCCP', ecrit_ISCCP_omp)
[1687]638
[1938]639    !Config Key  = freq_COSP
640    !Config Desc = Frequence d'appel du simulateur COSP en secondes;
641    !              par defaut 10800, i.e. 3 heures
642    !Config Def  = 10800.
643    !Config Help = Used in ini_histdayCOSP.h
644    !
645    freq_COSP_omp = 10800.
[2702]646    CALL getin('freq_COSP', freq_COSP_omp)
[1687]647
[2580]648    !Config Key  = freq_AIRS
649    !Config Desc = Frequence d'appel du simulateur AIRS en secondes;
650    !              par defaut 10800, i.e. 3 heures
651    !Config Def  = 10800.
652    !Config Help = Used in ini_histdayAIRS.h
[1938]653    !
[2580]654    freq_AIRS_omp = 10800.
[2702]655    CALL getin('freq_AIRS', freq_AIRS_omp)
[2580]656
657    !
[1938]658    !Config Key  = ip_ebil_phy
659    !Config Desc = Niveau de sortie pour les diags bilan d'energie
660    !Config Def  = 0
661    !Config Help =
662    !               
663    ip_ebil_phy_omp = 0
[2702]664    CALL getin('ip_ebil_phy', ip_ebil_phy_omp)
[2714]665    IF (ip_ebil_phy_omp/=0) THEN
666       CALL abort_physic('conf_phys','ip_ebil_phy_omp doit etre 0 sur cette version',1)
667    ENDIF
668
[1938]669    !
670    !Config Key  = seuil_inversion
671    !Config Desc = Seuil ur dTh pour le choix entre les schemas de CL
672    !Config Def  = -0.1
673    !Config Help =
674    !               
675    seuil_inversion_omp = -0.1
[2702]676    CALL getin('seuil_inversion', seuil_inversion_omp)
[1687]677
[1938]678    !
679    ! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG
680    !
681    !Config Key  = R_ecc
682    !Config Desc = Excentricite
683    !Config Def  = 0.016715
684    !Config Help =
685    !               
686    !valeur AMIP II
687    R_ecc_omp = 0.016715
[2702]688    CALL getin('R_ecc', R_ecc_omp)
[1938]689    !
690    !Config Key  = R_peri
691    !Config Desc = Equinoxe
692    !Config Def  =
693    !Config Help =
694    !               
695    !
696    !valeur AMIP II
697    R_peri_omp = 102.7
[2702]698    CALL getin('R_peri', R_peri_omp)
[1938]699    !
700    !Config Key  = R_incl
701    !Config Desc = Inclinaison
702    !Config Def  =
703    !Config Help =
704    !               
705    !
706    !valeur AMIP II
707    R_incl_omp = 23.441
[2702]708    CALL getin('R_incl', R_incl_omp)
[1938]709    !
710    !Config Key  = solaire
711    !Config Desc = Constante solaire en W/m2
712    !Config Def  = 1365.
713    !Config Help =
714    !               
715    !
716    !valeur AMIP II
717    solaire_omp = 1365.
[3378]718    solaire_omp_init = solaire_omp     !--we keep track of the default value
[2702]719    CALL getin('solaire', solaire_omp)
[1938]720    !
721    !Config Key  = co2_ppm
722    !Config Desc = concentration du gaz carbonique en ppmv
723    !Config Def  = 348.
724    !Config Help =
725    !               
726    !
727    !valeur AMIP II
728    co2_ppm_omp = 348.
[2702]729    CALL getin('co2_ppm', co2_ppm_omp)
[1938]730    !
731    !Config Key  = RCO2
732    !Config Desc = Concentration du CO2
733    !Config Def  = co2_ppm * 1.0e-06  * 44.011/28.97
734    !Config Def  = 348. * 1.0e-06  * 44.011/28.97
735    !Config Help =
736    !               
737    ! RCO2 = 5.286789092164308E-04
738    !ancienne valeur
[3459]739    RCO2_omp = co2_ppm_omp * 1.0e-06 * RMCO2 / RMD ! pour co2_ppm=348.
[1687]740
[2702]741    !  CALL getin('RCO2', RCO2)
[1938]742    !
743    !Config Key  = RCH4
744    !Config Desc = Concentration du CH4
745    !Config Def  = 1.65E-06* 16.043/28.97
746    !Config Help =
747    !               
748    !
749    !valeur AMIP II
750    !OK  RCH4 = 1.65E-06* 16.043/28.97
751    ! RCH4 = 9.137366240938903E-07
752    !
753    !ancienne valeur
754    ! RCH4 = 1.72E-06* 16.043/28.97
[2702]755    !OK CALL getin('RCH4', RCH4)
[1938]756    zzz = 1650.
[2702]757    CALL getin('CH4_ppb', zzz)
[1938]758    CH4_ppb_omp = zzz
[3459]759    RCH4_omp = CH4_ppb_omp * 1.0E-09 * RMCH4 / RMD
[1938]760    !
761    !Config Key  = RN2O
762    !Config Desc = Concentration du N2O
763    !Config Def  = 306.E-09* 44.013/28.97
764    !Config Help =
765    !               
766    !
767    !valeur AMIP II
768    !OK  RN2O = 306.E-09* 44.013/28.97
769    ! RN2O = 4.648939592682085E-07
770    !
771    !ancienne valeur
772    ! RN2O = 310.E-09* 44.013/28.97
[2702]773    !OK  CALL getin('RN2O', RN2O)
[1938]774    zzz=306.
[2702]775    CALL getin('N2O_ppb', zzz)
[1938]776    N2O_ppb_omp = zzz
[3459]777    RN2O_omp = N2O_ppb_omp * 1.0E-09 * RMN2O / RMD
[1938]778    !
779    !Config Key  = RCFC11
780    !Config Desc = Concentration du CFC11
781    !Config Def  = 280.E-12* 137.3686/28.97
782    !Config Help =
783    !               
784    !
785    !OK RCFC11 = 280.E-12* 137.3686/28.97
786    zzz = 280.
[2702]787    CALL getin('CFC11_ppt',zzz)
[1938]788    CFC11_ppt_omp = zzz
[3459]789    RCFC11_omp=CFC11_ppt_omp* 1.0E-12 * RMCFC11 / RMD
[1938]790    ! RCFC11 = 1.327690990680013E-09
[2702]791    !OK CALL getin('RCFC11', RCFC11)
[1938]792    !
793    !Config Key  = RCFC12
794    !Config Desc = Concentration du CFC12
795    !Config Def  = 484.E-12* 120.9140/28.97
796    !Config Help =
797    !               
798    !
799    !OK RCFC12 = 484.E-12* 120.9140/28.97
800    zzz = 484.
[2702]801    CALL getin('CFC12_ppt',zzz)
[1938]802    CFC12_ppt_omp = zzz
[3459]803    RCFC12_omp = CFC12_ppt_omp * 1.0E-12 * RMCFC12 / RMD
[1938]804    ! RCFC12 = 2.020102726958923E-09
[2702]805    !OK CALL getin('RCFC12', RCFC12)
[1687]806
[1938]807    !ajout CFMIP begin
808    !
809    !Config Key  = co2_ppm_per
810    !Config Desc = concentration du co2_ppm_per
811    !Config Def  = 348.
812    !Config Help =
813    !               
814    co2_ppm_per_omp = co2_ppm_omp
[2702]815    CALL getin('co2_ppm_per', co2_ppm_per_omp)
[1938]816    !
817    !Config Key  = RCO2_per
818    !Config Desc = Concentration du CO2_per
819    !Config Def  = co2_ppm_per * 1.0e-06  * 44.011/28.97
820    !Config Def  = 348. * 1.0e-06  * 44.011/28.97
821    !Config Help =
822    !               
[3459]823    RCO2_per_omp = co2_ppm_per_omp * 1.0e-06 * RMCO2 / RMD
[1737]824
[1938]825    !Config Key  = ok_4xCO2atm
826    !Config Desc = Calcul ou non effet radiatif 4xco2
[2702]827    !Config Def  = .FALSE.
[1938]828    !Config Help =
[1737]829
[1938]830    !Config Key  = RCH4_per
831    !Config Desc = Concentration du CH4_per
832    !Config Def  = 1.65E-06* 16.043/28.97
833    !Config Help =
834    !               
835    zzz = CH4_ppb_omp
[2702]836    CALL getin('CH4_ppb_per', zzz)
[1938]837    CH4_ppb_per_omp = zzz
[3459]838    RCH4_per_omp = CH4_ppb_per_omp * 1.0E-09 * RMCH4 / RMD
[1938]839    !
840    !Config Key  = RN2O_per
841    !Config Desc = Concentration du N2O_per
842    !Config Def  = 306.E-09* 44.013/28.97
843    !Config Help =
844    !               
845    zzz = N2O_ppb_omp
[2702]846    CALL getin('N2O_ppb_per', zzz)
[1938]847    N2O_ppb_per_omp = zzz
[3459]848    RN2O_per_omp = N2O_ppb_per_omp * 1.0E-09 * RMN2O / RMD
[1938]849    !
850    !Config Key  = RCFC11_per
851    !Config Desc = Concentration du CFC11_per
852    !Config Def  = 280.E-12* 137.3686/28.97
853    !Config Help =
854    !               
855    zzz = CFC11_ppt_omp
[2702]856    CALL getin('CFC11_ppt_per',zzz)
[1938]857    CFC11_ppt_per_omp = zzz
[3459]858    RCFC11_per_omp=CFC11_ppt_per_omp* 1.0E-12 * RMCFC11 / RMD
[1938]859    !
860    !Config Key  = RCFC12_per
861    !Config Desc = Concentration du CFC12_per
862    !Config Def  = 484.E-12* 120.9140/28.97
863    !Config Help =
864    !               
865    zzz = CFC12_ppt_omp
[2702]866    CALL getin('CFC12_ppt_per',zzz)
[1938]867    CFC12_ppt_per_omp = zzz
[3459]868    RCFC12_per_omp = CFC12_ppt_per_omp * 1.0E-12 * RMCFC12 / RMD
[1938]869    !ajout CFMIP end
[1687]870
[1938]871    !
872    ! FH 2008/05/09 On elimine toutes les clefs physiques dans la dynamique
873    ! Constantes precedemment dans dyn3d/conf_gcm
[1687]874
[3317]875    !Config  Key  = iflag_cycle_diurne
876    !Config  Desc = Cycle diurne
877    !Config  Def  = 1
[1938]878    !Config  Help = Cette option permet d'eteidre le cycle diurne.
879    !Config         Peut etre util pour accelerer le code !
[3317]880    iflag_cycle_diurne_omp = 1
881    CALL getin('iflag_cycle_diurne',iflag_cycle_diurne_omp)
[1687]882
[1938]883    !Config  Key  = soil_model
884    !Config  Desc = Modele de sol
885    !Config  Def  = y
886    !Config  Help = Choix du modele de sol (Thermique ?)
887    !Config         Option qui pourait un string afin de pouvoir
888    !Config         plus de choix ! Ou meme une liste d'options !
889    soil_model_omp = .TRUE.
890    CALL getin('soil_model',soil_model_omp)
[1687]891
[1938]892    !Config  Key  = new_oliq
893    !Config  Desc = Nouvelle eau liquide
894    !Config  Def  = y
895    !Config  Help = Permet de mettre en route la
896    !Config         nouvelle parametrisation de l'eau liquide !
897    new_oliq_omp = .TRUE.
898    CALL getin('new_oliq',new_oliq_omp)
[1687]899
[1938]900    !Config  Key  = ok_orodr
901    !Config  Desc = Orodr ???
902    !Config  Def  = y
903    !Config  Help = Y en a pas comprendre !
904    !Config         
905    ok_orodr_omp = .TRUE.
906    CALL getin('ok_orodr',ok_orodr_omp)
[1687]907
[1938]908    !Config  Key  =  ok_orolf
909    !Config  Desc = Orolf ??
910    !Config  Def  = y
911    !Config  Help = Connais pas !
912    ok_orolf_omp = .TRUE.
913    CALL getin('ok_orolf', ok_orolf_omp)
[1687]914
[1938]915    !Config  Key  = ok_limitvrai
916    !Config  Desc = Force la lecture de la bonne annee
917    !Config  Def  = n
918    !Config  Help = On peut forcer le modele a lire le
919    !Config         fichier SST de la bonne annee. C'est une tres bonne
920    !Config         idee, pourquoi ne pas mettre toujours a y ???
921    ok_limitvrai_omp = .FALSE.
922    CALL getin('ok_limitvrai',ok_limitvrai_omp)
[1687]923
[1938]924    !Config  Key  = nbapp_rad
925    !Config  Desc = Frequence d'appel au rayonnement
926    !Config  Def  = 12
927    !Config  Help = Nombre  d'appels des routines de rayonnements
928    !Config         par jour.
929    nbapp_rad_omp = 12
930    CALL getin('nbapp_rad',nbapp_rad_omp)
[1687]931
[1938]932    !Config  Key  = iflag_con
933    !Config  Desc = Flag de convection
934    !Config  Def  = 2
935    !Config  Help = Flag  pour la convection les options suivantes existent :
936    !Config         1 pour LMD,
937    !Config         2 pour Tiedtke,
938    !Config         3 pour CCM(NCAR) 
939    iflag_con_omp = 2
940    CALL getin('iflag_con',iflag_con_omp)
[1753]941
[2707]942    !Config  Key  = nbapp_cv
943    !Config  Desc = Frequence d'appel a la convection
944    !Config  Def  = 0
945    !Config  Help = Nombre  d'appels des routines de convection
946    !Config         par jour. Si =0, appel a chaque pas de temps physique.
947    nbapp_cv_omp = 0
948    CALL getin('nbapp_cv',nbapp_cv_omp)
949
[2730]950    !Config  Key  = nbapp_wk
951    !Config  Desc = Frequence d'appel aux wakes
952    !Config  Def  = 0
953    !Config  Help = Nombre  d'appels des routines de wakes
954    !Config         par jour. Si =0, appel a chaque pas de temps physique.
955    nbapp_wk_omp = 0
956    CALL getin('nbapp_wk',nbapp_wk_omp)
957
[1938]958    !Config  Key  = iflag_ener_conserv
959    !Config  Desc = Flag de convection
960    !Config  Def  = 1
961    !Config  Help = Flag  pour la convection les options suivantes existent :
962    !Config         -1 pour Kinetic energy correction
963    !Config         1  conservation kinetic and enthalpy
964    iflag_ener_conserv_omp = -1
965    CALL getin('iflag_ener_conserv',iflag_ener_conserv_omp)
[1894]966
[2007]967    !Config  Key  = ok_conserv_q
968    !Config  Desc = Switch des corrections de conservation de l'eau
969    !Config  Def  = y
970    !Config  Help = Switch des corrections de conservation de l'eau
971    !Config         y -> corrections activees
972    !Config         n -> conformite avec versions anterieures au 1/4/2014
[2008]973    ok_conserv_q_omp = .FALSE.
[2007]974    CALL getin('ok_conserv_q',ok_conserv_q_omp)
975
[1938]976    !Config  Key  = iflag_fisrtilp_qsat
[2415]977    !Config  Desc = Flag de fisrtilp
978    !Config  Def  = 0
979    !Config  Help = Flag  pour la pluie grande-échelle les options suivantes existent :
980    !Config         >1 nb iterations pour converger dans le calcul de qsat
[1938]981    iflag_fisrtilp_qsat_omp = 0
982    CALL getin('iflag_fisrtilp_qsat',iflag_fisrtilp_qsat_omp)
[1687]983
[2415]984    !Config  Key  = iflag_bergeron
985    !Config  Desc = Flag de fisrtilp
986    !Config  Def  = 0
987    !Config  Help = Flag  pour la pluie grande-échelle les options suivantes existent :
988    !Config         0 pas d effet Bergeron
989    !Config         1 effet Bergeron pour T<0
990    iflag_bergeron_omp = 0
991    CALL getin('iflag_bergeron',iflag_bergeron_omp)
992
[1938]993    !
994    !
995    !
996    ! Constante solaire & Parametres orbitaux & taux gaz effet de serre END
997    !
998    ! KE
999    !
[1687]1000
[2253]1001    !Config key  = cvl_comp_threshold
1002    !Config Desc = maximum fraction of convective points enabling compression
1003    !Config Def  = 1.00
1004    !Config Help = fields are compressed when less than a fraction cvl_comp_threshold
1005    !Config Help = of the points is convective.
1006    cvl_comp_threshold_omp = 1.00
1007    CALL getin('cvl_comp_threshold', cvl_comp_threshold_omp)
1008
1009    !Config key  = cvl_sig2feed
1010    !Config Desc = sigma coordinate at top of feeding layer
1011    !Config Def  = 0.97
1012    !Config Help = deep convection is fed by the layer extending from the surface (pressure ps)
1013    !Config Help = and cvl_sig2feed*ps.
1014    cvl_sig2feed_omp = 0.97
1015    CALL getin('cvl_sig2feed', cvl_sig2feed_omp)
1016
[1938]1017    !Config key  = cvl_corr
1018    !Config Desc = Facteur multiplication des precip convectives dans KE
1019    !Config Def  = 1.00
1020    !Config Help = 1.02 pour un moderne ou un pre-ind. A ajuster pour un glaciaire
1021    cvl_corr_omp = 1.00
1022    CALL getin('cvl_corr', cvl_corr_omp)
[1687]1023
1024
[1938]1025    !Config Key  = epmax
1026    !Config Desc = Efficacite precip
1027    !Config Def  = 0.993
1028    !Config Help =
1029    !
1030    epmax_omp = .993
[2702]1031    CALL getin('epmax', epmax_omp)
[2481]1032
1033    coef_epmax_cape_omp = 0.0   
[2702]1034    CALL getin('coef_epmax_cape', coef_epmax_cape_omp)       
[1938]1035    !
1036    !Config Key  = ok_adj_ema
1037    !Config Desc = 
[2702]1038    !Config Def  = FALSE
[1938]1039    !Config Help =
1040    !
[2702]1041    ok_adj_ema_omp = .FALSE.
1042    CALL getin('ok_adj_ema',ok_adj_ema_omp)
[1938]1043    !
1044    !Config Key  = iflag_clw
1045    !Config Desc = 
1046    !Config Def  = 0
1047    !Config Help =
1048    !
1049    iflag_clw_omp = 0
[2702]1050    CALL getin('iflag_clw',iflag_clw_omp)
[1938]1051    !
1052    !Config Key  = cld_lc_lsc
1053    !Config Desc = 
1054    !Config Def  = 2.6e-4
1055    !Config Help =
1056    !
1057    cld_lc_lsc_omp = 2.6e-4
[2702]1058    CALL getin('cld_lc_lsc',cld_lc_lsc_omp)
[1938]1059    !
1060    !Config Key  = cld_lc_con
1061    !Config Desc = 
1062    !Config Def  = 2.6e-4
1063    !Config Help =
1064    !
1065    cld_lc_con_omp = 2.6e-4
[2702]1066    CALL getin('cld_lc_con',cld_lc_con_omp)
[1938]1067    !
1068    !Config Key  = cld_tau_lsc
1069    !Config Desc = 
1070    !Config Def  = 3600.
1071    !Config Help =
1072    !
1073    cld_tau_lsc_omp = 3600.
[2702]1074    CALL getin('cld_tau_lsc',cld_tau_lsc_omp)
[1938]1075    !
1076    !Config Key  = cld_tau_con
1077    !Config Desc = 
1078    !Config Def  = 3600.
1079    !Config Help =
1080    !
1081    cld_tau_con_omp = 3600.
[2702]1082    CALL getin('cld_tau_con',cld_tau_con_omp)
[1938]1083    !
1084    !Config Key  = ffallv_lsc
1085    !Config Desc = 
1086    !Config Def  = 1.
1087    !Config Help =
1088    !
1089    ffallv_lsc_omp = 1.
[2702]1090    CALL getin('ffallv_lsc',ffallv_lsc_omp)
[1938]1091    !
1092    !Config Key  = ffallv_con
1093    !Config Desc = 
1094    !Config Def  = 1.
1095    !Config Help =
1096    !
1097    ffallv_con_omp = 1.
[2702]1098    CALL getin('ffallv_con',ffallv_con_omp)
[1938]1099    !
1100    !Config Key  = coef_eva
1101    !Config Desc = 
1102    !Config Def  = 2.e-5
1103    !Config Help =
1104    !
1105    coef_eva_omp = 2.e-5
[2702]1106    CALL getin('coef_eva',coef_eva_omp)
[1938]1107    !
1108    !Config Key  = reevap_ice
1109    !Config Desc = 
[2702]1110    !Config Def  = .FALSE.
[1938]1111    !Config Help =
1112    !
[2702]1113    reevap_ice_omp = .FALSE.
1114    CALL getin('reevap_ice',reevap_ice_omp)
[1687]1115
[1938]1116    !Config Key  = iflag_ratqs
1117    !Config Desc =
1118    !Config Def  = 1
1119    !Config Help =
1120    !
1121    iflag_ratqs_omp = 1
[2702]1122    CALL getin('iflag_ratqs',iflag_ratqs_omp)
[1687]1123
[1938]1124    !
1125    !Config Key  = iflag_radia
1126    !Config Desc = 
1127    !Config Def  = 1
1128    !Config Help =
1129    !
1130    iflag_radia_omp = 1
[2702]1131    CALL getin('iflag_radia',iflag_radia_omp)
[1687]1132
[1938]1133    !
1134    !Config Key  = iflag_rrtm
1135    !Config Desc = 
1136    !Config Def  = 0
1137    !Config Help =
1138    !
1139    iflag_rrtm_omp = 0
[2702]1140    CALL getin('iflag_rrtm',iflag_rrtm_omp)
[1687]1141
[1938]1142    !
[1989]1143    !Config Key  = NSW
1144    !Config Desc = 
1145    !Config Def  = 0
1146    !Config Help =
1147    !
[2413]1148    NSW_omp = 2
[2702]1149    CALL getin('NSW',NSW_omp)
[2357]1150    !albedo SB >>>
[2227]1151    iflag_albedo_omp = 0
[2702]1152    CALL getin('iflag_albedo',iflag_albedo_omp)
[1989]1153
[2702]1154    ok_chlorophyll_omp=.FALSE.
1155    CALL getin('ok_chlorophyll',ok_chlorophyll_omp)
[2357]1156    !albedo SB <<<
[2785]1157    !
1158    !Config Key  = ok_sun_time
1159    !Config Desc = oui ou non variabilite solaire
1160    !Config Def  = .FALSE.
1161    !Config Help =
1162    !
1163    !
1164    !valeur AMIP II
1165    ok_suntime_rrtm_omp = .FALSE.
1166    IF (iflag_rrtm_omp==1) THEN
1167      CALL getin('ok_suntime_rrtm',ok_suntime_rrtm_omp)
1168    ENDIF
[3412]1169   
[2785]1170    !Config Key  = flag_aerosol_strat
1171    !Config Desc = use stratospheric aerosols 0, 1, 2
1172    ! - 0 = no stratospheric aerosols
1173    ! - 1 = stratospheric aerosols scaled from 550 nm AOD
1174    ! - 2 = stratospheric aerosol properties from CMIP6
[3435]1175    !Option 2 is only available with RRTM, this is tested later on
[2785]1176    !Config Def  = 0
1177    !Config Help = Used in physiq.F
1178    !
1179    flag_aerosol_strat_omp = 0
[3357]1180    CALL getin('flag_aerosol_strat',flag_aerosol_strat_omp)
[2227]1181
[3412]1182    !Config Key  = flag_aer_feedback
1183    !Config Desc = (des)activate aerosol radiative feedback
1184    ! - F = no aerosol radiative feedback
1185    ! - T = aerosol radiative feedback
1186    !Config Def  = T
1187    !Config Help = Used in physiq.F
[1989]1188    !
[3412]1189    flag_aer_feedback_omp = .TRUE.
1190    IF (iflag_rrtm_omp==1) THEN
1191       CALL getin('flag_aer_feedback',flag_aer_feedback_omp)
1192    ENDIF
1193
[2236]1194    !Config Key  = iflag_cld_th
[1938]1195    !Config Desc = 
1196    !Config Def  = 1
1197    !Config Help =
1198    !
[2236]1199    iflag_cld_th_omp = 1
[2357]1200    ! On lit deux fois avec l'ancien et le nouveau nom
1201    ! pour assurer une retrocompatiblite.
1202    ! A abandonner un jour
[2702]1203    CALL getin('iflag_cldcon',iflag_cld_th_omp)
1204    CALL getin('iflag_cld_th',iflag_cld_th_omp)
[2236]1205    iflag_cld_cv_omp = 0
[2702]1206    CALL getin('iflag_cld_cv',iflag_cld_cv_omp)
[2205]1207
1208    !
1209    !Config Key  = tau_cld_cv
1210    !Config Desc =
1211    !Config Def  = 10.
1212    !Config Help =
1213    !
1214    tau_cld_cv_omp = 10.
[2702]1215    CALL getin('tau_cld_cv',tau_cld_cv_omp)
[2205]1216
1217    !
1218    !Config Key  = coefw_cld_cv
1219    !Config Desc =
1220    !Config Def  = 0.1
1221    !Config Help =
1222    !
1223    coefw_cld_cv_omp = 0.1
[2702]1224    CALL getin('coefw_cld_cv',coefw_cld_cv_omp)
[2205]1225
[3900]1226
1227
1228
[2205]1229    !
[1938]1230    !Config Key  = iflag_pdf
1231    !Config Desc = 
1232    !Config Def  = 0
1233    !Config Help =
1234    !
1235    iflag_pdf_omp = 0
[2702]1236    CALL getin('iflag_pdf',iflag_pdf_omp)
[1938]1237    !
1238    !Config Key  = fact_cldcon
1239    !Config Desc = 
1240    !Config Def  = 0.375
1241    !Config Help =
1242    !
1243    fact_cldcon_omp = 0.375
[2702]1244    CALL getin('fact_cldcon',fact_cldcon_omp)
[1687]1245
[1938]1246    !
1247    !Config Key  = facttemps
1248    !Config Desc = 
1249    !Config Def  = 1.e-4
1250    !Config Help =
1251    !
1252    facttemps_omp = 1.e-4
[2702]1253    CALL getin('facttemps',facttemps_omp)
[1687]1254
[1938]1255    !
1256    !Config Key  = ok_newmicro
1257    !Config Desc = 
[2702]1258    !Config Def  = .TRUE.
[1938]1259    !Config Help =
1260    !
[2702]1261    ok_newmicro_omp = .TRUE.
1262    CALL getin('ok_newmicro',ok_newmicro_omp)
[1938]1263    !
1264    !Config Key  = ratqsbas
1265    !Config Desc = 
1266    !Config Def  = 0.01
1267    !Config Help =
1268    !
1269    ratqsbas_omp = 0.01
[2702]1270    CALL getin('ratqsbas',ratqsbas_omp)
[1938]1271    !
1272    !Config Key  = ratqshaut
1273    !Config Desc = 
1274    !Config Def  = 0.3
1275    !Config Help =
1276    !
1277    ratqshaut_omp = 0.3
[2702]1278    CALL getin('ratqshaut',ratqshaut_omp)
[1687]1279
[1938]1280    !Config Key  = tau_ratqs
1281    !Config Desc = 
1282    !Config Def  = 1800.
1283    !Config Help =
1284    !
1285    tau_ratqs_omp = 1800.
[2702]1286    CALL getin('tau_ratqs',tau_ratqs_omp)
[1687]1287
[1938]1288    !
1289    !-----------------------------------------------------------------------
1290    ! Longitude solaire pour le calcul de l'ensoleillement en degre
1291    ! si on veut imposer la saison. Sinon, solarlong0=-999.999
1292    !Config Key  = solarlong0
1293    !Config Desc = 
1294    !Config Def  = -999.999
1295    !Config Help =
1296    !
1297    solarlong0_omp = -999.999
[2702]1298    CALL getin('solarlong0',solarlong0_omp)
[1938]1299    !
1300    !-----------------------------------------------------------------------
1301    !  Valeur imposee pour configuration idealisees
1302    !Config Key  = qsol0 pour le bucket, evap0 pour aquaplanetes, albsno0
1303    ! Default value -1 to activate the full computation
1304    qsol0_omp = -1.
[2702]1305    CALL getin('qsol0',qsol0_omp)
[1938]1306    evap0_omp = -1.
[2702]1307    CALL getin('evap0',evap0_omp)
[1938]1308    albsno0_omp = -1.
[2702]1309    CALL getin('albsno0',albsno0_omp)
[1938]1310    !
1311    !-----------------------------------------------------------------------
1312    !
[2915]1313    !Config Key  = iflag_sic
[1938]1314    !Config Desc = 
[2915]1315    !Config Def  = 0
1316    !Config Help =
1317    !
1318    iflag_sic_omp = 0
1319    CALL getin('iflag_sic',iflag_sic_omp)
1320    !
1321    !Config Key  = inertie_sic
1322    !Config Desc = 
[1938]1323    !Config Def  = 2000.
1324    !Config Help =
1325    !
[2915]1326    inertie_sic_omp = 2000.
1327    CALL getin('inertie_sic',inertie_sic_omp)
[1938]1328    !
[2915]1329    !Config Key  = inertie_lic
1330    !Config Desc = 
1331    !Config Def  = 2000.
1332    !Config Help =
1333    !
1334    inertie_lic_omp = 2000.
1335    CALL getin('inertie_lic',inertie_lic_omp)
1336    !
[1938]1337    !Config Key  = inertie_sno
1338    !Config Desc = 
1339    !Config Def  = 2000.
1340    !Config Help =
1341    !
1342    inertie_sno_omp = 2000.
[2702]1343    CALL getin('inertie_sno',inertie_sno_omp)
[1938]1344    !
1345    !Config Key  = inertie_sol
1346    !Config Desc = 
1347    !Config Def  = 2000.
1348    !Config Help =
1349    !
1350    inertie_sol_omp = 2000.
[2702]1351    CALL getin('inertie_sol',inertie_sol_omp)
[1687]1352
[1938]1353    !
1354    !Config Key  = rad_froid
1355    !Config Desc = 
1356    !Config Def  = 35.0
1357    !Config Help =
1358    !
1359    rad_froid_omp = 35.0
[2702]1360    CALL getin('rad_froid',rad_froid_omp)
[1687]1361
[1938]1362    !
1363    !Config Key  = rad_chau1
1364    !Config Desc = 
1365    !Config Def  = 13.0
1366    !Config Help =
1367    !
1368    rad_chau1_omp = 13.0
[2702]1369    CALL getin('rad_chau1',rad_chau1_omp)
[1687]1370
[1938]1371    !
1372    !Config Key  = rad_chau2
1373    !Config Desc = 
1374    !Config Def  = 9.0
1375    !Config Help =
1376    !
1377    rad_chau2_omp = 9.0
[2702]1378    CALL getin('rad_chau2',rad_chau2_omp)
[1687]1379
[1938]1380    !
1381    !Config Key  = t_glace_min
1382    !Config Desc = 
1383    !Config Def  = 258.
1384    !Config Help =
1385    !
1386    t_glace_min_omp = 258.
[2702]1387    CALL getin('t_glace_min',t_glace_min_omp)
[1687]1388
[1938]1389    !
1390    !Config Key  = t_glace_max
1391    !Config Desc = 
1392    !Config Def  = 273.13
1393    !Config Help =
1394    !
1395    t_glace_max_omp = 273.13
[2702]1396    CALL getin('t_glace_max',t_glace_max_omp)
[1849]1397
[1938]1398    !
[2006]1399    !Config Key  = exposant_glace
1400    !Config Desc = 
1401    !Config Def  = 2.
1402    !Config Help =
1403    !
1404    exposant_glace_omp = 1.
[2702]1405    CALL getin('exposant_glace',exposant_glace_omp)
[2006]1406
1407    !
1408    !Config Key  = iflag_t_glace
1409    !Config Desc = 
1410    !Config Def  = 0
1411    !Config Help =
1412    !
1413    iflag_t_glace_omp = 0
[2702]1414    CALL getin('iflag_t_glace',iflag_t_glace_omp)
[2006]1415
1416    !
[2547]1417    !Config Key  = iflag_cloudth_vert
1418    !Config Desc = 
1419    !Config Def  = 0
1420    !Config Help =
1421    !
1422    iflag_cloudth_vert_omp = 0
[2702]1423    CALL getin('iflag_cloudth_vert',iflag_cloudth_vert_omp)
[2547]1424
1425    !
[2945]1426    !Config Key  = iflag_rain_incloud_vol
1427    !Config Desc = 
1428    !Config Def  = 0
1429    !Config Help =
1430    !
1431    iflag_rain_incloud_vol_omp = 0
1432    CALL getin('iflag_rain_incloud_vol',iflag_rain_incloud_vol_omp)
1433
1434    !
[1938]1435    !Config Key  = iflag_ice_thermo
1436    !Config Desc = 
1437    !Config Def  = 0
1438    !Config Help =
1439    !
1440    iflag_ice_thermo_omp = 0
[2702]1441    CALL getin('iflag_ice_thermo',iflag_ice_thermo_omp)
[1687]1442
[1938]1443    !Config Key  = rei_min
1444    !Config Desc = 
1445    !Config Def  = 3.5
1446    !Config Help =
1447    !
1448    rei_min_omp = 3.5
[2702]1449    CALL getin('rei_min',rei_min_omp)
[1687]1450
[1938]1451    !
1452    !Config Key  = rei_max
1453    !Config Desc = 
1454    !Config Def  = 61.29
1455    !Config Help =
1456    !
1457    rei_max_omp = 61.29
[2702]1458    CALL getin('rei_max',rei_max_omp)
[1687]1459
[1938]1460    !
1461    !Config Key  = top_height
1462    !Config Desc =
1463    !Config Def  = 3
1464    !Config Help =
1465    !
1466    top_height_omp = 3
[2702]1467    CALL getin('top_height',top_height_omp)
[1687]1468
[1938]1469    !
1470    !Config Key  = overlap
1471    !Config Desc =
1472    !Config Def  = 3
1473    !Config Help =
1474    !
1475    overlap_omp = 3
[2702]1476    CALL getin('overlap',overlap_omp)
[1687]1477
[1938]1478    !
1479    !Config Key  = cdmmax
1480    !Config Desc =
1481    !Config Def  = 1.3E-3
1482    !Config Help =
1483    !
1484    cdmmax_omp = 1.3E-3
[2702]1485    CALL getin('cdmmax',cdmmax_omp)
[1687]1486
[1938]1487    !
1488    !Config Key  = cdhmax
1489    !Config Desc =
1490    !Config Def  = 1.1E-3
1491    !Config Help =
1492    !
1493    cdhmax_omp = 1.1E-3
[2702]1494    CALL getin('cdhmax',cdhmax_omp)
[1687]1495
[1938]1496    !261103
1497    !
1498    !Config Key  = ksta
1499    !Config Desc =
1500    !Config Def  = 1.0e-10
1501    !Config Help =
1502    !
1503    ksta_omp = 1.0e-10
[2702]1504    CALL getin('ksta',ksta_omp)
[1687]1505
[1938]1506    !
1507    !Config Key  = ksta_ter
1508    !Config Desc =
1509    !Config Def  = 1.0e-10
1510    !Config Help =
1511    !
1512    ksta_ter_omp = 1.0e-10
[2702]1513    CALL getin('ksta_ter',ksta_ter_omp)
[1687]1514
[2126]1515    !Config Key  = f_ri_cd_min
1516    !Config Desc =
1517    !Config Def  = 0.1
1518    !Config Help =
[1938]1519    !
[2126]1520    f_ri_cd_min_omp = 0.1
[2702]1521    CALL getin('f_ri_cd_min',f_ri_cd_min_omp)
[2126]1522
1523    !
[1938]1524    !Config Key  = ok_kzmin
1525    !Config Desc =
[2702]1526    !Config Def  = .TRUE.
[1938]1527    !Config Help =
1528    !
[2702]1529    ok_kzmin_omp = .TRUE.
1530    CALL getin('ok_kzmin',ok_kzmin_omp)
[1687]1531
[2561]1532    pbl_lmixmin_alpha_omp=0.0
[2702]1533    CALL getin('pbl_lmixmin_alpha',pbl_lmixmin_alpha_omp)
[2561]1534
[1938]1535    !
1536    !Config Key  = fmagic
1537    !Config Desc = additionnal multiplicator factor used for albedo
1538    !Config Def  = 1.
1539    !Config Help = additionnal multiplicator factor used in albedo.F
1540    !
1541    fmagic_omp = 1.
[2702]1542    CALL getin('fmagic',fmagic_omp)
[1687]1543
[1938]1544    !
1545    !Config Key  = pmagic
1546    !Config Desc = additional factor used for albedo
1547    !Config Def  = 0.
1548    !Config Help = additional factor used in albedo.F
1549    !
1550    pmagic_omp = 0.
[2702]1551    CALL getin('pmagic',pmagic_omp)
[1687]1552
1553
[1938]1554    !Config Key = ok_lic_melt
1555    !Config Desc = Prise en compte de la fonte de la calotte dans le bilan d'eau
[2702]1556    !Config Def  = .FALSE.
1557    !Config Help = mettre a .FALSE. pour assurer la conservation en eau
1558    ok_lic_melt_omp = .FALSE.
1559    CALL getin('ok_lic_melt', ok_lic_melt_omp)
[1687]1560
[2946]1561
1562    !Config Key = ok_lic_cond
1563    !Config Desc = Prise en compte depot de vapeur d'eau sur la calotte dans le bilan d'eau
1564    !Config Def  = .FALSE.
1565    !Config Help = mettre a .TRUE. pour assurer la conservation en eau
1566    ok_lic_cond_omp = .FALSE.
1567    CALL getin('ok_lic_cond', ok_lic_cond_omp)
1568
[1938]1569    !
1570    ! PARAMETER FOR THE PLANETARY BOUNDARY LAYER
1571    !
[1687]1572
[1938]1573    !Config Key  = iflag_pbl
1574    !Config Desc =
1575    !Config Def  = 1
1576    !Config Help =
1577    !
1578    iflag_pbl_omp = 1
[2702]1579    CALL getin('iflag_pbl',iflag_pbl_omp)
[2952]1580
1581!FC
1582    !Config Key  = ifl_pbltree
1583    !Config Desc = drag from trees 0 no activated
1584    !Config Def  = 0
1585    !Config Help =
[1938]1586    !
[2952]1587    ifl_pbltree_omp = 0
1588    CALL getin('ifl_pbltree',ifl_pbltree_omp)
1589!FC
1590    !Config Key  = Cd_frein
1591    !Config Desc = drag from trees
1592    !Config Def  = 7.5E-02 (valeur Masson mais fait planter avec des LAI eleves)
1593    !Config Help =
1594    !
1595    Cd_frein_omp = 7.5E-02
1596    CALL getin('Cd_frein',Cd_frein_omp)
1597
1598    !
[2159]1599    !Config Key  = iflag_pbl_split
[2852]1600    !Config Desc = decimal flag: least signif digit = split vdf; next digit = split thermals
[2159]1601    !Config Def  = 0
[2852]1602    !Config Help = 0-> no splitting; 1-> vdf splitting; 10-> thermals splitting; 11-> full splitting
[2159]1603    !
1604    iflag_pbl_split_omp = 0
[2852]1605    call getin('iflag_pbl_split',iflag_pbl_split_omp)
[2159]1606    !
[2455]1607    !Config Key  = iflag_order2_sollw
1608    !Config Desc =
1609    !Config Def  = 0
1610    !Config Help =
1611    !
1612    iflag_order2_sollw_omp = 0
[2702]1613    CALL getin('iflag_order2_sollw',iflag_order2_sollw_omp)
[2455]1614    !
[1938]1615    !Config Key  = iflag_thermals
1616    !Config Desc =
1617    !Config Def  = 0
1618    !Config Help =
1619    !
1620    iflag_thermals_omp = 0
[2702]1621    CALL getin('iflag_thermals',iflag_thermals_omp)
[1938]1622    !
[2000]1623    !Config Key  = iflag_thermals_ed
1624    !Config Desc =
1625    !Config Def  = 0
1626    !Config Help =
[1938]1627    !
[2000]1628    fact_thermals_ed_dz_omp = 0.1
1629
[2702]1630    CALL getin('fact_thermals_ed_dz',fact_thermals_ed_dz_omp)
[2000]1631    !
1632    !
[1938]1633    !Config Key  = iflag_thermals_ed
1634    !Config Desc =
1635    !Config Def  = 0
1636    !Config Help =
1637    !
1638    iflag_thermals_ed_omp = 0
[2702]1639    CALL getin('iflag_thermals_ed',iflag_thermals_ed_omp)
[1938]1640    !
1641    !
1642    !Config Key  = iflag_thermals_optflux
1643    !Config Desc =
1644    !Config Def  = 0
1645    !Config Help =
1646    !
1647    iflag_thermals_optflux_omp = 0
[2702]1648    CALL getin('iflag_thermals_optflux',iflag_thermals_optflux_omp)
[1938]1649    !
[1998]1650    !Config Key  = iflag_thermals_closure
1651    !Config Desc =
1652    !Config Def  = 0
1653    !Config Help =
[1938]1654    !
[1998]1655    iflag_thermals_closure_omp = 1
[2702]1656    CALL getin('iflag_thermals_closure',iflag_thermals_closure_omp)
[1998]1657    !
[1938]1658    !Config Key  = nsplit_thermals
1659    !Config Desc =
1660    !Config Def  = 1
1661    !Config Help =
1662    !
1663    nsplit_thermals_omp = 1
[2702]1664    CALL getin('nsplit_thermals',nsplit_thermals_omp)
[1687]1665
[1938]1666    !Config Key  = alp_bl_k
1667    !Config Desc =
1668    !Config Def  = 0.
1669    !Config Help =
1670    !
1671    alp_bl_k_omp = 1.
[2702]1672    CALL getin('alp_bl_k',alp_bl_k_omp)
[1687]1673
[1938]1674    ! nrlmd le 10/04/2012
[1687]1675
[1938]1676    !Config Key  = iflag_trig_bl
1677    !Config Desc = 
1678    !Config Def  = 0
1679    !Config Help =
1680    !
1681    iflag_trig_bl_omp = 0
[2702]1682    CALL getin('iflag_trig_bl',iflag_trig_bl_omp)
[1687]1683
[1938]1684    !Config Key  = s_trig_bl
1685    !Config Desc = 
1686    !Config Def  = 0
1687    !Config Help =
1688    !
1689    s_trig_omp = 2e7
[2702]1690    CALL getin('s_trig',s_trig_omp)
[1687]1691
[1938]1692    !Config Key  = tau_trig_shallow
1693    !Config Desc = 
1694    !Config Def  = 0
1695    !Config Help =
1696    !
1697    tau_trig_shallow_omp = 600
[2702]1698    CALL getin('tau_trig_shallow',tau_trig_shallow_omp)
[1687]1699
[1938]1700    !Config Key  = tau_trig_deep
1701    !Config Desc = 
1702    !Config Def  = 0
1703    !Config Help =
1704    !
1705    tau_trig_deep_omp = 1800
[2702]1706    CALL getin('tau_trig_deep',tau_trig_deep_omp)
[1687]1707
[1938]1708    !Config Key  = iflag_clos_bl
1709    !Config Desc = 
1710    !Config Def  = 0
1711    !Config Help =
1712    !
1713    iflag_clos_bl_omp = 0
[2702]1714    CALL getin('iflag_clos_bl',iflag_clos_bl_omp)
[1687]1715
[1938]1716    ! fin nrlmd le 10/04/2012
[1687]1717
[1938]1718    !
1719    !Config Key  = tau_thermals
1720    !Config Desc =
1721    !Config Def  = 0.
1722    !Config Help =
1723    !
1724    tau_thermals_omp = 0.
[2702]1725    CALL getin('tau_thermals',tau_thermals_omp)
[1687]1726
[1938]1727    !
1728    !Config Key  = iflag_coupl
1729    !Config Desc =
1730    !Config Def  = 0
1731    !Config Help =
1732    !
1733    iflag_coupl_omp = 0
[2702]1734    CALL getin('iflag_coupl',iflag_coupl_omp)
[1687]1735
[1938]1736    !
1737    !Config Key  = iflag_clos
1738    !Config Desc = 
1739    !Config Def  = 0
1740    !Config Help =
1741    !
1742    iflag_clos_omp = 1
[2702]1743    CALL getin('iflag_clos',iflag_clos_omp)
[1938]1744    !
[2201]1745    !Config Key  = coef_clos_ls
1746    !Config Desc = 
1747    !Config Def  = 0
1748    !Config Help =
1749    !
1750    coef_clos_ls_omp = 0.
[2702]1751    CALL getin('coef_clos_ls',coef_clos_ls_omp)
[2201]1752
1753    !
[1938]1754    !Config Key  = iflag_cvl_sigd
1755    !Config Desc = 
1756    !Config Def  = 0
1757    !Config Help =
1758    !
1759    iflag_cvl_sigd_omp = 0
[2702]1760    CALL getin('iflag_cvl_sigd',iflag_cvl_sigd_omp)
[1687]1761
[1938]1762    !Config Key  = iflag_wake
1763    !Config Desc = 
1764    !Config Def  = 0
1765    !Config Help =
1766    !
1767    iflag_wake_omp = 0
[2702]1768    CALL getin('iflag_wake',iflag_wake_omp)
[1687]1769
[1938]1770    !Config Key  = alp_offset
1771    !Config Desc = 
1772    !Config Def  = 0
1773    !Config Help =
1774    !
1775    alp_offset_omp = 0.
[2702]1776    CALL getin('alp_offset',alp_offset_omp)
[1687]1777
[1938]1778    !
1779    !Config Key  = lev_histhf
1780    !Config Desc =
1781    !Config Def  = 1
1782    !Config Help =
1783    !
1784    lev_histhf_omp = 1
[2702]1785    CALL getin('lev_histhf',lev_histhf_omp)
[1687]1786
[1938]1787    !
1788    !Config Key  = lev_histday
1789    !Config Desc =
1790    !Config Def  = 1
1791    !Config Help =
1792    !
1793    lev_histday_omp = 1
[2702]1794    CALL getin('lev_histday',lev_histday_omp)
[1687]1795
[1938]1796    !
1797    !Config Key  = lev_histmth
1798    !Config Desc =
1799    !Config Def  = 2
1800    !Config Help =
1801    !
1802    lev_histmth_omp = 2
[2702]1803    CALL getin('lev_histmth',lev_histmth_omp)
[1938]1804    !
1805    !Config Key  = lev_histins
1806    !Config Desc =
1807    !Config Def  = 1
1808    !Config Help =
1809    !
1810    lev_histins_omp = 1
[2702]1811    CALL getin('lev_histins',lev_histins_omp)
[1938]1812    !
1813    !Config Key  = lev_histLES
1814    !Config Desc =
1815    !Config Def  = 1
1816    !Config Help =
1817    !
1818    lev_histLES_omp = 1
[2702]1819    CALL getin('lev_histLES',lev_histLES_omp)
[1938]1820    !
1821    !Config Key  = lev_histdayNMC
1822    !Config Desc =
1823    !Config Def  = 8
1824    !Config Help =
1825    !
1826    lev_histdayNMC_omp = 8
[2702]1827    CALL getin('lev_histdayNMC',lev_histdayNMC_omp)
[1938]1828    !
1829    !Config Key  = levout_histNMC
1830    !Config Desc =
1831    !Config Def  = 5
1832    !Config Help =
1833    !
1834    levout_histNMC_omp(1) = 5
1835    levout_histNMC_omp(2) = 5
1836    levout_histNMC_omp(3) = 5
[2702]1837    CALL getin('levout_histNMC',levout_histNMC_omp)
[1938]1838    !
1839    !histNMC BEG
1840    !Config Key  = ok_histNMC
1841    !Config Desc = ok_histNMC(1) = frequence de sortie fichiers histmthNMC
1842    !Config Desc = ok_histNMC(2) = frequence de sortie fichiers histdayNMC
1843    !Config Desc = ok_histNMC(3) = frequence de sortie fichiers histhfNMC
1844    !Config Def  = n, n, n
1845    !Config Help =
1846    !
[2702]1847    ok_histNMC_omp(1) = .FALSE.
1848    ok_histNMC_omp(2) = .FALSE.
1849    ok_histNMC_omp(3) = .FALSE.
1850    CALL getin('ok_histNMC',ok_histNMC_omp)
[1938]1851    !
1852    !Config Key  = freq_outNMC
1853    !Config Desc = freq_outNMC(1) = frequence de sortie fichiers histmthNMC
1854    !Config Desc = freq_outNMC(2) = frequence de sortie fichiers histdayNMC
1855    !Config Desc = freq_outNMC(3) = frequence de sortie fichiers histhfNMC
1856    !Config Def  = 2592000., 86400., 21600. (1mois, 1jour, 6h)
1857    !Config Help =
1858    !
1859    freq_outNMC_omp(1) = mth_len
1860    freq_outNMC_omp(2) = 1.
1861    freq_outNMC_omp(3) = 1./4.
[2702]1862    CALL getin('freq_outNMC',freq_outNMC_omp)
[1938]1863    !
1864    !Config Key  = freq_calNMC
1865    !Config Desc = freq_calNMC(1) = frequence de calcul fichiers histmthNMC
1866    !Config Desc = freq_calNMC(2) = frequence de calcul fichiers histdayNMC
1867    !Config Desc = freq_calNMC(3) = frequence de calcul fichiers histhfNMC
[3435]1868    !Config Def  = phys_tstep
[1938]1869    !Config Help =
1870    !
[3435]1871    freq_calNMC_omp(1) = phys_tstep
1872    freq_calNMC_omp(2) = phys_tstep
1873    freq_calNMC_omp(3) = phys_tstep
[2702]1874    CALL getin('freq_calNMC',freq_calNMC_omp)
[1938]1875    !
1876    !Config Key  = type_run
1877    !Config Desc =
1878    !Config Def  = 'AMIP'/'CFMIP'  ou 'CLIM'/'ENSP'
1879    !Config Help =
1880    !
1881    type_run_omp = 'AMIP'
[2702]1882    CALL getin('type_run',type_run_omp)
[1687]1883
[1938]1884    !
1885    !Config Key  = ok_cosp
1886    !Config Desc =
[2702]1887    !Config Def  = .FALSE.
[1938]1888    !Config Help =
1889    !
[2702]1890    ok_cosp_omp = .FALSE.
1891    CALL getin('ok_cosp',ok_cosp_omp)
[1687]1892
[1938]1893    !
[2580]1894    !Config Key  = ok_airs
1895    !Config Desc =
[2702]1896    !Config Def  = .FALSE.
[2580]1897    !Config Help =
1898    !
[2702]1899    ok_airs_omp = .FALSE.
1900    CALL getin('ok_airs',ok_airs_omp)
[2580]1901
1902    !
[1938]1903    !Config Key  = ok_mensuelCOSP
1904    !Config Desc =
[2702]1905    !Config Def  = .TRUE.
[1938]1906    !Config Help =
1907    !
[2702]1908    ok_mensuelCOSP_omp = .TRUE.
1909    CALL getin('ok_mensuelCOSP',ok_mensuelCOSP_omp)
[1687]1910
[1938]1911    !
1912    !Config Key  = ok_journeCOSP
1913    !Config Desc =
[2702]1914    !Config Def  = .TRUE.
[1938]1915    !Config Help =
1916    !
[2702]1917    ok_journeCOSP_omp = .TRUE.
1918    CALL getin('ok_journeCOSP',ok_journeCOSP_omp)
[1687]1919
[1938]1920    !
1921    !Config Key  = ok_hfCOSP
1922    !Config Desc =
[2702]1923    !Config Def  = .FALSE.
[1938]1924    !Config Help =
1925    !
[2702]1926    ok_hfCOSP_omp = .FALSE.
1927    CALL getin('ok_hfCOSP',ok_hfCOSP_omp)
[1687]1928
[1938]1929    !
1930    ! coordonnees (lonmin_ins, lonmax_ins, latmin_ins, latmax_ins) pour la zone
1931    ! avec sorties instantannees tous les pas de temps de la physique => "histbilKP_ins.nc"
1932    !
1933    !Config Key  = lonmin_ins
1934    !Config Desc = 100. 
1935    !Config Def  = longitude minimale sorties "bilKP_ins"
1936    !Config Help =
1937    !
1938    lonmin_ins_omp = 100.
[2702]1939    CALL getin('lonmin_ins',lonmin_ins_omp)
[1938]1940    !
1941    !Config Key  = lonmax_ins
1942    !Config Desc = 130.
1943    !Config Def  = longitude maximale sorties "bilKP_ins"
1944    !Config Help =
1945    !
1946    lonmax_ins_omp = 130.
[2702]1947    CALL getin('lonmax_ins',lonmax_ins_omp)
[1938]1948    !
1949    !Config Key  = latmin_ins
1950    !Config Desc = -20. 
1951    !Config Def  = latitude minimale sorties "bilKP_ins"
1952    !Config Help =
1953    !
1954    latmin_ins_omp = -20.
[2702]1955    CALL getin('latmin_ins',latmin_ins_omp)
[1938]1956    !
1957    !Config Key  = latmax_ins
1958    !Config Desc = 20.
1959    !Config Def  = latitude maximale sorties "bilKP_ins"
1960    !Config Help =
1961    !
1962    latmax_ins_omp = 20.
[2702]1963    CALL getin('latmax_ins',latmax_ins_omp)
[1938]1964    !
1965    !Config Key  = ecrit_hf
1966    !Config Desc =
1967    !Config Def  = 1./8. !toutes les 3h
1968    !Config Help =
1969    !
1970    ecrit_hf_omp = 1./8.
[2702]1971    CALL getin('ecrit_hf',ecrit_hf_omp)
[1938]1972    !
1973    !Config Key  = ecrit_ins
1974    !Config Desc =
1975    !Config Def  = 1./48. ! toutes les 1/2 h
1976    !Config Help =
1977    !
1978    ecrit_ins_omp = 1./48.
[2702]1979    CALL getin('ecrit_ins',ecrit_ins_omp)
[1938]1980    !
1981    !Config Key  = ecrit_day
1982    !Config Desc =
1983    !Config Def  = 1.0 !tous les jours
1984    !Config Help = nombre de jours pour ecriture fichier histday.nc
1985    !
1986    ecrit_day_omp = 1.0
[2702]1987    CALL getin('ecrit_day',ecrit_day_omp)
[1938]1988    !
1989    !Config Key  = ecrit_mth
1990    !Config Desc =
1991    !Config Def  = 30. !tous les 30jours (1 fois par mois)
1992    !Config Help =
1993    !
1994    ecrit_mth_omp = 30.
[2702]1995    CALL getin('ecrit_mth',ecrit_mth_omp)
[1938]1996    !
1997    !Config Key  = ecrit_tra
1998    !Config Desc =
1999    !Config Def  = 30. !tous les 30jours (1 fois par mois)
2000    !Config Help =
2001    !
2002    ecrit_tra_omp = 0.
[2702]2003    CALL getin('ecrit_tra',ecrit_tra_omp)
[1938]2004    !
2005    !Config Key  = ecrit_reg
2006    !Config Desc =
2007    !Config Def  = 0.25  !4 fois par jour
2008    !Config Help =
2009    !
2010    ecrit_reg_omp = 0.25   !4 fois par jour
[2702]2011    CALL getin('ecrit_reg',ecrit_reg_omp)
[1938]2012    !
2013    !
[2240]2014    print*,'CONFPHYS OOK avant drag_ter'
[1938]2015    !
2016    ! PARAMETRES CDRAG
2017    !
2018    f_cdrag_ter_omp = 0.8
[2702]2019    CALL getin('f_cdrag_ter',f_cdrag_ter_omp)
[1938]2020    !
2021    f_cdrag_oce_omp = 0.8
[2702]2022    CALL getin('f_cdrag_oce',f_cdrag_oce_omp)
[1938]2023    !
[2240]2024
[2357]2025    ! Gustiness flags
[2254]2026    f_z0qh_oce_omp = 1.
[2702]2027    CALL getin('f_z0qh_oce',f_z0qh_oce_omp)
[2254]2028    !
[2240]2029    f_qsat_oce_omp = 1.
[2702]2030    CALL getin('f_qsat_oce',f_qsat_oce_omp)
[2240]2031    !
2032    f_gust_bl_omp = 0.
[2702]2033    CALL getin('f_gust_bl',f_gust_bl_omp)
[2240]2034    !
2035    f_gust_wk_omp = 0.
[2702]2036    CALL getin('f_gust_wk',f_gust_wk_omp)
[2240]2037    !
[2455]2038    !Config Key  = iflag_z0_oce
2039    !Config Desc = 0 (z0h=z0m), 1 (diff. equ. for z0h and z0m), -1 (z0m=z0h=z0min)
2040    !Config Def  = 0   ! z0h = z0m
2041    !Config Help =
2042    !
[2243]2043    iflag_z0_oce_omp=0
[2702]2044    CALL getin('iflag_z0_oce',iflag_z0_oce_omp)
[2243]2045    !
[2240]2046    iflag_gusts_omp=0
[2702]2047    CALL getin('iflag_gusts',iflag_gusts_omp)
[2240]2048    !
2049    min_wind_speed_omp = 1.
[2702]2050    CALL getin('min_wind_speed',min_wind_speed_omp)
[2240]2051
[2702]2052    z0m_seaice_omp = 0.002 ; CALL getin('z0m_seaice',z0m_seaice_omp)
2053    z0h_seaice_omp = 0.002 ; CALL getin('z0h_seaice',z0h_seaice_omp)
[2243]2054
[1938]2055    f_rugoro_omp = 0.
[2702]2056    CALL getin('f_rugoro',f_rugoro_omp)
[1687]2057
[2243]2058    z0min_omp = 0.000015
[2702]2059    CALL getin('z0min',z0min_omp)
[2243]2060
2061
[1938]2062    ! PARAMETERS FOR CONVECTIVE INHIBITION BY TROPOS. DRYNESS
2063    !
2064    !Config Key  = supcrit1
2065    !Config Desc =
2066    !Config Def  = .540
2067    !Config Help =
2068    !
2069    supcrit1_omp = .540
[2702]2070    CALL getin('supcrit1',supcrit1_omp)
[1687]2071
[1938]2072    !
2073    !Config Key  = supcrit2
2074    !Config Desc =
2075    !Config Def  = .600
2076    !Config Help =
2077    !
2078    supcrit2_omp = .600
[2702]2079    CALL getin('supcrit2',supcrit2_omp)
[1687]2080
[1938]2081    !
2082    ! PARAMETERS FOR THE MIXING DISTRIBUTION
2083    ! iflag_mix: 0=OLD,
2084    !            1=NEW (JYG),           
2085    !            2=NEW + conv. depth inhib. by tropos. dryness
2086    ! '2' is NOT operationnal and should not be used.
2087    !
2088    !Config Key  = iflag_mix
2089    !Config Desc =
2090    !Config Def  = 1
2091    !Config Help =
2092    !
2093    iflag_mix_omp = 1
[2702]2094    CALL getin('iflag_mix',iflag_mix_omp)
[1687]2095
[2420]2096!
2097    ! PARAMETERS FOR THE EROSION OF THE ADIABATIC ASCENTS
2098    ! iflag_mix_adiab: 0=OLD,
2099    !                  1=NEW (CR),           
2100    !           
[1938]2101    !
[2420]2102    !Config Key  = iflag_mix_adiab
2103    !Config Desc =
2104    !Config Def  = 1
2105    !Config Help =
2106    !
2107    iflag_mix_adiab_omp = 0
[2702]2108    CALL getin('iflag_mix_adiab',iflag_mix_adiab_omp)
[2420]2109
2110    !
[1938]2111    !Config Key  = scut
2112    !Config Desc =
2113    !Config Def  = 0.95
2114    !Config Help =
2115    !
2116    scut_omp = 0.95
[2702]2117    CALL getin('scut',scut_omp)
[1687]2118
[1938]2119    !
2120    !Config Key  = qqa1
2121    !Config Desc =
2122    !Config Def  = 1.0
2123    !Config Help =
2124    !
2125    qqa1_omp = 1.0
[2702]2126    CALL getin('qqa1',qqa1_omp)
[1687]2127
[1938]2128    !
2129    !Config Key  = qqa2
2130    !Config Desc =
2131    !Config Def  = 0.0
2132    !Config Help =
2133    !
2134    qqa2_omp = 0.0
[2702]2135    CALL getin('qqa2',qqa2_omp)
[1687]2136
[1938]2137    !
2138    !Config Key  = gammas
2139    !Config Desc =
2140    !Config Def  = 0.05
2141    !Config Help =
2142    !
2143    gammas_omp = 0.05
[2702]2144    CALL getin('gammas',gammas_omp)
[1687]2145
[1938]2146    !
2147    !Config Key  = Fmax
2148    !Config Desc =
2149    !Config Def  = 0.65
2150    !Config Help =
2151    !
2152    Fmax_omp = 0.65
[2702]2153    CALL getin('Fmax',Fmax_omp)
[1687]2154
[1938]2155    !
[2287]2156    !Config Key  = tmax_fonte_cv
2157    !Config Desc =
2158    !Config Def  = 275.15
2159    !Config Help =
2160    !
2161    tmax_fonte_cv_omp = 275.15
[2702]2162    CALL getin('tmax_fonte_cv',tmax_fonte_cv_omp)
[2287]2163
2164    !
[1938]2165    !Config Key  = alphas 
2166    !Config Desc =
2167    !Config Def  = -5.
2168    !Config Help =
2169    !
2170    alphas_omp = -5.
[2702]2171    CALL getin('alphas',alphas_omp)
[1687]2172
[1938]2173    !Config key = ok_strato
2174    !Config  Desc = activation de la version strato
2175    !Config  Def  = .FALSE.
[2110]2176    !Config  Help = active la version stratosph\'erique de LMDZ de F. Lott
[2357]2177    !               Et la sponge layer (Runs Stratospheriques)
[1687]2178
[1938]2179    ok_strato_omp=.FALSE.
2180    CALL getin('ok_strato',ok_strato_omp)
[1687]2181
[1938]2182    !Config  key = ok_hines
2183    !Config  Desc = activation de la parametrisation de hines
2184    !Config  Def  = .FALSE.
2185    !Config  Help = Clefs controlant la parametrization de Hines
[1687]2186
[1938]2187    ok_hines_omp=.FALSE.
2188    CALL getin('ok_hines',ok_hines_omp)
[1687]2189
[2357]2190    !  Parametres pour les ondes de gravite
2191    ! 
2192    !  Subgrid Scale Orography (Lott Miller (1997), Lott (1999))
2193
2194    sso_gkdrag_omp = merge(0.1875, 0.2, ok_strato_omp)
2195    CALL getin('sso_gkdrag', sso_gkdrag_omp)
2196
2197    sso_grahil_omp=merge(0.1,1.,ok_strato_omp)
2198    CALL getin('sso_grahil', sso_grahil_omp)
2199
2200    sso_grcrit_omp =merge(1.,0.01,ok_strato_omp)
2201    CALL getin('sso_grcrit', sso_grcrit_omp)
2202
2203    sso_gfrcri_omp = 1.
2204    CALL getin('sso_gfrcri', sso_gfrcri_omp)
2205
2206    sso_gkwake_omp = 0.50
2207    CALL getin('sso_gkwake', sso_gkwake_omp)
2208
2209    sso_gklift_omp = merge(0.25,0.50,ok_strato_omp)
2210    CALL getin('sso_gklift', sso_gklift_omp)
2211
[1938]2212    ! Random gravity waves:
[1687]2213
[1938]2214    ok_gwd_rando_omp = .FALSE.
[2179]2215    IF ( klon_glo == 1 ) THEN
2216       print*,'La parametrisation des ondes de gravites non orographiques'
2217       print*,'ne fonctionne pas en 1D'
2218    ELSE
2219       CALL getin('ok_gwd_rando', ok_gwd_rando_omp)
2220    ENDIF
[1687]2221
[2357]2222    gwd_rando_ruwmax_omp = 2.00
2223    CALL getin('gwd_rando_ruwmax', gwd_rando_ruwmax_omp)
[1687]2224
[2072]2225    gwd_rando_sat_omp = 0.25
2226    CALL getin('gwd_rando_sat', gwd_rando_sat_omp)
[1938]2227
[2357]2228    gwd_front_ruwmax_omp = 2.50
2229    CALL getin('gwd_front_ruwmax', gwd_front_ruwmax_omp)
2230
2231    gwd_front_sat_omp = 0.60
2232    CALL getin('gwd_front_sat', gwd_front_sat_omp)
2233
2234
[2136]2235    !Config  key = ok_qch4
2236    !Config  Desc = activation de la parametrisation du methane
2237    !Config  Def  = .FALSE.
2238    !Config  Help = Clef controlant l'activation de la parametrisation
2239    !               de l'humidite due a oxydation+photolyse du methane strato
2240
2241    ok_qch4_omp=.FALSE.
2242    CALL getin('ok_qch4',ok_qch4_omp)
2243
[1938]2244    !Config Key  = OK_LES                                               
2245    !Config Desc = Pour des sorties LES                                 
[2702]2246    !Config Def  = .FALSE.                                             
[1938]2247    !Config Help = Pour creer le fichier histLES contenant les sorties 
2248    !              LES                                                 
2249    !                                                                   
[2702]2250    ok_LES_omp = .FALSE.                                             
2251    CALL getin('OK_LES', ok_LES_omp)                                 
[1938]2252
2253    !Config Key  = callstats                                               
2254    !Config Desc = Pour des sorties callstats                                 
[2702]2255    !Config Def  = .FALSE.                                             
[1938]2256    !Config Help = Pour creer le fichier stats contenant les sorties 
2257    !              stats                                                 
2258    !                                                                   
[2702]2259    callstats_omp = .FALSE.                                             
2260    CALL getin('callstats', callstats_omp)                                 
[1938]2261    !
2262    !Config Key  = ecrit_LES
2263    !Config Desc = Frequence d'ecriture des resultats du LES en nombre de jours;
2264    !              par defaut 1., i.e. 1 jour
2265    !Config Def  = 1./8.
2266    !Config Help = ...
2267    !
2268    !
[2788]2269    adjust_tropopause = .FALSE.
2270    CALL getin('adjust_tropopause', adjust_tropopause_omp)
2271    !
2272    !Config Key  = adjust_tropopause
2273    !Config Desc = Adjust the ozone field from the climoz file by stretching its
2274    !              tropopause so that it matches the one of LMDZ.
2275    !Config Def  = .FALSE.
2276    !Config Help = Ensure tropospheric ozone column conservation.
2277    !
2278    !
[2820]2279    ok_daily_climoz = .FALSE.
[2788]2280    CALL getin('ok_daily_climoz', ok_daily_climoz_omp)
2281    !
2282    !Config Key  = ok_daily_climoz
2283    !Config Desc = Interpolate in time the ozone forcings within ce0l.
2284    !              .TRUE. if backward compatibility is needed.
2285    !Config Def  = .TRUE.
2286    !Config Help = .FALSE. ensure much fewer (no calendar dependency)
2287    !  and lighter monthly climoz files, inetrpolated in time at gcm run time.
2288    !
[1938]2289    ecrit_LES_omp = 1./8.
[2702]2290    CALL getin('ecrit_LES', ecrit_LES_omp)
[1938]2291    !
2292    read_climoz = 0 ! default value
[2702]2293    CALL getin('read_climoz', read_climoz)
[1938]2294
2295    carbon_cycle_tr_omp=.FALSE.
2296    CALL getin('carbon_cycle_tr',carbon_cycle_tr_omp)
2297
2298    carbon_cycle_cpl_omp=.FALSE.
2299    CALL getin('carbon_cycle_cpl',carbon_cycle_cpl_omp)
2300
[3447]2301    carbon_cycle_rad_omp=.FALSE.
2302    CALL getin('carbon_cycle_rad',carbon_cycle_rad_omp)
2303
[3900]2304    ! >> PC
[3384]2305    ! level_coupling_esm : level of coupling of the biogeochemical fields between LMDZ, ORCHIDEE and NEMO
2306    ! Definitions of level_coupling_esm in physiq.def
2307    ! level_coupling_esm = 0  ! No field exchange between LMDZ and ORCHIDEE models
2308    !                         ! No field exchange between LMDZ and NEMO
2309    ! level_coupling_esm = 1  ! Field exchange between LMDZ and ORCHIDEE models
2310    !                         ! No field exchange between LMDZ and NEMO models
2311    ! level_coupling_esm = 2  ! No field exchange between LMDZ and ORCHIDEE models
2312    !                         ! Field exchange between LMDZ and NEMO models
2313    ! level_coupling_esm = 3  ! Field exchange between LMDZ and ORCHIDEE models
2314    !                         ! Field exchange between LMDZ and NEMO models
2315    level_coupling_esm_omp=0 ! default value
2316    CALL getin('level_coupling_esm',level_coupling_esm_omp)
[3900]2317    ! << PC
[3384]2318
[1938]2319    !$OMP END MASTER
2320    !$OMP BARRIER
2321
[1687]2322    R_ecc = R_ecc_omp
2323    R_peri = R_peri_omp
2324    R_incl = R_incl_omp
2325    solaire = solaire_omp
[2524]2326    ok_suntime_rrtm = ok_suntime_rrtm_omp
[1687]2327    co2_ppm = co2_ppm_omp
2328    RCO2 = RCO2_omp
2329    CH4_ppb = CH4_ppb_omp
2330    RCH4 = RCH4_omp
2331    N2O_ppb = N2O_ppb_omp
2332    RN2O = RN2O_omp
2333    CFC11_ppt = CFC11_ppt_omp
2334    RCFC11 = RCFC11_omp
2335    CFC12_ppt = CFC12_ppt_omp
2336    RCFC12 = RCFC12_omp
2337    RCO2_act = RCO2
2338    RCH4_act = RCH4
2339    RN2O_act = RN2O
2340    RCFC11_act = RCFC11
2341    RCFC12_act = RCFC12
2342    RCO2_per = RCO2_per_omp
2343    RCH4_per = RCH4_per_omp
2344    RN2O_per = RN2O_per_omp
2345    RCFC11_per = RCFC11_per_omp
2346    RCFC12_per = RCFC12_per_omp
[1938]2347
[3317]2348    iflag_cycle_diurne = iflag_cycle_diurne_omp
[1687]2349    soil_model = soil_model_omp
2350    new_oliq = new_oliq_omp
2351    ok_orodr = ok_orodr_omp
2352    ok_orolf = ok_orolf_omp
2353    ok_limitvrai = ok_limitvrai_omp
2354    nbapp_rad = nbapp_rad_omp
2355    iflag_con = iflag_con_omp
[2707]2356    nbapp_cv = nbapp_cv_omp
[2730]2357    nbapp_wk = nbapp_wk_omp
[1753]2358    iflag_ener_conserv = iflag_ener_conserv_omp
[2007]2359    ok_conserv_q = ok_conserv_q_omp
[1894]2360    iflag_fisrtilp_qsat = iflag_fisrtilp_qsat_omp
[2415]2361    iflag_bergeron = iflag_bergeron_omp
[1687]2362
2363    epmax = epmax_omp
[2481]2364    coef_epmax_cape = coef_epmax_cape_omp
[1687]2365    ok_adj_ema = ok_adj_ema_omp
2366    iflag_clw = iflag_clw_omp
2367    cld_lc_lsc = cld_lc_lsc_omp
2368    cld_lc_con = cld_lc_con_omp
2369    cld_tau_lsc = cld_tau_lsc_omp
2370    cld_tau_con = cld_tau_con_omp
2371    ffallv_lsc = ffallv_lsc_omp
2372    ffallv_con = ffallv_con_omp
2373    coef_eva = coef_eva_omp
2374    reevap_ice = reevap_ice_omp
2375    iflag_pdf = iflag_pdf_omp
2376    solarlong0 = solarlong0_omp
2377    qsol0 = qsol0_omp
[1894]2378    evap0 = evap0_omp
2379    albsno0 = albsno0_omp
[2915]2380    iflag_sic = iflag_sic_omp
[1687]2381    inertie_sol = inertie_sol_omp
[2915]2382    inertie_sic = inertie_sic_omp
2383    inertie_lic = inertie_lic_omp
[1687]2384    inertie_sno = inertie_sno_omp
2385    rad_froid = rad_froid_omp
2386    rad_chau1 = rad_chau1_omp
2387    rad_chau2 = rad_chau2_omp
2388    t_glace_min = t_glace_min_omp
2389    t_glace_max = t_glace_max_omp
[2006]2390    exposant_glace = exposant_glace_omp
2391    iflag_t_glace = iflag_t_glace_omp
[2547]2392    iflag_cloudth_vert=iflag_cloudth_vert_omp
[2945]2393    iflag_rain_incloud_vol=iflag_rain_incloud_vol_omp
[1849]2394    iflag_ice_thermo = iflag_ice_thermo_omp
[1687]2395    rei_min = rei_min_omp
2396    rei_max = rei_max_omp
2397    top_height = top_height_omp
2398    overlap = overlap_omp
2399    cdmmax = cdmmax_omp
2400    cdhmax = cdhmax_omp
2401    ksta = ksta_omp
2402    ksta_ter = ksta_ter_omp
[2126]2403    f_ri_cd_min = f_ri_cd_min_omp
[1687]2404    ok_kzmin = ok_kzmin_omp
[2561]2405    pbl_lmixmin_alpha=pbl_lmixmin_alpha_omp
[1687]2406    fmagic = fmagic_omp
2407    pmagic = pmagic_omp
2408    iflag_pbl = iflag_pbl_omp
[2159]2409    iflag_pbl_split = iflag_pbl_split_omp
[2952]2410!FC
2411    ifl_pbltree = ifl_pbltree_omp
2412    Cd_frein    =Cd_frein_omp
[2455]2413    iflag_order2_sollw = iflag_order2_sollw_omp
[1687]2414    lev_histhf = lev_histhf_omp
2415    lev_histday = lev_histday_omp
2416    lev_histmth = lev_histmth_omp
2417    lev_histins = lev_histins_omp
2418    lev_histLES = lev_histLES_omp
2419    lev_histdayNMC = lev_histdayNMC_omp
[1828]2420    levout_histNMC = levout_histNMC_omp
[1687]2421    ok_histNMC(:) = ok_histNMC_omp(:)
2422    freq_outNMC(:) = freq_outNMC_omp(:)
2423    freq_calNMC(:) = freq_calNMC_omp(:)
2424
2425    type_ocean = type_ocean_omp
2426    version_ocean = version_ocean_omp
[2075]2427    t_coupl = t_coupl_omp
[1724]2428
[2702]2429    ok_veget=.TRUE.
[1724]2430    type_veget=type_veget_omp
[2702]2431    IF (type_veget=='n' .or. type_veget=='bucket' .or. type_veget=='betaclim') THEN
2432       ok_veget=.FALSE.
2433    ENDIF
[3900]2434    ! INLANDSIS
[3792]2435    !=================================================
2436    landice_opt = landice_opt_omp
2437    iflag_tsurf_inlandsis = iflag_tsurf_inlandsis_omp
[3900]2438    iflag_temp_inlandsis = iflag_temp_inlandsis_omp
2439    iflag_albcalc = iflag_albcalc_omp
[3792]2440    SnoMod=SnoMod_omp
2441    BloMod=BloMod_omp
2442    ok_outfor=ok_outfor_omp
[3900]2443    is_ok_slush=is_ok_slush_omp
2444    opt_runoff_ac=opt_runoff_ac_omp
2445    is_ok_z0h_rn=is_ok_z0h_rn_omp
2446    is_ok_density_kotlyakov=is_ok_density_kotlyakov_omp
2447    prescribed_z0m_snow=prescribed_z0m_snow_omp
2448    correc_alb=correc_alb_omp
2449    iflag_z0m_snow=iflag_z0m_snow_omp
2450    ok_zsn_ii=ok_zsn_ii_omp
2451    discret_xf=discret_xf_omp
2452    buf_sph_pol=buf_sph_pol_omp
2453    buf_siz_pol=buf_siz_pol_omp
[3792]2454    !=================================================
[2114]2455    ok_all_xml = ok_all_xml_omp
[3048]2456    ok_lwoff = ok_lwoff_omp
[1687]2457    ok_newmicro = ok_newmicro_omp
2458    ok_journe = ok_journe_omp
2459    ok_hf = ok_hf_omp
2460    ok_mensuel = ok_mensuel_omp
2461    ok_instan = ok_instan_omp
2462    freq_ISCCP = freq_ISCCP_omp
2463    ecrit_ISCCP = ecrit_ISCCP_omp
2464    freq_COSP = freq_COSP_omp
[2580]2465    freq_AIRS = freq_AIRS_omp
[1687]2466    ok_ade = ok_ade_omp
2467    ok_aie = ok_aie_omp
[2738]2468    ok_alw = ok_alw_omp
[1712]2469    ok_cdnc = ok_cdnc_omp
[3479]2470    ok_volcan = ok_volcan_omp
[1687]2471    aerosol_couple = aerosol_couple_omp
[3338]2472    chemistry_couple = chemistry_couple_omp
[1687]2473    flag_aerosol=flag_aerosol_omp
[1764]2474    flag_aerosol_strat=flag_aerosol_strat_omp
[3412]2475    flag_aer_feedback=flag_aer_feedback_omp
[2644]2476    flag_bc_internal_mixture=flag_bc_internal_mixture_omp
[1687]2477    aer_type = aer_type_omp
2478    bl95_b0 = bl95_b0_omp
2479    bl95_b1 = bl95_b1_omp
2480    fact_cldcon = fact_cldcon_omp
2481    facttemps = facttemps_omp
2482    ratqsbas = ratqsbas_omp
2483    ratqshaut = ratqshaut_omp
2484    tau_ratqs = tau_ratqs_omp
2485
2486    iflag_radia = iflag_radia_omp
2487    iflag_rrtm = iflag_rrtm_omp
[2305]2488    iflag_albedo = iflag_albedo_omp
2489    ok_chlorophyll = ok_chlorophyll_omp
[1989]2490    NSW = NSW_omp
[2236]2491    iflag_cld_th = iflag_cld_th_omp
[2205]2492    iflag_cld_cv = iflag_cld_cv_omp
2493    tau_cld_cv = tau_cld_cv_omp
2494    coefw_cld_cv = coefw_cld_cv_omp
[1687]2495    iflag_ratqs = iflag_ratqs_omp
2496    ip_ebil_phy = ip_ebil_phy_omp
2497    iflag_thermals = iflag_thermals_omp
2498    iflag_thermals_ed = iflag_thermals_ed_omp
[2000]2499    fact_thermals_ed_dz = fact_thermals_ed_dz_omp
[1687]2500    iflag_thermals_optflux = iflag_thermals_optflux_omp
[1998]2501    iflag_thermals_closure = iflag_thermals_closure_omp
[1687]2502    nsplit_thermals = nsplit_thermals_omp
2503    tau_thermals = tau_thermals_omp
2504    alp_bl_k = alp_bl_k_omp
[1938]2505    ! nrlmd le 10/04/2012
[1687]2506    iflag_trig_bl = iflag_trig_bl_omp
2507    s_trig = s_trig_omp
2508    tau_trig_shallow = tau_trig_shallow_omp
2509    tau_trig_deep = tau_trig_deep_omp
2510    iflag_clos_bl = iflag_clos_bl_omp
[1938]2511    ! fin nrlmd le 10/04/2012
[1687]2512    iflag_coupl = iflag_coupl_omp
2513    iflag_clos = iflag_clos_omp
2514    iflag_wake = iflag_wake_omp
[2201]2515    coef_clos_ls = coef_clos_ls_omp
[1687]2516    alp_offset = alp_offset_omp
2517    iflag_cvl_sigd = iflag_cvl_sigd_omp
2518    type_run = type_run_omp
2519    ok_cosp = ok_cosp_omp
[2580]2520    ok_airs = ok_airs_omp
2521
[1687]2522    ok_mensuelCOSP = ok_mensuelCOSP_omp
2523    ok_journeCOSP = ok_journeCOSP_omp
2524    ok_hfCOSP = ok_hfCOSP_omp
2525    seuil_inversion=seuil_inversion_omp
2526    lonmin_ins = lonmin_ins_omp
2527    lonmax_ins = lonmax_ins_omp
2528    latmin_ins = latmin_ins_omp
2529    latmax_ins = latmax_ins_omp
2530    ecrit_hf   = ecrit_hf_omp
2531    ecrit_ins   = ecrit_ins_omp
2532    ecrit_day = ecrit_day_omp
2533    ecrit_mth = ecrit_mth_omp
2534    ecrit_tra = ecrit_tra_omp
2535    ecrit_reg = ecrit_reg_omp
[2253]2536    cvl_comp_threshold = cvl_comp_threshold_omp
2537    cvl_sig2feed = cvl_sig2feed_omp
[1687]2538    cvl_corr = cvl_corr_omp
2539    ok_lic_melt = ok_lic_melt_omp
[3053]2540    ok_lic_cond = ok_lic_cond_omp
[1687]2541    f_cdrag_ter=f_cdrag_ter_omp
2542    f_cdrag_oce=f_cdrag_oce_omp
[2240]2543
2544    f_gust_wk=f_gust_wk_omp
2545    f_gust_bl=f_gust_bl_omp
2546    f_qsat_oce=f_qsat_oce_omp
[2254]2547    f_z0qh_oce=f_z0qh_oce_omp
[2240]2548    min_wind_speed=min_wind_speed_omp
2549    iflag_gusts=iflag_gusts_omp
[2243]2550    iflag_z0_oce=iflag_z0_oce_omp
[2240]2551
[2243]2552    z0m_seaice=z0m_seaice_omp
2553    z0h_seaice=z0h_seaice_omp
2554
[1687]2555    f_rugoro=f_rugoro_omp
[2243]2556
2557    z0min=z0min_omp
[1687]2558    supcrit1 = supcrit1_omp
2559    supcrit2 = supcrit2_omp
2560    iflag_mix = iflag_mix_omp
[2420]2561    iflag_mix_adiab = iflag_mix_adiab_omp
[1687]2562    scut = scut_omp
2563    qqa1 = qqa1_omp
2564    qqa2 = qqa2_omp
2565    gammas = gammas_omp
2566    Fmax = Fmax_omp
[2287]2567    tmax_fonte_cv = tmax_fonte_cv_omp
[1687]2568    alphas = alphas_omp
[2357]2569
2570    gkdrag=sso_gkdrag_omp
2571    grahilo=sso_grahil_omp
2572    grcrit=sso_grcrit_omp
2573    gfrcrit=sso_gfrcri_omp
2574    gkwake=sso_gkwake_omp
2575    gklift=sso_gklift_omp
2576
[1687]2577    ok_strato = ok_strato_omp
2578    ok_hines = ok_hines_omp
[1938]2579    ok_gwd_rando = ok_gwd_rando_omp
[2357]2580    gwd_rando_ruwmax = gwd_rando_ruwmax_omp
[2072]2581    gwd_rando_sat = gwd_rando_sat_omp
[2357]2582    gwd_front_ruwmax = gwd_front_ruwmax_omp
2583    gwd_front_sat = gwd_front_sat_omp
[2136]2584    ok_qch4 = ok_qch4_omp
[1687]2585    ok_LES = ok_LES_omp
2586    callstats = callstats_omp
2587    ecrit_LES = ecrit_LES_omp
[2788]2588    adjust_tropopause = adjust_tropopause_omp
2589    ok_daily_climoz = ok_daily_climoz_omp
[1687]2590    carbon_cycle_tr = carbon_cycle_tr_omp
2591    carbon_cycle_cpl = carbon_cycle_cpl_omp
[3447]2592    carbon_cycle_rad = carbon_cycle_rad_omp
[3384]2593    level_coupling_esm = level_coupling_esm_omp
[1687]2594
[1938]2595    ! Test of coherence between type_ocean and version_ocean
[1687]2596    IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN
2597       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration'
[2311]2598       CALL abort_physic('conf_phys','version_ocean not valid',1)
[2702]2599    ENDIF
[1687]2600
2601    IF (type_ocean=='slab' .AND. version_ocean=='xxxxxx') THEN
2602       version_ocean='sicOBS'
[2057]2603    ELSE IF (type_ocean=='slab' .AND. version_ocean/='sicOBS' &
[2357]2604         .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN
[1687]2605       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean'
[2311]2606       CALL abort_physic('conf_phys','version_ocean not valid',1)
[2702]2607    ENDIF
[1687]2608
[2413]2609    !--test on radiative scheme
2610    IF (iflag_rrtm .EQ. 0) THEN
2611      IF (NSW.NE.2) THEN
2612        WRITE(lunout,*) ' ERROR iflag_rrtm=0 and NSW<>2 not possible'
2613        CALL abort_physic('conf_phys','choice NSW not valid',1)
2614      ENDIF
2615    ELSE IF (iflag_rrtm .EQ. 1) THEN
2616      IF (NSW.NE.2.AND.NSW.NE.4.AND.NSW.NE.6) THEN
2617        WRITE(lunout,*) ' ERROR iflag_rrtm=1 and NSW<>2,4,6 not possible'
2618        CALL abort_physic('conf_phys','choice NSW not valid',1)
2619      ENDIF
[3908]2620   ELSE IF (iflag_rrtm .EQ. 2) THEN
2621      IF (NSW.NE.2.AND.NSW.NE.4.AND.NSW.NE.6) THEN
2622        WRITE(lunout,*) ' ERROR iflag_rrtm=1 and NSW<>2,4,6 not possible'
2623        CALL abort_physic('conf_phys','choice NSW not valid',1)
2624      ENDIF
[2413]2625    ELSE
2626       WRITE(lunout,*) ' ERROR iflag_rrtm<>0,1'
2627       CALL abort_physic('conf_phys','choice iflag_rrtm not valid',1)
2628    ENDIF
[3378]2629    !--here we test that solaire has not been changed if ok_suntime_rrtm is activated
[3420]2630!    IF (ok_suntime_rrtm.AND.ABS(solaire-solaire_omp_init).GT.1.E-7) THEN
2631!       WRITE(lunout,*) ' ERROR ok_suntime_rrtm=y and solaire is provided in def file'
2632!       CALL abort_physic('conf_phys','ok_suntime_rrtm=y and solaire is provided',1)
2633!    ENDIF
[2701]2634#ifdef CPP_StratAer
2635    IF (iflag_rrtm .NE. 1) THEN
2636       WRITE(lunout,*) ' ERROR iflag_rrtm<>1 but StratAer activated'
2637       CALL abort_physic('conf_phys','iflag_rrtm not valid for StratAer',1)
2638    ENDIF
[2702]2639    IF (NSW .NE. 6) THEN
2640       WRITE(lunout,*) ' ERROR NSW<>6 but StratAer activated'
2641       CALL abort_physic('conf_phys','NSW not valid for StratAer',1)
2642    ENDIF
[2701]2643#endif
[2413]2644
2645    !--test on ocean surface albedo
[3002]2646    IF (iflag_albedo.LT.0.OR.iflag_albedo.GT.2) THEN
[2413]2647       WRITE(lunout,*) ' ERROR iflag_albedo<>0,1'
2648       CALL abort_physic('conf_phys','choice iflag_albedo not valid',1)
2649    ENDIF
2650
[3789]2651    ! Flag_aerosol cannot be set to zero if aerosol direct effect (ade) or aerosol indirect effect (aie) are activated
[1687]2652    IF (ok_ade .OR. ok_aie) THEN
2653       IF ( flag_aerosol .EQ. 0 ) THEN
[2311]2654          CALL abort_physic('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)
[2702]2655       ENDIF
2656    ENDIF
[1687]2657
[3789]2658    ! Flag_aerosol cannot be set to zero if we are in coupled mode for aerosol
[3274]2659    IF (aerosol_couple .AND. flag_aerosol .EQ. 0 ) THEN
[2456]2660       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if aerosol_couple=y ', 1)
2661    ENDIF
2662
[3789]2663    ! Read_climoz needs to be set zero if we are in couple mode for chemistry
[3338]2664    IF (chemistry_couple .AND. read_climoz .ne. 0) THEN
2665       CALL abort_physic('conf_phys', 'read_climoz need to be to zero if chemistry_couple=y ', 1)
2666    ENDIF
2667
[2456]2668    ! flag_aerosol need to be different to zero if ok_cdnc is activated
[3274]2669    IF (ok_cdnc .AND. flag_aerosol .EQ. 0) THEN
[2456]2670       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if ok_cdnc is activated ', 1)
2671    ENDIF
2672
[1938]2673    ! ok_cdnc must be set to y if ok_aie is activated
[1712]2674    IF (ok_aie .AND. .NOT. ok_cdnc) THEN
[2311]2675       CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)
[1938]2676    ENDIF
[1712]2677
[3274]2678    ! flag_aerosol=7 => MACv2SP climatology
2679    IF (flag_aerosol.EQ.7.AND. iflag_rrtm.NE.1) THEN
2680       CALL abort_physic('conf_phys', 'flag_aerosol=7 (MACv2SP) can only be activated with RRTM',1)
2681    ENDIF
2682    IF (flag_aerosol.EQ.7.AND. NSW.NE.6) THEN
2683       CALL abort_physic('conf_phys', 'flag_aerosol=7 (MACv2SP) can only be activated with NSW=6',1)
2684    ENDIF
2685
[2644]2686    ! BC internal mixture is only possible with RRTM & NSW=6 & flag_aerosol=6 or aerosol_couple
2687    IF (flag_bc_internal_mixture .AND. NSW.NE.6) THEN
2688       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with NSW=6',1)
2689    ENDIF
2690    IF (flag_bc_internal_mixture .AND. iflag_rrtm.NE.1) THEN
2691       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with RRTM',1)
2692    ENDIF
2693    IF (flag_bc_internal_mixture .AND. flag_aerosol.NE.6) THEN
2694       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with flag_aerosol=6',1)
2695    ENDIF
2696
[3447]2697    ! Test on carbon cycle
2698    IF (carbon_cycle_tr .AND. .NOT. carbon_cycle_cpl) THEN
2699       CALL abort_physic('conf_phys', 'carbon_cycle_cpl has to be TRUE if carbon_cycle_tr is on',1)
2700    ENDIF
2701    IF (carbon_cycle_rad .AND. .NOT. carbon_cycle_cpl) THEN
2702       CALL abort_physic('conf_phys', 'carbon_cycle_cpl has to be TRUE if carbon_cycle_rad is on',1)
2703    ENDIF
2704
[2952]2705    ! ORCHIDEE must be activated for ifl_pbltree=1
2706    IF (.NOT. ok_veget .AND. ifl_pbltree==1) THEN
[3137]2707       WRITE(lunout,*)'Warning: ORCHIDEE must be activated for ifl_pbltree=1'
2708       WRITE(lunout,*)'ifl_pbltree is now changed to zero'
2709       ifl_pbltree=0
[3384]2710    ENDIF
[2952]2711
[1938]2712    !$OMP MASTER
[1687]2713
[3384]2714    WRITE(lunout,*) ' ##############################################'
2715    WRITE(lunout,*) ' Configuration des parametres de la physique: '
2716    WRITE(lunout,*) ' Type ocean = ', type_ocean
2717    WRITE(lunout,*) ' Version ocean = ', version_ocean
2718    WRITE(lunout,*) ' Config veget = ', ok_veget,type_veget
[3792]2719    WRITE(lunout,*) ' Snow model landice : landice_opt = ', landice_opt
[3384]2720    WRITE(lunout,*) ' Config xml pour XIOS : ok_all_xml = ', ok_all_xml
2721    WRITE(lunout,*) ' Sortie journaliere = ', ok_journe
2722    WRITE(lunout,*) ' Sortie haute frequence = ', ok_hf
2723    WRITE(lunout,*) ' Sortie mensuelle = ', ok_mensuel
2724    WRITE(lunout,*) ' Sortie instantanee = ', ok_instan
2725    WRITE(lunout,*) ' Frequence appel simulateur ISCCP, freq_ISCCP =', freq_ISCCP
2726    WRITE(lunout,*) ' Frequence appel simulateur ISCCP, ecrit_ISCCP =', ecrit_ISCCP
2727    WRITE(lunout,*) ' Frequence appel simulateur COSP, freq_COSP =', freq_COSP
2728    WRITE(lunout,*) ' Frequence appel simulateur AIRS, freq_AIRS =', freq_AIRS
2729    WRITE(lunout,*) ' Sortie bilan d''energie, ip_ebil_phy =', ip_ebil_phy
2730    WRITE(lunout,*) ' Excentricite = ',R_ecc
2731    WRITE(lunout,*) ' Equinoxe = ',R_peri
2732    WRITE(lunout,*) ' Inclinaison =',R_incl
2733    WRITE(lunout,*) ' Constante solaire =',solaire
2734    WRITE(lunout,*) ' ok_suntime_rrtm =',ok_suntime_rrtm
2735    WRITE(lunout,*) ' co2_ppm =',co2_ppm
2736    WRITE(lunout,*) ' RCO2_act = ',RCO2_act
2737    WRITE(lunout,*) ' CH4_ppb =',CH4_ppb,' RCH4_act = ',RCH4_act
2738    WRITE(lunout,*) ' N2O_ppb =',N2O_ppb,' RN2O_act=  ',RN2O_act
2739    WRITE(lunout,*) ' CFC11_ppt=',CFC11_ppt,' RCFC11_act=  ',RCFC11_act
2740    WRITE(lunout,*) ' CFC12_ppt=',CFC12_ppt,' RCFC12_act=  ',RCFC12_act
2741    WRITE(lunout,*) ' RCO2_per = ',RCO2_per,' RCH4_per = ', RCH4_per
2742    WRITE(lunout,*) ' RN2O_per = ',RN2O_per,' RCFC11_per = ', RCFC11_per
2743    WRITE(lunout,*) ' RCFC12_per = ',RCFC12_per
2744    WRITE(lunout,*) ' cvl_comp_threshold=', cvl_comp_threshold
2745    WRITE(lunout,*) ' cvl_sig2feed=', cvl_sig2feed
2746    WRITE(lunout,*) ' cvl_corr=', cvl_corr
2747    WRITE(lunout,*) ' ok_lic_melt=', ok_lic_melt
2748    WRITE(lunout,*) ' ok_lic_cond=', ok_lic_cond
2749    WRITE(lunout,*) ' iflag_cycle_diurne=',iflag_cycle_diurne
2750    WRITE(lunout,*) ' soil_model=',soil_model
2751    WRITE(lunout,*) ' new_oliq=',new_oliq
2752    WRITE(lunout,*) ' ok_orodr=',ok_orodr
2753    WRITE(lunout,*) ' ok_orolf=',ok_orolf
2754    WRITE(lunout,*) ' ok_limitvrai=',ok_limitvrai
2755    WRITE(lunout,*) ' nbapp_rad=',nbapp_rad
2756    WRITE(lunout,*) ' iflag_con=',iflag_con
2757    WRITE(lunout,*) ' nbapp_cv=',nbapp_cv
2758    WRITE(lunout,*) ' nbapp_wk=',nbapp_wk
2759    WRITE(lunout,*) ' iflag_ener_conserv=',iflag_ener_conserv
2760    WRITE(lunout,*) ' ok_conserv_q=',ok_conserv_q
2761    WRITE(lunout,*) ' iflag_fisrtilp_qsat=',iflag_fisrtilp_qsat
2762    WRITE(lunout,*) ' iflag_bergeron=',iflag_bergeron
2763    WRITE(lunout,*) ' epmax = ', epmax
2764    WRITE(lunout,*) ' coef_epmax_cape = ', coef_epmax_cape
2765    WRITE(lunout,*) ' ok_adj_ema = ', ok_adj_ema
2766    WRITE(lunout,*) ' iflag_clw = ', iflag_clw
2767    WRITE(lunout,*) ' cld_lc_lsc = ', cld_lc_lsc
2768    WRITE(lunout,*) ' cld_lc_con = ', cld_lc_con
2769    WRITE(lunout,*) ' cld_tau_lsc = ', cld_tau_lsc
2770    WRITE(lunout,*) ' cld_tau_con = ', cld_tau_con
2771    WRITE(lunout,*) ' ffallv_lsc = ', ffallv_lsc
2772    WRITE(lunout,*) ' ffallv_con = ', ffallv_con
2773    WRITE(lunout,*) ' coef_eva = ', coef_eva
2774    WRITE(lunout,*) ' reevap_ice = ', reevap_ice
2775    WRITE(lunout,*) ' iflag_pdf = ', iflag_pdf
2776    WRITE(lunout,*) ' iflag_cld_th = ', iflag_cld_th
2777    WRITE(lunout,*) ' iflag_cld_cv = ', iflag_cld_cv
2778    WRITE(lunout,*) ' tau_cld_cv = ', tau_cld_cv
2779    WRITE(lunout,*) ' coefw_cld_cv = ', coefw_cld_cv
2780    WRITE(lunout,*) ' iflag_radia = ', iflag_radia
2781    WRITE(lunout,*) ' iflag_rrtm = ', iflag_rrtm
2782    WRITE(lunout,*) ' NSW = ', NSW
2783    WRITE(lunout,*) ' iflag_albedo = ', iflag_albedo !albedo SB
2784    WRITE(lunout,*) ' ok_chlorophyll =',ok_chlorophyll ! albedo SB
2785    WRITE(lunout,*) ' iflag_ratqs = ', iflag_ratqs
2786    WRITE(lunout,*) ' seuil_inversion = ', seuil_inversion
2787    WRITE(lunout,*) ' fact_cldcon = ', fact_cldcon
2788    WRITE(lunout,*) ' facttemps = ', facttemps
2789    WRITE(lunout,*) ' ok_newmicro = ',ok_newmicro
2790    WRITE(lunout,*) ' ratqsbas = ',ratqsbas
2791    WRITE(lunout,*) ' ratqshaut = ',ratqshaut
2792    WRITE(lunout,*) ' tau_ratqs = ',tau_ratqs
2793    WRITE(lunout,*) ' top_height = ',top_height
2794    WRITE(lunout,*) ' rad_froid = ',rad_froid
2795    WRITE(lunout,*) ' rad_chau1 = ',rad_chau1
2796    WRITE(lunout,*) ' rad_chau2 = ',rad_chau2
2797    WRITE(lunout,*) ' t_glace_min = ',t_glace_min
2798    WRITE(lunout,*) ' t_glace_max = ',t_glace_max
2799    WRITE(lunout,*) ' exposant_glace = ',exposant_glace
2800    WRITE(lunout,*) ' iflag_t_glace = ',iflag_t_glace
2801    WRITE(lunout,*) ' iflag_cloudth_vert = ',iflag_cloudth_vert
2802    WRITE(lunout,*) ' iflag_rain_incloud_vol = ',iflag_rain_incloud_vol
2803    WRITE(lunout,*) ' iflag_ice_thermo = ',iflag_ice_thermo
2804    WRITE(lunout,*) ' rei_min = ',rei_min
2805    WRITE(lunout,*) ' rei_max = ',rei_max
2806    WRITE(lunout,*) ' overlap = ',overlap
2807    WRITE(lunout,*) ' cdmmax = ',cdmmax
2808    WRITE(lunout,*) ' cdhmax = ',cdhmax
2809    WRITE(lunout,*) ' ksta = ',ksta
2810    WRITE(lunout,*) ' ksta_ter = ',ksta_ter
2811    WRITE(lunout,*) ' f_ri_cd_min = ',f_ri_cd_min
2812    WRITE(lunout,*) ' ok_kzmin = ',ok_kzmin
2813    WRITE(lunout,*) ' pbl_lmixmin_alpha = ',pbl_lmixmin_alpha
2814    WRITE(lunout,*) ' fmagic = ',fmagic
2815    WRITE(lunout,*) ' pmagic = ',pmagic
2816    WRITE(lunout,*) ' ok_ade = ',ok_ade
[3479]2817    WRITE(lunout,*) ' ok_volcan = ',ok_volcan
[3384]2818    WRITE(lunout,*) ' ok_aie = ',ok_aie
2819    WRITE(lunout,*) ' ok_alw = ',ok_alw
2820    WRITE(lunout,*) ' aerosol_couple = ', aerosol_couple
2821    WRITE(lunout,*) ' chemistry_couple = ', chemistry_couple
2822    WRITE(lunout,*) ' flag_aerosol = ', flag_aerosol
2823    WRITE(lunout,*) ' flag_aerosol_strat= ', flag_aerosol_strat
[3412]2824    WRITE(lunout,*) ' flag_aer_feedback= ', flag_aer_feedback
[3384]2825    WRITE(lunout,*) ' aer_type = ',aer_type
2826    WRITE(lunout,*) ' bl95_b0 = ',bl95_b0
2827    WRITE(lunout,*) ' bl95_b1 = ',bl95_b1
2828    WRITE(lunout,*) ' lev_histhf = ',lev_histhf
2829    WRITE(lunout,*) ' lev_histday = ',lev_histday
2830    WRITE(lunout,*) ' lev_histmth = ',lev_histmth
2831    WRITE(lunout,*) ' lev_histins = ',lev_histins
2832    WRITE(lunout,*) ' lev_histLES = ',lev_histLES
2833    WRITE(lunout,*) ' lev_histdayNMC = ',lev_histdayNMC
2834    WRITE(lunout,*) ' levout_histNMC = ',levout_histNMC
2835    WRITE(lunout,*) ' ok_histNMC = ',ok_histNMC
2836    WRITE(lunout,*) ' freq_outNMC = ',freq_outNMC
2837    WRITE(lunout,*) ' freq_calNMC = ',freq_calNMC
2838    WRITE(lunout,*) ' iflag_pbl = ', iflag_pbl
[2952]2839!FC
[3384]2840    WRITE(lunout,*) ' ifl_pbltree = ', ifl_pbltree
2841    WRITE(lunout,*) ' Cd_frein = ', Cd_frein
2842    WRITE(lunout,*) ' iflag_pbl_split = ', iflag_pbl_split
2843    WRITE(lunout,*) ' iflag_order2_sollw = ', iflag_order2_sollw
2844    WRITE(lunout,*) ' iflag_thermals = ', iflag_thermals
2845    WRITE(lunout,*) ' iflag_thermals_ed = ', iflag_thermals_ed
2846    WRITE(lunout,*) ' fact_thermals_ed_dz = ', fact_thermals_ed_dz
2847    WRITE(lunout,*) ' iflag_thermals_optflux = ', iflag_thermals_optflux
2848    WRITE(lunout,*) ' iflag_thermals_closure = ', iflag_thermals_closure
2849    WRITE(lunout,*) ' iflag_clos = ', iflag_clos
2850    WRITE(lunout,*) ' coef_clos_ls = ', coef_clos_ls
2851    WRITE(lunout,*) ' type_run = ',type_run
2852    WRITE(lunout,*) ' ok_cosp = ',ok_cosp
2853    WRITE(lunout,*) ' ok_airs = ',ok_airs
[2580]2854
[3384]2855    WRITE(lunout,*) ' ok_mensuelCOSP = ',ok_mensuelCOSP
2856    WRITE(lunout,*) ' ok_journeCOSP = ',ok_journeCOSP
2857    WRITE(lunout,*) ' ok_hfCOSP =',ok_hfCOSP
2858    WRITE(lunout,*) ' solarlong0 = ', solarlong0
2859    WRITE(lunout,*) ' qsol0 = ', qsol0
2860    WRITE(lunout,*) ' evap0 = ', evap0
2861    WRITE(lunout,*) ' albsno0 = ', albsno0
2862    WRITE(lunout,*) ' iflag_sic = ', iflag_sic
2863    WRITE(lunout,*) ' inertie_sol = ', inertie_sol
2864    WRITE(lunout,*) ' inertie_sic = ', inertie_sic
2865    WRITE(lunout,*) ' inertie_lic = ', inertie_lic
2866    WRITE(lunout,*) ' inertie_sno = ', inertie_sno
2867    WRITE(lunout,*) ' f_cdrag_ter = ',f_cdrag_ter
2868    WRITE(lunout,*) ' f_cdrag_oce = ',f_cdrag_oce
2869    WRITE(lunout,*) ' f_rugoro = ',f_rugoro
2870    WRITE(lunout,*) ' z0min = ',z0min
2871    WRITE(lunout,*) ' supcrit1 = ', supcrit1
2872    WRITE(lunout,*) ' supcrit2 = ', supcrit2
2873    WRITE(lunout,*) ' iflag_mix = ', iflag_mix
2874    WRITE(lunout,*) ' iflag_mix_adiab = ', iflag_mix_adiab
2875    WRITE(lunout,*) ' scut = ', scut
2876    WRITE(lunout,*) ' qqa1 = ', qqa1
2877    WRITE(lunout,*) ' qqa2 = ', qqa2
2878    WRITE(lunout,*) ' gammas = ', gammas
2879    WRITE(lunout,*) ' Fmax = ', Fmax
2880    WRITE(lunout,*) ' tmax_fonte_cv = ', tmax_fonte_cv
2881    WRITE(lunout,*) ' alphas = ', alphas
2882    WRITE(lunout,*) ' iflag_wake = ', iflag_wake
2883    WRITE(lunout,*) ' alp_offset = ', alp_offset
[1938]2884    ! nrlmd le 10/04/2012
[3384]2885    WRITE(lunout,*) ' iflag_trig_bl = ', iflag_trig_bl
2886    WRITE(lunout,*) ' s_trig = ', s_trig
2887    WRITE(lunout,*) ' tau_trig_shallow = ', tau_trig_shallow
2888    WRITE(lunout,*) ' tau_trig_deep = ', tau_trig_deep
2889    WRITE(lunout,*) ' iflag_clos_bl = ', iflag_clos_bl
[1938]2890    ! fin nrlmd le 10/04/2012
[1687]2891
[3384]2892    WRITE(lunout,*) ' lonmin lonmax latmin latmax bilKP_ins =',&
[1938]2893         lonmin_ins, lonmax_ins, latmin_ins, latmax_ins
[3384]2894    WRITE(lunout,*) ' ecrit_ hf, ins, day, mth, reg, tra, ISCCP, LES',&
[1938]2895         ecrit_hf, ecrit_ins, ecrit_day, ecrit_mth, ecrit_reg, ecrit_tra, ecrit_ISCCP, ecrit_LES
[1687]2896
[3384]2897    WRITE(lunout,*) ' ok_strato = ', ok_strato
2898    WRITE(lunout,*) ' ok_hines = ',  ok_hines
2899    WRITE(lunout,*) ' ok_gwd_rando = ',  ok_gwd_rando
2900    WRITE(lunout,*) ' ok_qch4 = ',  ok_qch4
2901    WRITE(lunout,*) ' gwd_rando_ruwmax = ', gwd_rando_ruwmax
2902    WRITE(lunout,*) ' gwd_rando_sat = ', gwd_rando_sat
2903    WRITE(lunout,*) ' gwd_front_ruwmax = ', gwd_front_ruwmax
2904    WRITE(lunout,*) ' gwd_front_sat = ', gwd_front_sat
2905    WRITE(lunout,*) ' SSO gkdrag =',gkdrag
2906    WRITE(lunout,*) ' SSO grahilo=',grahilo
2907    WRITE(lunout,*) ' SSO grcrit=',grcrit
2908    WRITE(lunout,*) ' SSO gfrcrit=',gfrcrit
2909    WRITE(lunout,*) ' SSO gkwake=',gkwake
2910    WRITE(lunout,*) ' SSO gklift=',gklift
2911    WRITE(lunout,*) ' adjust_tropopause = ', adjust_tropopause
2912    WRITE(lunout,*) ' ok_daily_climoz = ',ok_daily_climoz
2913    WRITE(lunout,*) ' read_climoz = ', read_climoz
2914    WRITE(lunout,*) ' carbon_cycle_tr = ', carbon_cycle_tr
2915    WRITE(lunout,*) ' carbon_cycle_cpl = ', carbon_cycle_cpl
[3447]2916    WRITE(lunout,*) ' carbon_cycle_rad = ', carbon_cycle_rad
[3384]2917    WRITE(lunout,*) ' level_coupling_esm = ', level_coupling_esm
[3792]2918    WRITE(lunout,*) ' iflag_tsurf_inlandsis = ', iflag_tsurf_inlandsis
[3900]2919    WRITE(lunout,*) ' iflag_temp_inlandsis = ', iflag_temp_inlandsis
2920    WRITE(lunout,*) ' iflag_albcalc = ', iflag_albcalc
[3792]2921    WRITE(lunout,*) ' SnoMod = ', SnoMod
2922    WRITE(lunout,*) ' BloMod = ', BloMod
2923    WRITE(lunout,*) ' ok_outfor = ', ok_outfor
[3900]2924    WRITE(lunout,*) ' is_ok_slush = ', is_ok_slush
2925    WRITE(lunout,*) ' opt_runoff_ac = ', opt_runoff_ac
2926    WRITE(lunout,*) ' is_ok_z0h_rn = ', is_ok_z0h_rn
2927    WRITE(lunout,*) ' is_ok_density_kotlyakov = ', is_ok_density_kotlyakov
2928    WRITE(lunout,*) ' prescribed_z0m_snow = ', prescribed_z0m_snow
2929    WRITE(lunout,*) ' iflag_z0m_snow = ', iflag_z0m_snow
2930    WRITE(lunout,*) ' ok_zsn_ii = ', ok_zsn_ii
2931    WRITE(lunout,*) ' discret_xf = ', discret_xf
2932    WRITE(lunout,*) ' correc_alb= ', correc_alb
2933    WRITE(lunout,*) ' buf_sph_pol = ', buf_sph_pol
2934    WRITE(lunout,*) ' buf_siz_pol= ', buf_siz_pol
[1687]2935
[1938]2936    !$OMP END MASTER
[3815]2937    call config_ocean_skin
[1938]2938
[2702]2939  END SUBROUTINE conf_phys
[1687]2940
[2702]2941END MODULE conf_phys_m
[1687]2942!
2943!#################################################################
2944!
2945
[2702]2946SUBROUTINE conf_interface(tau_calv)
[1687]2947
[2702]2948  USE IOIPSL
[2311]2949  USE print_control_mod, ONLY: lunout
[2702]2950  IMPLICIT NONE
[1938]2951  ! Configuration de l'interace atm/surf
2952  !
2953  ! tau_calv:    temps de relaxation pour la fonte des glaciers
[3384]2954  !
[1687]2955  REAL          :: tau_calv
[3384]2956  REAL, SAVE    :: tau_calv_omp
[1938]2957  !
2958  !Config Key  = tau_calv
2959  !Config Desc = temps de relaxation pour fonte des glaciers en jours
2960  !Config Def  = 1 an
2961  !Config Help =
2962  !
[1687]2963  tau_calv_omp = 360.*10.
[1938]2964  !$OMP MASTER
[2702]2965  CALL getin('tau_calv',tau_calv_omp)
[1938]2966  !$OMP END MASTER
2967  !$OMP BARRIER
[3384]2968  !
[1687]2969  tau_calv=tau_calv_omp
[3384]2970  !
[1938]2971  !$OMP MASTER
[3384]2972  WRITE(lunout,*)' ##############################################'
[1687]2973  WRITE(lunout,*)' Configuration de l''interface atm/surfaces  : '
2974  WRITE(lunout,*)' tau_calv = ',tau_calv
[1938]2975  !$OMP END MASTER
[3384]2976  !
[2702]2977  RETURN
[1687]2978
[2702]2979END SUBROUTINE conf_interface
Note: See TracBrowser for help on using the repository browser.