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

Last change on this file since 5119 was 5117, checked in by abarral, 4 months ago

rename modules properly lmdz_*
move some unused files to obsolete/
(lint) uppercase fortran keywords

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