source: LMDZ6/trunk/libf/phylmd/conf_phys_m.F90 @ 3592

Last change on this file since 3592 was 3479, checked in by Laurent Fairhead, 6 years ago

Integration of r3408 into the trunk
Modifications needed for VolMIP diagnostics

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