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

Last change on this file since 2543 was 2543, checked in by jbmadeleine, 9 years ago

Ajout de l'option iflag_cloudth_vert=2 developpe par Jean Jouhaud pour l heterogeneite verticale sous maille des nuages.

Pour le moment, l ecart type de la pdf verticale vaut la moitie de l ecart type de la pdf horizontale.

Le iflag_cloudth_vert=1 conserve l heterogeneite verticale telle qu introduite par Arnaud Jam en Avril 2015.

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