source: LMDZ5/trunk/libf/phylmd/conf_phys_m.F90 @ 2237

Last change on this file since 2237 was 2236, checked in by fhourdin, 10 years ago

Changement du drapeau iflag_cldth en iflag_cld_th
et du défaut de iflag_cld_cv pour le choix entre schema
de nuages convectifs

lognormal = 0
bigaussien = 1

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