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

Last change on this file since 2548 was 2547, checked in by jbmadeleine, 8 years ago

Ajout de l'option iflag_cloudth_vert=2 developpe par Jean Jouhaud pour l heterogeneite verticale sous maille des
nuages. Pour le moment, l ecart type de la pdf verticale vaut la moitie de l ecart type de la pdf horizontale.
Le iflag_cloudth_vert=1 conserve l heterogeneite verticale telle qu introduite par Arnaud Jam en Avril 2015.

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