source: LMDZ5/branches/IPSLCM5A2.1_ISO/libf/phyiso/conf_phys_m.F90

Last change on this file was 3331, checked in by acozic, 7 years ago

Add modification for isotopes

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