source: LMDZ6/trunk/libf/phylmd/conf_phys_m.F90 @ 3412

Last change on this file since 3412 was 3412, checked in by oboucher, 6 years ago

Externalizing a controlling parameter for activating aerosol radiative feedback
Need to pass the info all the way to recmwf_aero. Default is True as before.

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