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

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

Adding the reading of flag level_coupling_esm needed for the ESM version
Cleaning up the conf_phys_m.F90 routine with no further change

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