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

Last change on this file since 2561 was 2561, checked in by fhourdin, 8 years ago

Parametrisation d'une longueur de melange verticale minimum associee
aux circulations meso-echelle introduites par le relief sous maille.
D'apres Etienne Vignon et Frédéric Hourdin

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