source: LMDZ5/branches/testing/libf/phylmd/conf_phys_m.F90 @ 2787

Last change on this file since 2787 was 2787, checked in by Laurent Fairhead, 8 years ago

Merged trunk changes r2727:2785 into testing branch

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