source: CONFIG/UNIFORM/v6/IPSLCM6.3/SOURCES/LMDZ/conf_phys_m.F90 @ 6574

Last change on this file since 6574 was 6574, checked in by acosce, 10 months ago

update with last version of ORCA1_LIM3_PISCES + fix typo error in SOURCES/LMDZ

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