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

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

various minor tweaks

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