source: LMDZ6/branches/Amaury_dev/libf/phylmd/conf_phys_m.F90 @ 5151

Last change on this file since 5151 was 5144, checked in by abarral, 7 weeks ago

Put YOMCST.h into modules

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