source: LMDZ6/branches/cirrus/libf/phylmd/conf_phys_m.F90 @ 5431

Last change on this file since 5431 was 4951, checked in by aborella, 7 months ago

New version of condensation and ice supersaturation in LSCP.
Multiple changes troughout the code (in particular, two new water phase tracers).

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