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

Last change on this file since 4245 was 4245, checked in by evignon, 2 years ago

controle des z0 sur landice dans les .def et nettoyage surf_landice_mod
pour Valentin

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