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

Last change on this file since 3607 was 3607, checked in by jghattas, 4 years ago

Revert commit [3604]. This is only done temporary because we need to make a correction for Jean-Zay and to have a revision without these changes to go into IPSLCM6.1.10.

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