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

Last change on this file since 3817 was 3815, checked in by lguez, 4 years ago

Merge Ocean_skin branch back into trunk

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