source: LMDZ5/branches/LF-private/libf/phylmd/conf_phys_m.F90 @ 5162

Last change on this file since 5162 was 1877, checked in by Laurent Fairhead, 11 years ago

Ménage sur le code pour éliminer les calculs spécifiques ISCCP hors COSP
Un certain nombre de variables non utilisées dans physiq.F90 ont aussi
été supprimée. Environ 840 lignes supprimées du code physiq.F90


Code cleanup to eliminate specific references to ISCCP outside the COSP
library. Unused variables have been cleaned up from the physiq.F90 routine
as well.

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