source: LMDZ6/trunk/libf/phylmd/conf_phys_m.f90

Last change on this file was 5776, checked in by evignon, 5 weeks ago

ajout de l'advection horizontale de la TKE. Travaux dans le cadre de la these de Valentin Wiener

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