source: LMDZ6/branches/Ocean_skin/libf/phylmd/conf_phys_m.F90 @ 3605

Last change on this file since 3605 was 3605, checked in by lguez, 5 years ago

Merge revisions 3427:3600 of trunk into branch Ocean_skin

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