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

Last change on this file since 2518 was 2481, checked in by fhourdin, 9 years ago

Introduction d'une dependance epmax=f(Cape) sur proposition de Camille Risi

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