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

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

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

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