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

Last change on this file since 3335 was 3333, checked in by oboucher, 7 years ago

Add a missing flag_aerosol == 7 in reaerosol_optic_rrtm
Beware flag_aerosol = 7 requires aerosols.1980.nc to point to aerosols.nat.nc

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