source: LMDZ5/trunk/libf/phylmd/conf_phys_m.F90 @ 2709

Last change on this file since 2709 was 2707, checked in by jyg, 8 years ago

New input parameter: nbapp_cv = number of calls to
convection (and wake) routines per day. If =0,
call at every physic time step.

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