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

Last change on this file since 3789 was 3789, checked in by oboucher, 3 years ago

change to a comment in conf_phys_m

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