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

Last change on this file since 2644 was 2644, checked in by oboucher, 8 years ago

I introduced flag_bc_internal_mixture for BC/sulphate internal mixture.
Only works for iflag_rrtm=y, NSW=6 and flag_aerosol=6 or aerosol_couple.
It has no impact at the moment as LUT for aerosol properties will have to
be changed. But the plumbing work is already done....

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