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

Last change on this file since 3858 was 3857, checked in by oboucher, 4 years ago

Additions for the interactive carbon cycle

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