source: LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/conf_phys_m.F90 @ 4688

Last change on this file since 4688 was 3609, checked in by jghattas, 5 years ago

Put back changes done in commit [3604] which were removed temporary in commit [3607].

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