source: LMDZ6/branches/IPSLCM6.0.15/libf/phylmd/conf_phys_m.F90 @ 3408

Last change on this file since 3408 was 3408, checked in by Laurent Fairhead, 6 years ago

Modifications needed for VolMIP diagnostics for IPSLCM6.1.8
NL/LF

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