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

Last change on this file since 1898 was 1894, checked in by idelkadi, 11 years ago

1) Patchs for idealized terra- and aqua-planets simulations.
ablsno.F90, imposing snow albedo at albsno0 if >= 0. (default val. : -1)
pbl_surface_mod.F90 : zero evaporation if either qsol0 (for terra-planets) or

evap0 (for aqua-planets) = 0.

2) New flag iflag_fisrtilp_qsat=0/1 for fisrtilp.F90, fisrtilp.h:

temperature dependency of qsat for iterative procedure
temporary flag to switch between the old (CMIP5, =0) and new versions (=1) versions :
zcond(i) = MAX(0.0,zqn(i)-zqs(i))/(1.+iflag_fisrtilp_qsat*zdqs(i))
=1 should be avoided because it creates significant supersaturation.
Both options are wrong (ongoing work ...)

clesphys.h, conf_phys_m.F90 : new parameters, iflag_fisrtilp_qsat, albsno0 and evap0

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