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

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

Changing flag_aerosol_strat from logical (y/n) to
an integer (0/1/2) for CMIP6 needs

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