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

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

Inclusion of Yann's latest (summer/fall 2018) modifications for
convergence of DYNAMICO/LMDZ physics
YM/LF

  • 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 3413 2018-11-12 12:52:29Z aclsce $
[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
[3413]1011    !Option 2 is only available with RRTM, this is tested later on
[2785]1012    !Config Def  = 0
1013    !Config Help = Used in physiq.F
1014    !
1015    !
1016    flag_aerosol_strat_omp = 0
[3413]1017    CALL getin('flag_aerosol_strat',flag_aerosol_strat_omp)
[2227]1018
[1989]1019    !
[2236]1020    !Config Key  = iflag_cld_th
[1938]1021    !Config Desc = 
1022    !Config Def  = 1
1023    !Config Help =
1024    !
[2236]1025    iflag_cld_th_omp = 1
[2357]1026    ! On lit deux fois avec l'ancien et le nouveau nom
1027    ! pour assurer une retrocompatiblite.
1028    ! A abandonner un jour
[2702]1029    CALL getin('iflag_cldcon',iflag_cld_th_omp)
1030    CALL getin('iflag_cld_th',iflag_cld_th_omp)
[2236]1031    iflag_cld_cv_omp = 0
[2702]1032    CALL getin('iflag_cld_cv',iflag_cld_cv_omp)
[2205]1033
1034    !
1035    !Config Key  = tau_cld_cv
1036    !Config Desc =
1037    !Config Def  = 10.
1038    !Config Help =
1039    !
1040    tau_cld_cv_omp = 10.
[2702]1041    CALL getin('tau_cld_cv',tau_cld_cv_omp)
[2205]1042
1043    !
1044    !Config Key  = coefw_cld_cv
1045    !Config Desc =
1046    !Config Def  = 0.1
1047    !Config Help =
1048    !
1049    coefw_cld_cv_omp = 0.1
[2702]1050    CALL getin('coefw_cld_cv',coefw_cld_cv_omp)
[2205]1051
1052
1053
1054
1055    !
[1938]1056    !Config Key  = iflag_pdf
1057    !Config Desc = 
1058    !Config Def  = 0
1059    !Config Help =
1060    !
1061    iflag_pdf_omp = 0
[2702]1062    CALL getin('iflag_pdf',iflag_pdf_omp)
[1938]1063    !
1064    !Config Key  = fact_cldcon
1065    !Config Desc = 
1066    !Config Def  = 0.375
1067    !Config Help =
1068    !
1069    fact_cldcon_omp = 0.375
[2702]1070    CALL getin('fact_cldcon',fact_cldcon_omp)
[1687]1071
[1938]1072    !
1073    !Config Key  = facttemps
1074    !Config Desc = 
1075    !Config Def  = 1.e-4
1076    !Config Help =
1077    !
1078    facttemps_omp = 1.e-4
[2702]1079    CALL getin('facttemps',facttemps_omp)
[1687]1080
[1938]1081    !
1082    !Config Key  = ok_newmicro
1083    !Config Desc = 
[2702]1084    !Config Def  = .TRUE.
[1938]1085    !Config Help =
1086    !
[2702]1087    ok_newmicro_omp = .TRUE.
1088    CALL getin('ok_newmicro',ok_newmicro_omp)
[1938]1089    !
1090    !Config Key  = ratqsbas
1091    !Config Desc = 
1092    !Config Def  = 0.01
1093    !Config Help =
1094    !
1095    ratqsbas_omp = 0.01
[2702]1096    CALL getin('ratqsbas',ratqsbas_omp)
[1938]1097    !
1098    !Config Key  = ratqshaut
1099    !Config Desc = 
1100    !Config Def  = 0.3
1101    !Config Help =
1102    !
1103    ratqshaut_omp = 0.3
[2702]1104    CALL getin('ratqshaut',ratqshaut_omp)
[1687]1105
[1938]1106    !Config Key  = tau_ratqs
1107    !Config Desc = 
1108    !Config Def  = 1800.
1109    !Config Help =
1110    !
1111    tau_ratqs_omp = 1800.
[2702]1112    CALL getin('tau_ratqs',tau_ratqs_omp)
[1687]1113
[1938]1114    !
1115    !-----------------------------------------------------------------------
1116    ! Longitude solaire pour le calcul de l'ensoleillement en degre
1117    ! si on veut imposer la saison. Sinon, solarlong0=-999.999
1118    !Config Key  = solarlong0
1119    !Config Desc = 
1120    !Config Def  = -999.999
1121    !Config Help =
1122    !
1123    solarlong0_omp = -999.999
[2702]1124    CALL getin('solarlong0',solarlong0_omp)
[1938]1125    !
1126    !-----------------------------------------------------------------------
1127    !  Valeur imposee pour configuration idealisees
1128    !Config Key  = qsol0 pour le bucket, evap0 pour aquaplanetes, albsno0
1129    ! Default value -1 to activate the full computation
1130    qsol0_omp = -1.
[2702]1131    CALL getin('qsol0',qsol0_omp)
[1938]1132    evap0_omp = -1.
[2702]1133    CALL getin('evap0',evap0_omp)
[1938]1134    albsno0_omp = -1.
[2702]1135    CALL getin('albsno0',albsno0_omp)
[1938]1136    !
1137    !-----------------------------------------------------------------------
1138    !
[2915]1139    !Config Key  = iflag_sic
[1938]1140    !Config Desc = 
[2915]1141    !Config Def  = 0
1142    !Config Help =
1143    !
1144    iflag_sic_omp = 0
1145    CALL getin('iflag_sic',iflag_sic_omp)
1146    !
1147    !Config Key  = inertie_sic
1148    !Config Desc = 
[1938]1149    !Config Def  = 2000.
1150    !Config Help =
1151    !
[2915]1152    inertie_sic_omp = 2000.
1153    CALL getin('inertie_sic',inertie_sic_omp)
[1938]1154    !
[2915]1155    !Config Key  = inertie_lic
1156    !Config Desc = 
1157    !Config Def  = 2000.
1158    !Config Help =
1159    !
1160    inertie_lic_omp = 2000.
1161    CALL getin('inertie_lic',inertie_lic_omp)
1162    !
[1938]1163    !Config Key  = inertie_sno
1164    !Config Desc = 
1165    !Config Def  = 2000.
1166    !Config Help =
1167    !
1168    inertie_sno_omp = 2000.
[2702]1169    CALL getin('inertie_sno',inertie_sno_omp)
[1938]1170    !
1171    !Config Key  = inertie_sol
1172    !Config Desc = 
1173    !Config Def  = 2000.
1174    !Config Help =
1175    !
1176    inertie_sol_omp = 2000.
[2702]1177    CALL getin('inertie_sol',inertie_sol_omp)
[1687]1178
[1938]1179    !
1180    !Config Key  = rad_froid
1181    !Config Desc = 
1182    !Config Def  = 35.0
1183    !Config Help =
1184    !
1185    rad_froid_omp = 35.0
[2702]1186    CALL getin('rad_froid',rad_froid_omp)
[1687]1187
[1938]1188    !
1189    !Config Key  = rad_chau1
1190    !Config Desc = 
1191    !Config Def  = 13.0
1192    !Config Help =
1193    !
1194    rad_chau1_omp = 13.0
[2702]1195    CALL getin('rad_chau1',rad_chau1_omp)
[1687]1196
[1938]1197    !
1198    !Config Key  = rad_chau2
1199    !Config Desc = 
1200    !Config Def  = 9.0
1201    !Config Help =
1202    !
1203    rad_chau2_omp = 9.0
[2702]1204    CALL getin('rad_chau2',rad_chau2_omp)
[1687]1205
[1938]1206    !
1207    !Config Key  = t_glace_min
1208    !Config Desc = 
1209    !Config Def  = 258.
1210    !Config Help =
1211    !
1212    t_glace_min_omp = 258.
[2702]1213    CALL getin('t_glace_min',t_glace_min_omp)
[1687]1214
[1938]1215    !
1216    !Config Key  = t_glace_max
1217    !Config Desc = 
1218    !Config Def  = 273.13
1219    !Config Help =
1220    !
1221    t_glace_max_omp = 273.13
[2702]1222    CALL getin('t_glace_max',t_glace_max_omp)
[1849]1223
[1938]1224    !
[2006]1225    !Config Key  = exposant_glace
1226    !Config Desc = 
1227    !Config Def  = 2.
1228    !Config Help =
1229    !
1230    exposant_glace_omp = 1.
[2702]1231    CALL getin('exposant_glace',exposant_glace_omp)
[2006]1232
1233    !
1234    !Config Key  = iflag_t_glace
1235    !Config Desc = 
1236    !Config Def  = 0
1237    !Config Help =
1238    !
1239    iflag_t_glace_omp = 0
[2702]1240    CALL getin('iflag_t_glace',iflag_t_glace_omp)
[2006]1241
1242    !
[2547]1243    !Config Key  = iflag_cloudth_vert
1244    !Config Desc = 
1245    !Config Def  = 0
1246    !Config Help =
1247    !
1248    iflag_cloudth_vert_omp = 0
[2702]1249    CALL getin('iflag_cloudth_vert',iflag_cloudth_vert_omp)
[2547]1250
1251    !
[2945]1252    !Config Key  = iflag_rain_incloud_vol
1253    !Config Desc = 
1254    !Config Def  = 0
1255    !Config Help =
1256    !
1257    iflag_rain_incloud_vol_omp = 0
1258    CALL getin('iflag_rain_incloud_vol',iflag_rain_incloud_vol_omp)
1259
1260    !
[1938]1261    !Config Key  = iflag_ice_thermo
1262    !Config Desc = 
1263    !Config Def  = 0
1264    !Config Help =
1265    !
1266    iflag_ice_thermo_omp = 0
[2702]1267    CALL getin('iflag_ice_thermo',iflag_ice_thermo_omp)
[1687]1268
[1938]1269    !Config Key  = rei_min
1270    !Config Desc = 
1271    !Config Def  = 3.5
1272    !Config Help =
1273    !
1274    rei_min_omp = 3.5
[2702]1275    CALL getin('rei_min',rei_min_omp)
[1687]1276
[1938]1277    !
1278    !Config Key  = rei_max
1279    !Config Desc = 
1280    !Config Def  = 61.29
1281    !Config Help =
1282    !
1283    rei_max_omp = 61.29
[2702]1284    CALL getin('rei_max',rei_max_omp)
[1687]1285
[1938]1286    !
1287    !Config Key  = top_height
1288    !Config Desc =
1289    !Config Def  = 3
1290    !Config Help =
1291    !
1292    top_height_omp = 3
[2702]1293    CALL getin('top_height',top_height_omp)
[1687]1294
[1938]1295    !
1296    !Config Key  = overlap
1297    !Config Desc =
1298    !Config Def  = 3
1299    !Config Help =
1300    !
1301    overlap_omp = 3
[2702]1302    CALL getin('overlap',overlap_omp)
[1687]1303
[1938]1304    !
1305    !Config Key  = cdmmax
1306    !Config Desc =
1307    !Config Def  = 1.3E-3
1308    !Config Help =
1309    !
1310    cdmmax_omp = 1.3E-3
[2702]1311    CALL getin('cdmmax',cdmmax_omp)
[1687]1312
[1938]1313    !
1314    !Config Key  = cdhmax
1315    !Config Desc =
1316    !Config Def  = 1.1E-3
1317    !Config Help =
1318    !
1319    cdhmax_omp = 1.1E-3
[2702]1320    CALL getin('cdhmax',cdhmax_omp)
[1687]1321
[1938]1322    !261103
1323    !
1324    !Config Key  = ksta
1325    !Config Desc =
1326    !Config Def  = 1.0e-10
1327    !Config Help =
1328    !
1329    ksta_omp = 1.0e-10
[2702]1330    CALL getin('ksta',ksta_omp)
[1687]1331
[1938]1332    !
1333    !Config Key  = ksta_ter
1334    !Config Desc =
1335    !Config Def  = 1.0e-10
1336    !Config Help =
1337    !
1338    ksta_ter_omp = 1.0e-10
[2702]1339    CALL getin('ksta_ter',ksta_ter_omp)
[1687]1340
[2126]1341    !Config Key  = f_ri_cd_min
1342    !Config Desc =
1343    !Config Def  = 0.1
1344    !Config Help =
[1938]1345    !
[2126]1346    f_ri_cd_min_omp = 0.1
[2702]1347    CALL getin('f_ri_cd_min',f_ri_cd_min_omp)
[2126]1348
1349    !
[1938]1350    !Config Key  = ok_kzmin
1351    !Config Desc =
[2702]1352    !Config Def  = .TRUE.
[1938]1353    !Config Help =
1354    !
[2702]1355    ok_kzmin_omp = .TRUE.
1356    CALL getin('ok_kzmin',ok_kzmin_omp)
[1687]1357
[2561]1358    pbl_lmixmin_alpha_omp=0.0
[2702]1359    CALL getin('pbl_lmixmin_alpha',pbl_lmixmin_alpha_omp)
[2561]1360
[1938]1361    !
1362    !Config Key  = fmagic
1363    !Config Desc = additionnal multiplicator factor used for albedo
1364    !Config Def  = 1.
1365    !Config Help = additionnal multiplicator factor used in albedo.F
1366    !
1367    fmagic_omp = 1.
[2702]1368    CALL getin('fmagic',fmagic_omp)
[1687]1369
[1938]1370    !
1371    !Config Key  = pmagic
1372    !Config Desc = additional factor used for albedo
1373    !Config Def  = 0.
1374    !Config Help = additional factor used in albedo.F
1375    !
1376    pmagic_omp = 0.
[2702]1377    CALL getin('pmagic',pmagic_omp)
[1687]1378
1379
[1938]1380    !Config Key = ok_lic_melt
1381    !Config Desc = Prise en compte de la fonte de la calotte dans le bilan d'eau
[2702]1382    !Config Def  = .FALSE.
1383    !Config Help = mettre a .FALSE. pour assurer la conservation en eau
1384    ok_lic_melt_omp = .FALSE.
1385    CALL getin('ok_lic_melt', ok_lic_melt_omp)
[1687]1386
[2946]1387
1388    !Config Key = ok_lic_cond
1389    !Config Desc = Prise en compte depot de vapeur d'eau sur la calotte dans le bilan d'eau
1390    !Config Def  = .FALSE.
1391    !Config Help = mettre a .TRUE. pour assurer la conservation en eau
1392    ok_lic_cond_omp = .FALSE.
1393    CALL getin('ok_lic_cond', ok_lic_cond_omp)
1394
[1938]1395    !
1396    ! PARAMETER FOR THE PLANETARY BOUNDARY LAYER
1397    !
[1687]1398
[1938]1399    !Config Key  = iflag_pbl
1400    !Config Desc =
1401    !Config Def  = 1
1402    !Config Help =
1403    !
1404    iflag_pbl_omp = 1
[2702]1405    CALL getin('iflag_pbl',iflag_pbl_omp)
[2952]1406
1407!FC
1408    !Config Key  = ifl_pbltree
1409    !Config Desc = drag from trees 0 no activated
1410    !Config Def  = 0
1411    !Config Help =
[1938]1412    !
[2952]1413    ifl_pbltree_omp = 0
1414    CALL getin('ifl_pbltree',ifl_pbltree_omp)
1415!FC
1416    !Config Key  = Cd_frein
1417    !Config Desc = drag from trees
1418    !Config Def  = 7.5E-02 (valeur Masson mais fait planter avec des LAI eleves)
1419    !Config Help =
1420    !
1421    Cd_frein_omp = 7.5E-02
1422    CALL getin('Cd_frein',Cd_frein_omp)
1423
1424    !
[2159]1425    !Config Key  = iflag_pbl_split
[2852]1426    !Config Desc = decimal flag: least signif digit = split vdf; next digit = split thermals
[2159]1427    !Config Def  = 0
[2852]1428    !Config Help = 0-> no splitting; 1-> vdf splitting; 10-> thermals splitting; 11-> full splitting
[2159]1429    !
1430    iflag_pbl_split_omp = 0
[2852]1431    call getin('iflag_pbl_split',iflag_pbl_split_omp)
[2159]1432    !
[2455]1433    !Config Key  = iflag_order2_sollw
1434    !Config Desc =
1435    !Config Def  = 0
1436    !Config Help =
1437    !
1438    iflag_order2_sollw_omp = 0
[2702]1439    CALL getin('iflag_order2_sollw',iflag_order2_sollw_omp)
[2455]1440    !
[1938]1441    !Config Key  = iflag_thermals
1442    !Config Desc =
1443    !Config Def  = 0
1444    !Config Help =
1445    !
1446    iflag_thermals_omp = 0
[2702]1447    CALL getin('iflag_thermals',iflag_thermals_omp)
[1938]1448    !
[2000]1449    !Config Key  = iflag_thermals_ed
1450    !Config Desc =
1451    !Config Def  = 0
1452    !Config Help =
[1938]1453    !
[2000]1454    fact_thermals_ed_dz_omp = 0.1
1455
[2702]1456    CALL getin('fact_thermals_ed_dz',fact_thermals_ed_dz_omp)
[2000]1457    !
1458    !
[1938]1459    !Config Key  = iflag_thermals_ed
1460    !Config Desc =
1461    !Config Def  = 0
1462    !Config Help =
1463    !
1464    iflag_thermals_ed_omp = 0
[2702]1465    CALL getin('iflag_thermals_ed',iflag_thermals_ed_omp)
[1938]1466    !
1467    !
1468    !Config Key  = iflag_thermals_optflux
1469    !Config Desc =
1470    !Config Def  = 0
1471    !Config Help =
1472    !
1473    iflag_thermals_optflux_omp = 0
[2702]1474    CALL getin('iflag_thermals_optflux',iflag_thermals_optflux_omp)
[1938]1475    !
[1998]1476    !Config Key  = iflag_thermals_closure
1477    !Config Desc =
1478    !Config Def  = 0
1479    !Config Help =
[1938]1480    !
[1998]1481    iflag_thermals_closure_omp = 1
[2702]1482    CALL getin('iflag_thermals_closure',iflag_thermals_closure_omp)
[1998]1483    !
[1938]1484    !Config Key  = nsplit_thermals
1485    !Config Desc =
1486    !Config Def  = 1
1487    !Config Help =
1488    !
1489    nsplit_thermals_omp = 1
[2702]1490    CALL getin('nsplit_thermals',nsplit_thermals_omp)
[1687]1491
[1938]1492    !Config Key  = alp_bl_k
1493    !Config Desc =
1494    !Config Def  = 0.
1495    !Config Help =
1496    !
1497    alp_bl_k_omp = 1.
[2702]1498    CALL getin('alp_bl_k',alp_bl_k_omp)
[1687]1499
[1938]1500    ! nrlmd le 10/04/2012
[1687]1501
[1938]1502    !Config Key  = iflag_trig_bl
1503    !Config Desc = 
1504    !Config Def  = 0
1505    !Config Help =
1506    !
1507    iflag_trig_bl_omp = 0
[2702]1508    CALL getin('iflag_trig_bl',iflag_trig_bl_omp)
[1687]1509
[1938]1510    !Config Key  = s_trig_bl
1511    !Config Desc = 
1512    !Config Def  = 0
1513    !Config Help =
1514    !
1515    s_trig_omp = 2e7
[2702]1516    CALL getin('s_trig',s_trig_omp)
[1687]1517
[1938]1518    !Config Key  = tau_trig_shallow
1519    !Config Desc = 
1520    !Config Def  = 0
1521    !Config Help =
1522    !
1523    tau_trig_shallow_omp = 600
[2702]1524    CALL getin('tau_trig_shallow',tau_trig_shallow_omp)
[1687]1525
[1938]1526    !Config Key  = tau_trig_deep
1527    !Config Desc = 
1528    !Config Def  = 0
1529    !Config Help =
1530    !
1531    tau_trig_deep_omp = 1800
[2702]1532    CALL getin('tau_trig_deep',tau_trig_deep_omp)
[1687]1533
[1938]1534    !Config Key  = iflag_clos_bl
1535    !Config Desc = 
1536    !Config Def  = 0
1537    !Config Help =
1538    !
1539    iflag_clos_bl_omp = 0
[2702]1540    CALL getin('iflag_clos_bl',iflag_clos_bl_omp)
[1687]1541
[1938]1542    ! fin nrlmd le 10/04/2012
[1687]1543
[1938]1544    !
1545    !Config Key  = tau_thermals
1546    !Config Desc =
1547    !Config Def  = 0.
1548    !Config Help =
1549    !
1550    tau_thermals_omp = 0.
[2702]1551    CALL getin('tau_thermals',tau_thermals_omp)
[1687]1552
[1938]1553    !
1554    !Config Key  = iflag_coupl
1555    !Config Desc =
1556    !Config Def  = 0
1557    !Config Help =
1558    !
1559    iflag_coupl_omp = 0
[2702]1560    CALL getin('iflag_coupl',iflag_coupl_omp)
[1687]1561
[1938]1562    !
1563    !Config Key  = iflag_clos
1564    !Config Desc = 
1565    !Config Def  = 0
1566    !Config Help =
1567    !
1568    iflag_clos_omp = 1
[2702]1569    CALL getin('iflag_clos',iflag_clos_omp)
[1938]1570    !
[2201]1571    !Config Key  = coef_clos_ls
1572    !Config Desc = 
1573    !Config Def  = 0
1574    !Config Help =
1575    !
1576    coef_clos_ls_omp = 0.
[2702]1577    CALL getin('coef_clos_ls',coef_clos_ls_omp)
[2201]1578
1579    !
[1938]1580    !Config Key  = iflag_cvl_sigd
1581    !Config Desc = 
1582    !Config Def  = 0
1583    !Config Help =
1584    !
1585    iflag_cvl_sigd_omp = 0
[2702]1586    CALL getin('iflag_cvl_sigd',iflag_cvl_sigd_omp)
[1687]1587
[1938]1588    !Config Key  = iflag_wake
1589    !Config Desc = 
1590    !Config Def  = 0
1591    !Config Help =
1592    !
1593    iflag_wake_omp = 0
[2702]1594    CALL getin('iflag_wake',iflag_wake_omp)
[1687]1595
[1938]1596    !Config Key  = alp_offset
1597    !Config Desc = 
1598    !Config Def  = 0
1599    !Config Help =
1600    !
1601    alp_offset_omp = 0.
[2702]1602    CALL getin('alp_offset',alp_offset_omp)
[1687]1603
[1938]1604    !
1605    !Config Key  = lev_histhf
1606    !Config Desc =
1607    !Config Def  = 1
1608    !Config Help =
1609    !
1610    lev_histhf_omp = 1
[2702]1611    CALL getin('lev_histhf',lev_histhf_omp)
[1687]1612
[1938]1613    !
1614    !Config Key  = lev_histday
1615    !Config Desc =
1616    !Config Def  = 1
1617    !Config Help =
1618    !
1619    lev_histday_omp = 1
[2702]1620    CALL getin('lev_histday',lev_histday_omp)
[1687]1621
[1938]1622    !
1623    !Config Key  = lev_histmth
1624    !Config Desc =
1625    !Config Def  = 2
1626    !Config Help =
1627    !
1628    lev_histmth_omp = 2
[2702]1629    CALL getin('lev_histmth',lev_histmth_omp)
[1938]1630    !
1631    !Config Key  = lev_histins
1632    !Config Desc =
1633    !Config Def  = 1
1634    !Config Help =
1635    !
1636    lev_histins_omp = 1
[2702]1637    CALL getin('lev_histins',lev_histins_omp)
[1938]1638    !
1639    !Config Key  = lev_histLES
1640    !Config Desc =
1641    !Config Def  = 1
1642    !Config Help =
1643    !
1644    lev_histLES_omp = 1
[2702]1645    CALL getin('lev_histLES',lev_histLES_omp)
[1938]1646    !
1647    !Config Key  = lev_histdayNMC
1648    !Config Desc =
1649    !Config Def  = 8
1650    !Config Help =
1651    !
1652    lev_histdayNMC_omp = 8
[2702]1653    CALL getin('lev_histdayNMC',lev_histdayNMC_omp)
[1938]1654    !
1655    !Config Key  = levout_histNMC
1656    !Config Desc =
1657    !Config Def  = 5
1658    !Config Help =
1659    !
1660    levout_histNMC_omp(1) = 5
1661    levout_histNMC_omp(2) = 5
1662    levout_histNMC_omp(3) = 5
[2702]1663    CALL getin('levout_histNMC',levout_histNMC_omp)
[1938]1664    !
1665    !histNMC BEG
1666    !Config Key  = ok_histNMC
1667    !Config Desc = ok_histNMC(1) = frequence de sortie fichiers histmthNMC
1668    !Config Desc = ok_histNMC(2) = frequence de sortie fichiers histdayNMC
1669    !Config Desc = ok_histNMC(3) = frequence de sortie fichiers histhfNMC
1670    !Config Def  = n, n, n
1671    !Config Help =
1672    !
[2702]1673    ok_histNMC_omp(1) = .FALSE.
1674    ok_histNMC_omp(2) = .FALSE.
1675    ok_histNMC_omp(3) = .FALSE.
1676    CALL getin('ok_histNMC',ok_histNMC_omp)
[1938]1677    !
1678    !Config Key  = freq_outNMC
1679    !Config Desc = freq_outNMC(1) = frequence de sortie fichiers histmthNMC
1680    !Config Desc = freq_outNMC(2) = frequence de sortie fichiers histdayNMC
1681    !Config Desc = freq_outNMC(3) = frequence de sortie fichiers histhfNMC
1682    !Config Def  = 2592000., 86400., 21600. (1mois, 1jour, 6h)
1683    !Config Help =
1684    !
1685    freq_outNMC_omp(1) = mth_len
1686    freq_outNMC_omp(2) = 1.
1687    freq_outNMC_omp(3) = 1./4.
[2702]1688    CALL getin('freq_outNMC',freq_outNMC_omp)
[1938]1689    !
1690    !Config Key  = freq_calNMC
1691    !Config Desc = freq_calNMC(1) = frequence de calcul fichiers histmthNMC
1692    !Config Desc = freq_calNMC(2) = frequence de calcul fichiers histdayNMC
1693    !Config Desc = freq_calNMC(3) = frequence de calcul fichiers histhfNMC
[3065]1694    !Config Def  = phys_tstep
[1938]1695    !Config Help =
1696    !
[3065]1697    freq_calNMC_omp(1) = phys_tstep
1698    freq_calNMC_omp(2) = phys_tstep
1699    freq_calNMC_omp(3) = phys_tstep
[2702]1700    CALL getin('freq_calNMC',freq_calNMC_omp)
[1938]1701    !
1702    !Config Key  = type_run
1703    !Config Desc =
1704    !Config Def  = 'AMIP'/'CFMIP'  ou 'CLIM'/'ENSP'
1705    !Config Help =
1706    !
1707    type_run_omp = 'AMIP'
[2702]1708    CALL getin('type_run',type_run_omp)
[1687]1709
[1938]1710    !
1711    !Config Key  = ok_cosp
1712    !Config Desc =
[2702]1713    !Config Def  = .FALSE.
[1938]1714    !Config Help =
1715    !
[2702]1716    ok_cosp_omp = .FALSE.
1717    CALL getin('ok_cosp',ok_cosp_omp)
[1687]1718
[1938]1719    !
[2580]1720    !Config Key  = ok_airs
1721    !Config Desc =
[2702]1722    !Config Def  = .FALSE.
[2580]1723    !Config Help =
1724    !
[2702]1725    ok_airs_omp = .FALSE.
1726    CALL getin('ok_airs',ok_airs_omp)
[2580]1727
1728    !
[1938]1729    !Config Key  = ok_mensuelCOSP
1730    !Config Desc =
[2702]1731    !Config Def  = .TRUE.
[1938]1732    !Config Help =
1733    !
[2702]1734    ok_mensuelCOSP_omp = .TRUE.
1735    CALL getin('ok_mensuelCOSP',ok_mensuelCOSP_omp)
[1687]1736
[1938]1737    !
1738    !Config Key  = ok_journeCOSP
1739    !Config Desc =
[2702]1740    !Config Def  = .TRUE.
[1938]1741    !Config Help =
1742    !
[2702]1743    ok_journeCOSP_omp = .TRUE.
1744    CALL getin('ok_journeCOSP',ok_journeCOSP_omp)
[1687]1745
[1938]1746    !
1747    !Config Key  = ok_hfCOSP
1748    !Config Desc =
[2702]1749    !Config Def  = .FALSE.
[1938]1750    !Config Help =
1751    !
[2702]1752    ok_hfCOSP_omp = .FALSE.
1753    CALL getin('ok_hfCOSP',ok_hfCOSP_omp)
[1687]1754
[1938]1755    !
1756    ! coordonnees (lonmin_ins, lonmax_ins, latmin_ins, latmax_ins) pour la zone
1757    ! avec sorties instantannees tous les pas de temps de la physique => "histbilKP_ins.nc"
1758    !
1759    !Config Key  = lonmin_ins
1760    !Config Desc = 100. 
1761    !Config Def  = longitude minimale sorties "bilKP_ins"
1762    !Config Help =
1763    !
1764    lonmin_ins_omp = 100.
[2702]1765    CALL getin('lonmin_ins',lonmin_ins_omp)
[1938]1766    !
1767    !Config Key  = lonmax_ins
1768    !Config Desc = 130.
1769    !Config Def  = longitude maximale sorties "bilKP_ins"
1770    !Config Help =
1771    !
1772    lonmax_ins_omp = 130.
[2702]1773    CALL getin('lonmax_ins',lonmax_ins_omp)
[1938]1774    !
1775    !Config Key  = latmin_ins
1776    !Config Desc = -20. 
1777    !Config Def  = latitude minimale sorties "bilKP_ins"
1778    !Config Help =
1779    !
1780    latmin_ins_omp = -20.
[2702]1781    CALL getin('latmin_ins',latmin_ins_omp)
[1938]1782    !
1783    !Config Key  = latmax_ins
1784    !Config Desc = 20.
1785    !Config Def  = latitude maximale sorties "bilKP_ins"
1786    !Config Help =
1787    !
1788    latmax_ins_omp = 20.
[2702]1789    CALL getin('latmax_ins',latmax_ins_omp)
[1938]1790    !
1791    !Config Key  = ecrit_hf
1792    !Config Desc =
1793    !Config Def  = 1./8. !toutes les 3h
1794    !Config Help =
1795    !
1796    ecrit_hf_omp = 1./8.
[2702]1797    CALL getin('ecrit_hf',ecrit_hf_omp)
[1938]1798    !
1799    !Config Key  = ecrit_ins
1800    !Config Desc =
1801    !Config Def  = 1./48. ! toutes les 1/2 h
1802    !Config Help =
1803    !
1804    ecrit_ins_omp = 1./48.
[2702]1805    CALL getin('ecrit_ins',ecrit_ins_omp)
[1938]1806    !
1807    !Config Key  = ecrit_day
1808    !Config Desc =
1809    !Config Def  = 1.0 !tous les jours
1810    !Config Help = nombre de jours pour ecriture fichier histday.nc
1811    !
1812    ecrit_day_omp = 1.0
[2702]1813    CALL getin('ecrit_day',ecrit_day_omp)
[1938]1814    !
1815    !Config Key  = ecrit_mth
1816    !Config Desc =
1817    !Config Def  = 30. !tous les 30jours (1 fois par mois)
1818    !Config Help =
1819    !
1820    ecrit_mth_omp = 30.
[2702]1821    CALL getin('ecrit_mth',ecrit_mth_omp)
[1938]1822    !
1823    !Config Key  = ecrit_tra
1824    !Config Desc =
1825    !Config Def  = 30. !tous les 30jours (1 fois par mois)
1826    !Config Help =
1827    !
1828    ecrit_tra_omp = 0.
[2702]1829    CALL getin('ecrit_tra',ecrit_tra_omp)
[1938]1830    !
1831    !Config Key  = ecrit_reg
1832    !Config Desc =
1833    !Config Def  = 0.25  !4 fois par jour
1834    !Config Help =
1835    !
1836    ecrit_reg_omp = 0.25   !4 fois par jour
[2702]1837    CALL getin('ecrit_reg',ecrit_reg_omp)
[1938]1838    !
1839    !
[2240]1840    print*,'CONFPHYS OOK avant drag_ter'
[1938]1841    !
1842    ! PARAMETRES CDRAG
1843    !
1844    f_cdrag_ter_omp = 0.8
[2702]1845    CALL getin('f_cdrag_ter',f_cdrag_ter_omp)
[1938]1846    !
1847    f_cdrag_oce_omp = 0.8
[2702]1848    CALL getin('f_cdrag_oce',f_cdrag_oce_omp)
[1938]1849    !
[2240]1850
[2357]1851    ! Gustiness flags
[2254]1852    f_z0qh_oce_omp = 1.
[2702]1853    CALL getin('f_z0qh_oce',f_z0qh_oce_omp)
[2254]1854    !
[2240]1855    f_qsat_oce_omp = 1.
[2702]1856    CALL getin('f_qsat_oce',f_qsat_oce_omp)
[2240]1857    !
1858    f_gust_bl_omp = 0.
[2702]1859    CALL getin('f_gust_bl',f_gust_bl_omp)
[2240]1860    !
1861    f_gust_wk_omp = 0.
[2702]1862    CALL getin('f_gust_wk',f_gust_wk_omp)
[2240]1863    !
[2455]1864    !Config Key  = iflag_z0_oce
1865    !Config Desc = 0 (z0h=z0m), 1 (diff. equ. for z0h and z0m), -1 (z0m=z0h=z0min)
1866    !Config Def  = 0   ! z0h = z0m
1867    !Config Help =
1868    !
[2243]1869    iflag_z0_oce_omp=0
[2702]1870    CALL getin('iflag_z0_oce',iflag_z0_oce_omp)
[2243]1871    !
[2240]1872    iflag_gusts_omp=0
[2702]1873    CALL getin('iflag_gusts',iflag_gusts_omp)
[2240]1874    !
1875    min_wind_speed_omp = 1.
[2702]1876    CALL getin('min_wind_speed',min_wind_speed_omp)
[2240]1877
[2702]1878    z0m_seaice_omp = 0.002 ; CALL getin('z0m_seaice',z0m_seaice_omp)
1879    z0h_seaice_omp = 0.002 ; CALL getin('z0h_seaice',z0h_seaice_omp)
[2243]1880
[1938]1881    f_rugoro_omp = 0.
[2702]1882    CALL getin('f_rugoro',f_rugoro_omp)
[1687]1883
[2243]1884    z0min_omp = 0.000015
[2702]1885    CALL getin('z0min',z0min_omp)
[2243]1886
1887
[1938]1888    ! PARAMETERS FOR CONVECTIVE INHIBITION BY TROPOS. DRYNESS
1889    !
1890    !Config Key  = supcrit1
1891    !Config Desc =
1892    !Config Def  = .540
1893    !Config Help =
1894    !
1895    supcrit1_omp = .540
[2702]1896    CALL getin('supcrit1',supcrit1_omp)
[1687]1897
[1938]1898    !
1899    !Config Key  = supcrit2
1900    !Config Desc =
1901    !Config Def  = .600
1902    !Config Help =
1903    !
1904    supcrit2_omp = .600
[2702]1905    CALL getin('supcrit2',supcrit2_omp)
[1687]1906
[1938]1907    !
1908    ! PARAMETERS FOR THE MIXING DISTRIBUTION
1909    ! iflag_mix: 0=OLD,
1910    !            1=NEW (JYG),           
1911    !            2=NEW + conv. depth inhib. by tropos. dryness
1912    ! '2' is NOT operationnal and should not be used.
1913    !
1914    !Config Key  = iflag_mix
1915    !Config Desc =
1916    !Config Def  = 1
1917    !Config Help =
1918    !
1919    iflag_mix_omp = 1
[2702]1920    CALL getin('iflag_mix',iflag_mix_omp)
[1687]1921
[2420]1922!
1923    ! PARAMETERS FOR THE EROSION OF THE ADIABATIC ASCENTS
1924    ! iflag_mix_adiab: 0=OLD,
1925    !                  1=NEW (CR),           
1926    !           
[1938]1927    !
[2420]1928    !Config Key  = iflag_mix_adiab
1929    !Config Desc =
1930    !Config Def  = 1
1931    !Config Help =
1932    !
1933    iflag_mix_adiab_omp = 0
[2702]1934    CALL getin('iflag_mix_adiab',iflag_mix_adiab_omp)
[2420]1935
1936    !
[1938]1937    !Config Key  = scut
1938    !Config Desc =
1939    !Config Def  = 0.95
1940    !Config Help =
1941    !
1942    scut_omp = 0.95
[2702]1943    CALL getin('scut',scut_omp)
[1687]1944
[1938]1945    !
1946    !Config Key  = qqa1
1947    !Config Desc =
1948    !Config Def  = 1.0
1949    !Config Help =
1950    !
1951    qqa1_omp = 1.0
[2702]1952    CALL getin('qqa1',qqa1_omp)
[1687]1953
[1938]1954    !
1955    !Config Key  = qqa2
1956    !Config Desc =
1957    !Config Def  = 0.0
1958    !Config Help =
1959    !
1960    qqa2_omp = 0.0
[2702]1961    CALL getin('qqa2',qqa2_omp)
[1687]1962
[1938]1963    !
1964    !Config Key  = gammas
1965    !Config Desc =
1966    !Config Def  = 0.05
1967    !Config Help =
1968    !
1969    gammas_omp = 0.05
[2702]1970    CALL getin('gammas',gammas_omp)
[1687]1971
[1938]1972    !
1973    !Config Key  = Fmax
1974    !Config Desc =
1975    !Config Def  = 0.65
1976    !Config Help =
1977    !
1978    Fmax_omp = 0.65
[2702]1979    CALL getin('Fmax',Fmax_omp)
[1687]1980
[1938]1981    !
[2287]1982    !Config Key  = tmax_fonte_cv
1983    !Config Desc =
1984    !Config Def  = 275.15
1985    !Config Help =
1986    !
1987    tmax_fonte_cv_omp = 275.15
[2702]1988    CALL getin('tmax_fonte_cv',tmax_fonte_cv_omp)
[2287]1989
1990    !
[1938]1991    !Config Key  = alphas 
1992    !Config Desc =
1993    !Config Def  = -5.
1994    !Config Help =
1995    !
1996    alphas_omp = -5.
[2702]1997    CALL getin('alphas',alphas_omp)
[1687]1998
[1938]1999    !Config key = ok_strato
2000    !Config  Desc = activation de la version strato
2001    !Config  Def  = .FALSE.
[2110]2002    !Config  Help = active la version stratosph\'erique de LMDZ de F. Lott
[2357]2003    !               Et la sponge layer (Runs Stratospheriques)
[1687]2004
[1938]2005    ok_strato_omp=.FALSE.
2006    CALL getin('ok_strato',ok_strato_omp)
[1687]2007
[1938]2008    !Config  key = ok_hines
2009    !Config  Desc = activation de la parametrisation de hines
2010    !Config  Def  = .FALSE.
2011    !Config  Help = Clefs controlant la parametrization de Hines
[1687]2012
[1938]2013    ok_hines_omp=.FALSE.
2014    CALL getin('ok_hines',ok_hines_omp)
[1687]2015
[2357]2016    !  Parametres pour les ondes de gravite
2017    ! 
2018    !  Subgrid Scale Orography (Lott Miller (1997), Lott (1999))
2019
2020    sso_gkdrag_omp = merge(0.1875, 0.2, ok_strato_omp)
2021    CALL getin('sso_gkdrag', sso_gkdrag_omp)
2022
2023    sso_grahil_omp=merge(0.1,1.,ok_strato_omp)
2024    CALL getin('sso_grahil', sso_grahil_omp)
2025
2026    sso_grcrit_omp =merge(1.,0.01,ok_strato_omp)
2027    CALL getin('sso_grcrit', sso_grcrit_omp)
2028
2029    sso_gfrcri_omp = 1.
2030    CALL getin('sso_gfrcri', sso_gfrcri_omp)
2031
2032    sso_gkwake_omp = 0.50
2033    CALL getin('sso_gkwake', sso_gkwake_omp)
2034
2035    sso_gklift_omp = merge(0.25,0.50,ok_strato_omp)
2036    CALL getin('sso_gklift', sso_gklift_omp)
2037
[1938]2038    ! Random gravity waves:
[1687]2039
[1938]2040    ok_gwd_rando_omp = .FALSE.
[2179]2041    IF ( klon_glo == 1 ) THEN
2042       print*,'La parametrisation des ondes de gravites non orographiques'
2043       print*,'ne fonctionne pas en 1D'
2044    ELSE
2045       CALL getin('ok_gwd_rando', ok_gwd_rando_omp)
2046    ENDIF
[1687]2047
[2357]2048    gwd_rando_ruwmax_omp = 2.00
2049    CALL getin('gwd_rando_ruwmax', gwd_rando_ruwmax_omp)
[1687]2050
[2072]2051    gwd_rando_sat_omp = 0.25
2052    CALL getin('gwd_rando_sat', gwd_rando_sat_omp)
[1938]2053
[2357]2054    gwd_front_ruwmax_omp = 2.50
2055    CALL getin('gwd_front_ruwmax', gwd_front_ruwmax_omp)
2056
2057    gwd_front_sat_omp = 0.60
2058    CALL getin('gwd_front_sat', gwd_front_sat_omp)
2059
2060
[2136]2061    !Config  key = ok_qch4
2062    !Config  Desc = activation de la parametrisation du methane
2063    !Config  Def  = .FALSE.
2064    !Config  Help = Clef controlant l'activation de la parametrisation
2065    !               de l'humidite due a oxydation+photolyse du methane strato
2066
2067    ok_qch4_omp=.FALSE.
2068    CALL getin('ok_qch4',ok_qch4_omp)
2069
[1938]2070    !Config Key  = OK_LES                                               
2071    !Config Desc = Pour des sorties LES                                 
[2702]2072    !Config Def  = .FALSE.                                             
[1938]2073    !Config Help = Pour creer le fichier histLES contenant les sorties 
2074    !              LES                                                 
2075    !                                                                   
[2702]2076    ok_LES_omp = .FALSE.                                             
2077    CALL getin('OK_LES', ok_LES_omp)                                 
[1938]2078
2079    !Config Key  = callstats                                               
2080    !Config Desc = Pour des sorties callstats                                 
[2702]2081    !Config Def  = .FALSE.                                             
[1938]2082    !Config Help = Pour creer le fichier stats contenant les sorties 
2083    !              stats                                                 
2084    !                                                                   
[2702]2085    callstats_omp = .FALSE.                                             
2086    CALL getin('callstats', callstats_omp)                                 
[1938]2087    !
2088    !Config Key  = ecrit_LES
2089    !Config Desc = Frequence d'ecriture des resultats du LES en nombre de jours;
2090    !              par defaut 1., i.e. 1 jour
2091    !Config Def  = 1./8.
2092    !Config Help = ...
2093    !
2094    !
[2788]2095    adjust_tropopause = .FALSE.
2096    CALL getin('adjust_tropopause', adjust_tropopause_omp)
2097    !
2098    !Config Key  = adjust_tropopause
2099    !Config Desc = Adjust the ozone field from the climoz file by stretching its
2100    !              tropopause so that it matches the one of LMDZ.
2101    !Config Def  = .FALSE.
2102    !Config Help = Ensure tropospheric ozone column conservation.
2103    !
2104    !
[2820]2105    ok_daily_climoz = .FALSE.
[2788]2106    CALL getin('ok_daily_climoz', ok_daily_climoz_omp)
2107    !
2108    !Config Key  = ok_daily_climoz
2109    !Config Desc = Interpolate in time the ozone forcings within ce0l.
2110    !              .TRUE. if backward compatibility is needed.
2111    !Config Def  = .TRUE.
2112    !Config Help = .FALSE. ensure much fewer (no calendar dependency)
2113    !  and lighter monthly climoz files, inetrpolated in time at gcm run time.
2114    !
[1938]2115    ecrit_LES_omp = 1./8.
[2702]2116    CALL getin('ecrit_LES', ecrit_LES_omp)
[1938]2117    !
2118    read_climoz = 0 ! default value
[2702]2119    CALL getin('read_climoz', read_climoz)
[1938]2120
2121    carbon_cycle_tr_omp=.FALSE.
2122    CALL getin('carbon_cycle_tr',carbon_cycle_tr_omp)
2123
2124    carbon_cycle_cpl_omp=.FALSE.
2125    CALL getin('carbon_cycle_cpl',carbon_cycle_cpl_omp)
2126
2127    !$OMP END MASTER
2128    !$OMP BARRIER
2129
[1687]2130    R_ecc = R_ecc_omp
2131    R_peri = R_peri_omp
2132    R_incl = R_incl_omp
2133    solaire = solaire_omp
[2524]2134    ok_suntime_rrtm = ok_suntime_rrtm_omp
[1687]2135    co2_ppm = co2_ppm_omp
2136    RCO2 = RCO2_omp
2137    CH4_ppb = CH4_ppb_omp
2138    RCH4 = RCH4_omp
2139    N2O_ppb = N2O_ppb_omp
2140    RN2O = RN2O_omp
2141    CFC11_ppt = CFC11_ppt_omp
2142    RCFC11 = RCFC11_omp
2143    CFC12_ppt = CFC12_ppt_omp
2144    RCFC12 = RCFC12_omp
2145    RCO2_act = RCO2
2146    RCH4_act = RCH4
2147    RN2O_act = RN2O
2148    RCFC11_act = RCFC11
2149    RCFC12_act = RCFC12
2150    RCO2_per = RCO2_per_omp
2151    RCH4_per = RCH4_per_omp
2152    RN2O_per = RN2O_per_omp
2153    RCFC11_per = RCFC11_per_omp
2154    RCFC12_per = RCFC12_per_omp
[1938]2155
[3411]2156    cycle_diurne = cycle_diurne_omp
[1687]2157    soil_model = soil_model_omp
2158    new_oliq = new_oliq_omp
2159    ok_orodr = ok_orodr_omp
2160    ok_orolf = ok_orolf_omp
2161    ok_limitvrai = ok_limitvrai_omp
2162    nbapp_rad = nbapp_rad_omp
2163    iflag_con = iflag_con_omp
[2707]2164    nbapp_cv = nbapp_cv_omp
[2730]2165    nbapp_wk = nbapp_wk_omp
[1753]2166    iflag_ener_conserv = iflag_ener_conserv_omp
[2007]2167    ok_conserv_q = ok_conserv_q_omp
[1894]2168    iflag_fisrtilp_qsat = iflag_fisrtilp_qsat_omp
[2415]2169    iflag_bergeron = iflag_bergeron_omp
[1687]2170
2171    epmax = epmax_omp
[2481]2172    coef_epmax_cape = coef_epmax_cape_omp
[1687]2173    ok_adj_ema = ok_adj_ema_omp
2174    iflag_clw = iflag_clw_omp
2175    cld_lc_lsc = cld_lc_lsc_omp
2176    cld_lc_con = cld_lc_con_omp
2177    cld_tau_lsc = cld_tau_lsc_omp
2178    cld_tau_con = cld_tau_con_omp
2179    ffallv_lsc = ffallv_lsc_omp
2180    ffallv_con = ffallv_con_omp
2181    coef_eva = coef_eva_omp
2182    reevap_ice = reevap_ice_omp
2183    iflag_pdf = iflag_pdf_omp
2184    solarlong0 = solarlong0_omp
2185    qsol0 = qsol0_omp
[1894]2186    evap0 = evap0_omp
2187    albsno0 = albsno0_omp
[2915]2188    iflag_sic = iflag_sic_omp
[1687]2189    inertie_sol = inertie_sol_omp
[2915]2190    inertie_sic = inertie_sic_omp
2191    inertie_lic = inertie_lic_omp
[1687]2192    inertie_sno = inertie_sno_omp
2193    rad_froid = rad_froid_omp
2194    rad_chau1 = rad_chau1_omp
2195    rad_chau2 = rad_chau2_omp
2196    t_glace_min = t_glace_min_omp
2197    t_glace_max = t_glace_max_omp
[2006]2198    exposant_glace = exposant_glace_omp
2199    iflag_t_glace = iflag_t_glace_omp
[2547]2200    iflag_cloudth_vert=iflag_cloudth_vert_omp
[2945]2201    iflag_rain_incloud_vol=iflag_rain_incloud_vol_omp
[1849]2202    iflag_ice_thermo = iflag_ice_thermo_omp
[1687]2203    rei_min = rei_min_omp
2204    rei_max = rei_max_omp
2205    top_height = top_height_omp
2206    overlap = overlap_omp
2207    cdmmax = cdmmax_omp
2208    cdhmax = cdhmax_omp
2209    ksta = ksta_omp
2210    ksta_ter = ksta_ter_omp
[2126]2211    f_ri_cd_min = f_ri_cd_min_omp
[1687]2212    ok_kzmin = ok_kzmin_omp
[2561]2213    pbl_lmixmin_alpha=pbl_lmixmin_alpha_omp
[1687]2214    fmagic = fmagic_omp
2215    pmagic = pmagic_omp
2216    iflag_pbl = iflag_pbl_omp
[2159]2217    iflag_pbl_split = iflag_pbl_split_omp
[2952]2218!FC
2219    ifl_pbltree = ifl_pbltree_omp
2220    Cd_frein    =Cd_frein_omp
[2455]2221    iflag_order2_sollw = iflag_order2_sollw_omp
[1687]2222    lev_histhf = lev_histhf_omp
2223    lev_histday = lev_histday_omp
2224    lev_histmth = lev_histmth_omp
2225    lev_histins = lev_histins_omp
2226    lev_histLES = lev_histLES_omp
2227    lev_histdayNMC = lev_histdayNMC_omp
[1828]2228    levout_histNMC = levout_histNMC_omp
[1687]2229    ok_histNMC(:) = ok_histNMC_omp(:)
2230    freq_outNMC(:) = freq_outNMC_omp(:)
2231    freq_calNMC(:) = freq_calNMC_omp(:)
2232
2233    type_ocean = type_ocean_omp
2234    version_ocean = version_ocean_omp
[2075]2235    t_coupl = t_coupl_omp
[1724]2236
[2702]2237    ok_veget=.TRUE.
[1724]2238    type_veget=type_veget_omp
[2702]2239    IF (type_veget=='n' .or. type_veget=='bucket' .or. type_veget=='betaclim') THEN
2240       ok_veget=.FALSE.
2241    ENDIF
[1865]2242    ! Martin
2243    ok_snow = ok_snow_omp
2244    ! Martin
[1724]2245
[2114]2246    ok_all_xml = ok_all_xml_omp
[1687]2247    ok_newmicro = ok_newmicro_omp
2248    ok_journe = ok_journe_omp
2249    ok_hf = ok_hf_omp
2250    ok_mensuel = ok_mensuel_omp
2251    ok_instan = ok_instan_omp
2252    freq_ISCCP = freq_ISCCP_omp
2253    ecrit_ISCCP = ecrit_ISCCP_omp
2254    freq_COSP = freq_COSP_omp
[2580]2255    freq_AIRS = freq_AIRS_omp
[1687]2256    ok_ade = ok_ade_omp
2257    ok_aie = ok_aie_omp
[2738]2258    ok_alw = ok_alw_omp
[1712]2259    ok_cdnc = ok_cdnc_omp
[1687]2260    aerosol_couple = aerosol_couple_omp
2261    flag_aerosol=flag_aerosol_omp
[1764]2262    flag_aerosol_strat=flag_aerosol_strat_omp
[2644]2263    flag_bc_internal_mixture=flag_bc_internal_mixture_omp
[1687]2264    new_aod=new_aod_omp
2265    aer_type = aer_type_omp
2266    bl95_b0 = bl95_b0_omp
2267    bl95_b1 = bl95_b1_omp
2268    fact_cldcon = fact_cldcon_omp
2269    facttemps = facttemps_omp
2270    ratqsbas = ratqsbas_omp
2271    ratqshaut = ratqshaut_omp
2272    tau_ratqs = tau_ratqs_omp
2273
2274    iflag_radia = iflag_radia_omp
2275    iflag_rrtm = iflag_rrtm_omp
[2305]2276    iflag_albedo = iflag_albedo_omp
2277    ok_chlorophyll = ok_chlorophyll_omp
[1989]2278    NSW = NSW_omp
[2236]2279    iflag_cld_th = iflag_cld_th_omp
[2205]2280    iflag_cld_cv = iflag_cld_cv_omp
2281    tau_cld_cv = tau_cld_cv_omp
2282    coefw_cld_cv = coefw_cld_cv_omp
[1687]2283    iflag_ratqs = iflag_ratqs_omp
2284    ip_ebil_phy = ip_ebil_phy_omp
2285    iflag_thermals = iflag_thermals_omp
2286    iflag_thermals_ed = iflag_thermals_ed_omp
[2000]2287    fact_thermals_ed_dz = fact_thermals_ed_dz_omp
[1687]2288    iflag_thermals_optflux = iflag_thermals_optflux_omp
[1998]2289    iflag_thermals_closure = iflag_thermals_closure_omp
[1687]2290    nsplit_thermals = nsplit_thermals_omp
2291    tau_thermals = tau_thermals_omp
2292    alp_bl_k = alp_bl_k_omp
[1938]2293    ! nrlmd le 10/04/2012
[1687]2294    iflag_trig_bl = iflag_trig_bl_omp
2295    s_trig = s_trig_omp
2296    tau_trig_shallow = tau_trig_shallow_omp
2297    tau_trig_deep = tau_trig_deep_omp
2298    iflag_clos_bl = iflag_clos_bl_omp
[1938]2299    ! fin nrlmd le 10/04/2012
[1687]2300    iflag_coupl = iflag_coupl_omp
2301    iflag_clos = iflag_clos_omp
2302    iflag_wake = iflag_wake_omp
[2201]2303    coef_clos_ls = coef_clos_ls_omp
[1687]2304    alp_offset = alp_offset_omp
2305    iflag_cvl_sigd = iflag_cvl_sigd_omp
2306    type_run = type_run_omp
2307    ok_cosp = ok_cosp_omp
[2580]2308    ok_airs = ok_airs_omp
2309
[1687]2310    ok_mensuelCOSP = ok_mensuelCOSP_omp
2311    ok_journeCOSP = ok_journeCOSP_omp
2312    ok_hfCOSP = ok_hfCOSP_omp
2313    seuil_inversion=seuil_inversion_omp
2314    lonmin_ins = lonmin_ins_omp
2315    lonmax_ins = lonmax_ins_omp
2316    latmin_ins = latmin_ins_omp
2317    latmax_ins = latmax_ins_omp
2318    ecrit_hf   = ecrit_hf_omp
2319    ecrit_ins   = ecrit_ins_omp
2320    ecrit_day = ecrit_day_omp
2321    ecrit_mth = ecrit_mth_omp
2322    ecrit_tra = ecrit_tra_omp
2323    ecrit_reg = ecrit_reg_omp
[2253]2324    cvl_comp_threshold = cvl_comp_threshold_omp
2325    cvl_sig2feed = cvl_sig2feed_omp
[1687]2326    cvl_corr = cvl_corr_omp
2327    ok_lic_melt = ok_lic_melt_omp
[3022]2328    ok_lic_cond = ok_lic_cond_omp
[1687]2329    f_cdrag_ter=f_cdrag_ter_omp
2330    f_cdrag_oce=f_cdrag_oce_omp
[2240]2331
2332    f_gust_wk=f_gust_wk_omp
2333    f_gust_bl=f_gust_bl_omp
2334    f_qsat_oce=f_qsat_oce_omp
[2254]2335    f_z0qh_oce=f_z0qh_oce_omp
[2240]2336    min_wind_speed=min_wind_speed_omp
2337    iflag_gusts=iflag_gusts_omp
[2243]2338    iflag_z0_oce=iflag_z0_oce_omp
[2240]2339
[2243]2340    z0m_seaice=z0m_seaice_omp
2341    z0h_seaice=z0h_seaice_omp
2342
[1687]2343    f_rugoro=f_rugoro_omp
[2243]2344
2345    z0min=z0min_omp
[1687]2346    supcrit1 = supcrit1_omp
2347    supcrit2 = supcrit2_omp
2348    iflag_mix = iflag_mix_omp
[2420]2349    iflag_mix_adiab = iflag_mix_adiab_omp
[1687]2350    scut = scut_omp
2351    qqa1 = qqa1_omp
2352    qqa2 = qqa2_omp
2353    gammas = gammas_omp
2354    Fmax = Fmax_omp
[2287]2355    tmax_fonte_cv = tmax_fonte_cv_omp
[1687]2356    alphas = alphas_omp
[2357]2357
2358    gkdrag=sso_gkdrag_omp
2359    grahilo=sso_grahil_omp
2360    grcrit=sso_grcrit_omp
2361    gfrcrit=sso_gfrcri_omp
2362    gkwake=sso_gkwake_omp
2363    gklift=sso_gklift_omp
2364
[1687]2365    ok_strato = ok_strato_omp
2366    ok_hines = ok_hines_omp
[1938]2367    ok_gwd_rando = ok_gwd_rando_omp
[2357]2368    gwd_rando_ruwmax = gwd_rando_ruwmax_omp
[2072]2369    gwd_rando_sat = gwd_rando_sat_omp
[2357]2370    gwd_front_ruwmax = gwd_front_ruwmax_omp
2371    gwd_front_sat = gwd_front_sat_omp
[2136]2372    ok_qch4 = ok_qch4_omp
[1687]2373    ok_LES = ok_LES_omp
2374    callstats = callstats_omp
2375    ecrit_LES = ecrit_LES_omp
[2788]2376    adjust_tropopause = adjust_tropopause_omp
2377    ok_daily_climoz = ok_daily_climoz_omp
[1687]2378    carbon_cycle_tr = carbon_cycle_tr_omp
2379    carbon_cycle_cpl = carbon_cycle_cpl_omp
2380
[1938]2381    ! Test of coherence between type_ocean and version_ocean
[1687]2382    IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN
2383       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration'
[2311]2384       CALL abort_physic('conf_phys','version_ocean not valid',1)
[2702]2385    ENDIF
[1687]2386
2387    IF (type_ocean=='slab' .AND. version_ocean=='xxxxxx') THEN
2388       version_ocean='sicOBS'
[2057]2389    ELSE IF (type_ocean=='slab' .AND. version_ocean/='sicOBS' &
[2357]2390         .AND. version_ocean/='sicINT' .AND. version_ocean/='sicNO') THEN
[1687]2391       WRITE(lunout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean'
[2311]2392       CALL abort_physic('conf_phys','version_ocean not valid',1)
[2702]2393    ENDIF
[1687]2394
[2413]2395    !--test on radiative scheme
2396    IF (iflag_rrtm .EQ. 0) THEN
2397      IF (NSW.NE.2) THEN
2398        WRITE(lunout,*) ' ERROR iflag_rrtm=0 and NSW<>2 not possible'
2399        CALL abort_physic('conf_phys','choice NSW not valid',1)
2400      ENDIF
2401    ELSE IF (iflag_rrtm .EQ. 1) THEN
2402      IF (NSW.NE.2.AND.NSW.NE.4.AND.NSW.NE.6) THEN
2403        WRITE(lunout,*) ' ERROR iflag_rrtm=1 and NSW<>2,4,6 not possible'
2404        CALL abort_physic('conf_phys','choice NSW not valid',1)
2405      ENDIF
2406    ELSE
2407       WRITE(lunout,*) ' ERROR iflag_rrtm<>0,1'
2408       CALL abort_physic('conf_phys','choice iflag_rrtm not valid',1)
2409    ENDIF
[2701]2410#ifdef CPP_StratAer
2411    IF (iflag_rrtm .NE. 1) THEN
2412       WRITE(lunout,*) ' ERROR iflag_rrtm<>1 but StratAer activated'
2413       CALL abort_physic('conf_phys','iflag_rrtm not valid for StratAer',1)
2414    ENDIF
[2702]2415    IF (NSW .NE. 6) THEN
2416       WRITE(lunout,*) ' ERROR NSW<>6 but StratAer activated'
2417       CALL abort_physic('conf_phys','NSW not valid for StratAer',1)
2418    ENDIF
[2701]2419#endif
[2413]2420
2421    !--test on ocean surface albedo
[3002]2422    IF (iflag_albedo.LT.0.OR.iflag_albedo.GT.2) THEN
[2413]2423       WRITE(lunout,*) ' ERROR iflag_albedo<>0,1'
2424       CALL abort_physic('conf_phys','choice iflag_albedo not valid',1)
2425    ENDIF
2426
[1938]2427    ! Test sur new_aod. Ce flag permet de retrouver les resultats de l'AR4
2428    ! il n'est utilisable que lors du couplage avec le SO4 seul
[1687]2429    IF (ok_ade .OR. ok_aie) THEN
2430       IF ( flag_aerosol .EQ. 0 ) THEN
[2311]2431          CALL abort_physic('conf_phys','flag_aerosol=0 not compatible avec ok_ade ou ok_aie=.TRUE.',1)
[2702]2432       ENDIF
[1687]2433       IF ( .NOT. new_aod .AND.  flag_aerosol .NE. 1) THEN
[2311]2434          CALL abort_physic('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)
[2702]2435       ENDIF
2436    ENDIF
[1687]2437
[2456]2438    ! Flag_aerosol cannot be to zero if we are in coupled mode for aerosol
[3411]2439    IF (aerosol_couple .AND. flag_aerosol .eq. 0 ) THEN
[2456]2440       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if aerosol_couple=y ', 1)
2441    ENDIF
2442
2443    ! flag_aerosol need to be different to zero if ok_cdnc is activated
[3411]2444    IF (ok_cdnc .AND. flag_aerosol .eq. 0) THEN
[2456]2445       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if ok_cdnc is activated ', 1)
2446    ENDIF
2447
[1938]2448    ! ok_cdnc must be set to y if ok_aie is activated
[1712]2449    IF (ok_aie .AND. .NOT. ok_cdnc) THEN
[2311]2450       CALL abort_physic('conf_phys', 'ok_cdnc must be set to y if ok_aie is activated',1)
[1938]2451    ENDIF
[1712]2452
[2644]2453    ! BC internal mixture is only possible with RRTM & NSW=6 & flag_aerosol=6 or aerosol_couple
2454    IF (flag_bc_internal_mixture .AND. NSW.NE.6) THEN
2455       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with NSW=6',1)
2456    ENDIF
2457    IF (flag_bc_internal_mixture .AND. iflag_rrtm.NE.1) THEN
2458       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with RRTM',1)
2459    ENDIF
2460    IF (flag_bc_internal_mixture .AND. flag_aerosol.NE.6) THEN
2461       CALL abort_physic('conf_phys', 'flag_bc_internal_mixture can only be activated with flag_aerosol=6',1)
2462    ENDIF
2463
[2952]2464    ! ORCHIDEE must be activated for ifl_pbltree=1
2465    IF (.NOT. ok_veget .AND. ifl_pbltree==1) THEN
[3411]2466       WRITE(lunout,*)' ORCHIDEE must be activated for ifl_pbltree=1'
2467       CALL abort_physic('conf_phys','ok_veget and ifl_pbltree not coherent',1)
[2952]2468    END IF
2469
[1938]2470    !$OMP MASTER
[1687]2471
[1938]2472    write(lunout,*)' ##############################################'
2473    write(lunout,*)' Configuration des parametres de la physique: '
2474    write(lunout,*)' Type ocean = ', type_ocean
2475    write(lunout,*)' Version ocean = ', version_ocean
2476    write(lunout,*)' Config veget = ', ok_veget,type_veget
2477    write(lunout,*)' Snow model SISVAT : ok_snow = ', ok_snow
[2114]2478    write(lunout,*)' Config xml pour XIOS : ok_all_xml = ', ok_all_xml
[1938]2479    write(lunout,*)' Sortie journaliere = ', ok_journe
2480    write(lunout,*)' Sortie haute frequence = ', ok_hf
2481    write(lunout,*)' Sortie mensuelle = ', ok_mensuel
2482    write(lunout,*)' Sortie instantanee = ', ok_instan
2483    write(lunout,*)' Frequence appel simulateur ISCCP, freq_ISCCP =', freq_ISCCP
2484    write(lunout,*)' Frequence appel simulateur ISCCP, ecrit_ISCCP =', ecrit_ISCCP
2485    write(lunout,*)' Frequence appel simulateur COSP, freq_COSP =', freq_COSP
[2580]2486    write(lunout,*)' Frequence appel simulateur AIRS, freq_AIRS =', freq_AIRS
[1938]2487    write(lunout,*)' Sortie bilan d''energie, ip_ebil_phy =', ip_ebil_phy
2488    write(lunout,*)' Excentricite = ',R_ecc
2489    write(lunout,*)' Equinoxe = ',R_peri
2490    write(lunout,*)' Inclinaison =',R_incl
2491    write(lunout,*)' Constante solaire =',solaire
[2524]2492    write(lunout,*)' ok_suntime_rrtm =',ok_suntime_rrtm
[1938]2493    write(lunout,*)' co2_ppm =',co2_ppm
2494    write(lunout,*)' RCO2_act = ',RCO2_act
2495    write(lunout,*)' CH4_ppb =',CH4_ppb,' RCH4_act = ',RCH4_act
2496    write(lunout,*)' N2O_ppb =',N2O_ppb,' RN2O_act=  ',RN2O_act
2497    write(lunout,*)' CFC11_ppt=',CFC11_ppt,' RCFC11_act=  ',RCFC11_act
2498    write(lunout,*)' CFC12_ppt=',CFC12_ppt,' RCFC12_act=  ',RCFC12_act
2499    write(lunout,*)' RCO2_per = ',RCO2_per,' RCH4_per = ', RCH4_per
2500    write(lunout,*)' RN2O_per = ',RN2O_per,' RCFC11_per = ', RCFC11_per
2501    write(lunout,*)' RCFC12_per = ',RCFC12_per
[2253]2502    write(lunout,*)' cvl_comp_threshold=', cvl_comp_threshold
2503    write(lunout,*)' cvl_sig2feed=', cvl_sig2feed
[1938]2504    write(lunout,*)' cvl_corr=', cvl_corr
2505    write(lunout,*)'ok_lic_melt=', ok_lic_melt
[3022]2506    write(lunout,*)'ok_lic_cond=', ok_lic_cond
[3411]2507    write(lunout,*)'cycle_diurne=',cycle_diurne
[1938]2508    write(lunout,*)'soil_model=',soil_model
2509    write(lunout,*)'new_oliq=',new_oliq
2510    write(lunout,*)'ok_orodr=',ok_orodr
2511    write(lunout,*)'ok_orolf=',ok_orolf
2512    write(lunout,*)'ok_limitvrai=',ok_limitvrai
2513    write(lunout,*)'nbapp_rad=',nbapp_rad
2514    write(lunout,*)'iflag_con=',iflag_con
[2707]2515    write(lunout,*)'nbapp_cv=',nbapp_cv
[2730]2516    write(lunout,*)'nbapp_wk=',nbapp_wk
[1938]2517    write(lunout,*)'iflag_ener_conserv=',iflag_ener_conserv
[2007]2518    write(lunout,*)'ok_conserv_q=',ok_conserv_q
[1938]2519    write(lunout,*)'iflag_fisrtilp_qsat=',iflag_fisrtilp_qsat
[2415]2520    write(lunout,*)'iflag_bergeron=',iflag_bergeron
[1938]2521    write(lunout,*)' epmax = ', epmax
[2481]2522    write(lunout,*)' coef_epmax_cape = ', coef_epmax_cape
[1938]2523    write(lunout,*)' ok_adj_ema = ', ok_adj_ema
2524    write(lunout,*)' iflag_clw = ', iflag_clw
2525    write(lunout,*)' cld_lc_lsc = ', cld_lc_lsc
2526    write(lunout,*)' cld_lc_con = ', cld_lc_con
2527    write(lunout,*)' cld_tau_lsc = ', cld_tau_lsc
2528    write(lunout,*)' cld_tau_con = ', cld_tau_con
2529    write(lunout,*)' ffallv_lsc = ', ffallv_lsc
2530    write(lunout,*)' ffallv_con = ', ffallv_con
2531    write(lunout,*)' coef_eva = ', coef_eva
2532    write(lunout,*)' reevap_ice = ', reevap_ice
2533    write(lunout,*)' iflag_pdf = ', iflag_pdf
[2236]2534    write(lunout,*)' iflag_cld_th = ', iflag_cld_th
[2205]2535    write(lunout,*)' iflag_cld_cv = ', iflag_cld_cv
2536    write(lunout,*)' tau_cld_cv = ', tau_cld_cv
2537    write(lunout,*)' coefw_cld_cv = ', coefw_cld_cv
[1938]2538    write(lunout,*)' iflag_radia = ', iflag_radia
2539    write(lunout,*)' iflag_rrtm = ', iflag_rrtm
[1989]2540    write(lunout,*)' NSW = ', NSW
[2227]2541    write(lunout,*)' iflag_albedo = ', iflag_albedo !albedo SB
2542    write(lunout,*)' ok_chlorophyll =',ok_chlorophyll ! albedo SB
[1938]2543    write(lunout,*)' iflag_ratqs = ', iflag_ratqs
2544    write(lunout,*)' seuil_inversion = ', seuil_inversion
2545    write(lunout,*)' fact_cldcon = ', fact_cldcon
2546    write(lunout,*)' facttemps = ', facttemps
2547    write(lunout,*)' ok_newmicro = ',ok_newmicro
2548    write(lunout,*)' ratqsbas = ',ratqsbas
2549    write(lunout,*)' ratqshaut = ',ratqshaut
2550    write(lunout,*)' tau_ratqs = ',tau_ratqs
2551    write(lunout,*)' top_height = ',top_height
2552    write(lunout,*)' rad_froid = ',rad_froid
2553    write(lunout,*)' rad_chau1 = ',rad_chau1
2554    write(lunout,*)' rad_chau2 = ',rad_chau2
2555    write(lunout,*)' t_glace_min = ',t_glace_min
2556    write(lunout,*)' t_glace_max = ',t_glace_max
[2006]2557    write(lunout,*)' exposant_glace = ',exposant_glace
2558    write(lunout,*)' iflag_t_glace = ',iflag_t_glace
[2547]2559    write(lunout,*)' iflag_cloudth_vert = ',iflag_cloudth_vert
[2945]2560    write(lunout,*)' iflag_rain_incloud_vol = ',iflag_rain_incloud_vol
[1938]2561    write(lunout,*)' iflag_ice_thermo = ',iflag_ice_thermo
2562    write(lunout,*)' rei_min = ',rei_min
2563    write(lunout,*)' rei_max = ',rei_max
2564    write(lunout,*)' overlap = ',overlap
2565    write(lunout,*)' cdmmax = ',cdmmax
2566    write(lunout,*)' cdhmax = ',cdhmax
2567    write(lunout,*)' ksta = ',ksta
2568    write(lunout,*)' ksta_ter = ',ksta_ter
[2126]2569    write(lunout,*)' f_ri_cd_min = ',f_ri_cd_min
[1938]2570    write(lunout,*)' ok_kzmin = ',ok_kzmin
[2561]2571    write(lunout,*)' pbl_lmixmin_alpha = ',pbl_lmixmin_alpha
[1938]2572    write(lunout,*)' fmagic = ',fmagic
2573    write(lunout,*)' pmagic = ',pmagic
2574    write(lunout,*)' ok_ade = ',ok_ade
2575    write(lunout,*)' ok_aie = ',ok_aie
[2738]2576    write(lunout,*)' ok_alw = ',ok_alw
[1938]2577    write(lunout,*)' aerosol_couple = ', aerosol_couple
2578    write(lunout,*)' flag_aerosol = ', flag_aerosol
[2788]2579    write(lunout,*)' flag_aerosol_strat= ', flag_aerosol_strat
[1938]2580    write(lunout,*)' new_aod = ', new_aod
2581    write(lunout,*)' aer_type = ',aer_type
2582    write(lunout,*)' bl95_b0 = ',bl95_b0
2583    write(lunout,*)' bl95_b1 = ',bl95_b1
2584    write(lunout,*)' lev_histhf = ',lev_histhf
2585    write(lunout,*)' lev_histday = ',lev_histday
2586    write(lunout,*)' lev_histmth = ',lev_histmth
2587    write(lunout,*)' lev_histins = ',lev_histins
2588    write(lunout,*)' lev_histLES = ',lev_histLES
2589    write(lunout,*)' lev_histdayNMC = ',lev_histdayNMC
2590    write(lunout,*)' levout_histNMC = ',levout_histNMC
2591    write(lunout,*)' ok_histNMC = ',ok_histNMC
2592    write(lunout,*)' freq_outNMC = ',freq_outNMC
2593    write(lunout,*)' freq_calNMC = ',freq_calNMC
2594    write(lunout,*)' iflag_pbl = ', iflag_pbl
[2952]2595!FC
2596    write(lunout,*)' ifl_pbltree = ', ifl_pbltree
2597    write(lunout,*)' Cd_frein = ', Cd_frein
[2159]2598    write(lunout,*)' iflag_pbl_split = ', iflag_pbl_split
[2455]2599    write(lunout,*)' iflag_order2_sollw = ', iflag_order2_sollw
[1938]2600    write(lunout,*)' iflag_thermals = ', iflag_thermals
2601    write(lunout,*)' iflag_thermals_ed = ', iflag_thermals_ed
[2000]2602    write(lunout,*)' fact_thermals_ed_dz = ', fact_thermals_ed_dz
[1938]2603    write(lunout,*)' iflag_thermals_optflux = ', iflag_thermals_optflux
[1998]2604    write(lunout,*)' iflag_thermals_closure = ', iflag_thermals_closure
[1938]2605    write(lunout,*)' iflag_clos = ', iflag_clos
[2201]2606    write(lunout,*)' coef_clos_ls = ', coef_clos_ls
[1938]2607    write(lunout,*)' type_run = ',type_run
2608    write(lunout,*)' ok_cosp = ',ok_cosp
[2580]2609    write(lunout,*)' ok_airs = ',ok_airs
2610
[1938]2611    write(lunout,*)' ok_mensuelCOSP = ',ok_mensuelCOSP
2612    write(lunout,*)' ok_journeCOSP = ',ok_journeCOSP
2613    write(lunout,*)' ok_hfCOSP =',ok_hfCOSP
2614    write(lunout,*)' solarlong0 = ', solarlong0
2615    write(lunout,*)' qsol0 = ', qsol0
2616    write(lunout,*)' evap0 = ', evap0
2617    write(lunout,*)' albsno0 = ', albsno0
[2915]2618    write(lunout,*)' iflag_sic = ', iflag_sic
[1938]2619    write(lunout,*)' inertie_sol = ', inertie_sol
[2915]2620    write(lunout,*)' inertie_sic = ', inertie_sic
2621    write(lunout,*)' inertie_lic = ', inertie_lic
[1938]2622    write(lunout,*)' inertie_sno = ', inertie_sno
2623    write(lunout,*)' f_cdrag_ter = ',f_cdrag_ter
2624    write(lunout,*)' f_cdrag_oce = ',f_cdrag_oce
2625    write(lunout,*)' f_rugoro = ',f_rugoro
[2243]2626    write(lunout,*)' z0min = ',z0min
[1938]2627    write(lunout,*)' supcrit1 = ', supcrit1
2628    write(lunout,*)' supcrit2 = ', supcrit2
2629    write(lunout,*)' iflag_mix = ', iflag_mix
[2420]2630    write(lunout,*)' iflag_mix_adiab = ', iflag_mix_adiab
[1938]2631    write(lunout,*)' scut = ', scut
2632    write(lunout,*)' qqa1 = ', qqa1
2633    write(lunout,*)' qqa2 = ', qqa2
2634    write(lunout,*)' gammas = ', gammas
2635    write(lunout,*)' Fmax = ', Fmax
[2287]2636    write(lunout,*)' tmax_fonte_cv = ', tmax_fonte_cv
[1938]2637    write(lunout,*)' alphas = ', alphas
2638    write(lunout,*)' iflag_wake = ', iflag_wake
2639    write(lunout,*)' alp_offset = ', alp_offset
2640    ! nrlmd le 10/04/2012
2641    write(lunout,*)' iflag_trig_bl = ', iflag_trig_bl
2642    write(lunout,*)' s_trig = ', s_trig
2643    write(lunout,*)' tau_trig_shallow = ', tau_trig_shallow
2644    write(lunout,*)' tau_trig_deep = ', tau_trig_deep
2645    write(lunout,*)' iflag_clos_bl = ', iflag_clos_bl
2646    ! fin nrlmd le 10/04/2012
[1687]2647
[1938]2648    write(lunout,*)' lonmin lonmax latmin latmax bilKP_ins =',&
2649         lonmin_ins, lonmax_ins, latmin_ins, latmax_ins
2650    write(lunout,*)' ecrit_ hf, ins, day, mth, reg, tra, ISCCP, LES',&
2651         ecrit_hf, ecrit_ins, ecrit_day, ecrit_mth, ecrit_reg, ecrit_tra, ecrit_ISCCP, ecrit_LES
[1687]2652
[1938]2653    write(lunout,*) 'ok_strato = ', ok_strato
2654    write(lunout,*) 'ok_hines = ',  ok_hines
2655    write(lunout,*) 'ok_gwd_rando = ',  ok_gwd_rando
[2136]2656    write(lunout,*) 'ok_qch4 = ',  ok_qch4
[2357]2657    write(lunout,*) 'gwd_rando_ruwmax = ', gwd_rando_ruwmax
[2072]2658    write(lunout,*) 'gwd_rando_sat = ', gwd_rando_sat
[2357]2659    write(lunout,*) 'gwd_front_ruwmax = ', gwd_front_ruwmax
2660    write(lunout,*) 'gwd_front_sat = ', gwd_front_sat
2661    write(lunout,*) 'SSO gkdrag =',gkdrag
2662    write(lunout,*) 'SSO grahilo=',grahilo
2663    write(lunout,*) 'SSO grcrit=',grcrit
2664    write(lunout,*) 'SSO gfrcrit=',gfrcrit
2665    write(lunout,*) 'SSO gkwake=',gkwake
2666    write(lunout,*) 'SSO gklift=',gklift
[2788]2667    write(lunout,*) 'adjust_tropopause = ', adjust_tropopause
2668    write(lunout,*) 'ok_daily_climoz = ',ok_daily_climoz
[1938]2669    write(lunout,*) 'read_climoz = ', read_climoz
2670    write(lunout,*) 'carbon_cycle_tr = ', carbon_cycle_tr
2671    write(lunout,*) 'carbon_cycle_cpl = ', carbon_cycle_cpl
[1687]2672
[1938]2673    !$OMP END MASTER
2674
[2702]2675    RETURN
[1938]2676
[2702]2677  END SUBROUTINE conf_phys
[1687]2678
[2702]2679END MODULE conf_phys_m
[1687]2680!
2681!#################################################################
2682!
2683
[2702]2684SUBROUTINE conf_interface(tau_calv)
[1687]2685
[2702]2686  USE IOIPSL
[2311]2687  USE print_control_mod, ONLY: lunout
[2702]2688  IMPLICIT NONE
[1938]2689  ! Configuration de l'interace atm/surf
2690  !
2691  ! tau_calv:    temps de relaxation pour la fonte des glaciers
[1687]2692
2693  REAL          :: tau_calv
2694  REAL,SAVE     :: tau_calv_omp
2695
[1938]2696  !
2697  !Config Key  = tau_calv
2698  !Config Desc = temps de relaxation pour fonte des glaciers en jours
2699  !Config Def  = 1 an
2700  !Config Help =
2701  !
[1687]2702  tau_calv_omp = 360.*10.
[1938]2703  !$OMP MASTER
[2702]2704  CALL getin('tau_calv',tau_calv_omp)
[1938]2705  !$OMP END MASTER
2706  !$OMP BARRIER
[1687]2707
2708  tau_calv=tau_calv_omp
[1938]2709
2710  !$OMP MASTER
[1687]2711  write(lunout,*)' ##############################################'
2712  WRITE(lunout,*)' Configuration de l''interface atm/surfaces  : '
2713  WRITE(lunout,*)' tau_calv = ',tau_calv
[1938]2714  !$OMP END MASTER
[1687]2715
[2702]2716  RETURN
[1687]2717
[2702]2718END SUBROUTINE conf_interface
Note: See TracBrowser for help on using the repository browser.