source: LMDZ5/branches/IPSLCM5A2.1/libf/phylmd/conf_phys_m.F90 @ 3579

Last change on this file since 3579 was 3340, checked in by acozic, 6 years ago

merge with trunk 3338
Add a flag chemistry_couple

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