source: LMDZ6/branches/DYNAMICO-conv/libf/phylmd/conf_phys_m.F90 @ 3411

Last change on this file since 3411 was 3411, checked in by Laurent Fairhead, 6 years ago

Undoing merge with trunk (r3356) to properly register Yann's latest modifications

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