source: LMDZ6/branches/LMDZ-INCA-Dyn/libf/phylmd/conf_phys_m.F90 @ 5048

Last change on this file since 5048 was 3792, checked in by evignon, 4 years ago

Ajout de INLANDSIS, nouvelle interface entre LMDZ et la neige de SISVAT
Etienne, 04/01/2021

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