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

Last change on this file since 2415 was 2415, checked in by crio, 9 years ago

Prise en compte de l'effet Bergeron dans les flux de pluie grande-echelle
Activer en mettant iflag_bergeron=1 dans physiq.def (valeur par defaut 0)
Representation of the Bergeron effect in the large-scale precipitation fluxes
Activate by iflag_bergeron=1 in physiq.def (standard value 0)

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