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

Last change on this file since 2408 was 2408, checked in by Laurent Fairhead, 9 years ago

Merged trunk changes r2298:2396 into testing branch

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