source: LMDZ4/branches/LMDZ4-dev/libf/phylmd/conf_phys.F90 @ 1183

Last change on this file since 1183 was 1181, checked in by jghattas, 15 years ago
  • Ajoute le possibilite de forcer avec les aerosols poussiere et sel de mer.
  • Ajoute le module aerosol_mod qui contient des parmetres pour les aerosols
  • flag_aerosol a legerement change signification

A Cozic

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 40.0 KB
Line 
1
2!
3! $Id: conf_phys.F90 1181 2009-06-15 16:49:35Z jghattas $
4!
5!
6!
7
8  subroutine conf_phys(ok_journe, ok_mensuel, ok_instan, ok_hf, &
9                       ok_LES,&
10                       solarlong0,seuil_inversion, &
11                       fact_cldcon, facttemps,ok_newmicro,iflag_radia,&
12                       iflag_cldcon, &
13                       iflag_ratqs,ratqsbas,ratqshaut, &
14                       ok_ade, ok_aie, aerosol_couple, &
15                       flag_aerosol, new_aod, &
16                       bl95_b0, bl95_b1,&
17                       iflag_thermals,nsplit_thermals,tau_thermals, &
18                       iflag_thermals_ed,iflag_thermals_optflux, &
19                       iflag_coupl,iflag_clos,iflag_wake, read_climoz)
20
21   use IOIPSL
22   USE surface_data
23
24   implicit none
25
26 include "conema3.h"
27 include "fisrtilp.h"
28 include "nuage.h"
29 include "YOMCST.h"
30 include "YOMCST2.h"
31!IM : on inclut/initialise les taux de CH4, N2O, CFC11 et CFC12
32include "clesphys.h"
33include "compbl.h"
34include "control.h"
35include "comsoil.h"
36!
37! Configuration de la "physique" de LMDZ a l'aide de la fonction
38! GETIN de IOIPSL
39!
40! LF 05/2001
41!
42
43!
44! type_ocean:      type d'ocean (force, slab, couple)
45! version_ocean:   version d'ocean (opa8/nemo pour type_ocean=couple ou
46!                                   sicOBS pour type_ocean=slab)
47! ok_veget:   type de modele de vegetation
48! ok_journe:  sorties journalieres
49! ok_hf:  sorties haute frequence
50! ok_mensuel: sorties mensuelles
51! ok_instan:  sorties instantanees
52! ok_ade, ok_aie: apply or not aerosol direct and indirect effects
53! bl95_b*: parameters in the formula to link CDNC to aerosol mass conc
54!
55
56
57! Sortie:
58  logical              :: ok_newmicro
59  integer              :: iflag_radia
60  logical              :: ok_journe, ok_mensuel, ok_instan, ok_hf
61  logical              :: ok_LES
62  LOGICAL              :: ok_ade, ok_aie, aerosol_couple
63  INTEGER              :: flag_aerosol
64  LOGICAL              :: new_aod
65  REAL                 :: bl95_b0, bl95_b1
66  real                 :: fact_cldcon, facttemps,ratqsbas,ratqshaut
67  integer              :: iflag_cldcon
68  integer              :: iflag_ratqs
69
70  character (len = 6),SAVE  :: type_ocean_omp, version_ocean_omp, ocean_omp
71  CHARACTER(len = 8),SAVE   :: aer_type_omp
72  logical,SAVE              :: ok_veget_omp, ok_newmicro_omp
73  logical,SAVE        :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
74  logical,SAVE        :: ok_LES_omp   
75  LOGICAL,SAVE        :: ok_ade_omp, ok_aie_omp, aerosol_couple_omp
76  INTEGER, SAVE       :: flag_aerosol_omp
77  LOGICAL, SAVE       :: new_aod_omp
78  REAL,SAVE           :: bl95_b0_omp, bl95_b1_omp
79  REAL,SAVE           :: freq_ISCCP_omp, ecrit_ISCCP_omp
80  real,SAVE           :: fact_cldcon_omp, facttemps_omp,ratqsbas_omp
81  real,SAVE           :: ratqshaut_omp
82  integer,SAVE        :: iflag_radia_omp
83  integer,SAVE        :: iflag_rrtm_omp
84  integer,SAVE        :: iflag_cldcon_omp, ip_ebil_phy_omp
85  integer,SAVE        :: iflag_ratqs_omp
86
87  Real,SAVE           :: f_cdrag_stable_omp,f_cdrag_ter_omp,f_cdrag_oce_omp
88  Real,SAVE           :: f_rugoro_omp   
89
90! Local
91  integer              :: numout = 6
92  real                 :: zzz
93
94  real :: seuil_inversion
95  real,save :: seuil_inversion_omp
96
97  integer :: iflag_thermals,nsplit_thermals
98  integer,SAVE :: iflag_thermals_ed_omp,iflag_thermals_optflux_omp
99  integer :: iflag_thermals_ed,iflag_thermals_optflux
100  integer,SAVE :: iflag_thermals_omp,nsplit_thermals_omp
101  real :: tau_thermals
102  real,save :: tau_thermals_omp
103  integer :: iflag_coupl
104  integer :: iflag_clos
105  integer :: iflag_wake
106  integer,SAVE :: iflag_coupl_omp,iflag_clos_omp,iflag_wake_omp
107  integer,SAVE :: iflag_cvl_sigd_omp
108  REAL, SAVE :: supcrit1_omp, supcrit2_omp
109  INTEGER, SAVE :: iflag_mix_omp
110  real, save :: scut_omp, qqa1_omp, qqa2_omp, gammas_omp, Fmax_omp, alphas_omp
111
112  REAL,SAVE :: R_ecc_omp,R_peri_omp,R_incl_omp,solaire_omp,co2_ppm_omp
113  REAL,SAVE :: RCO2_omp,CH4_ppb_omp,RCH4_omp,N2O_ppb_omp,RN2O_omp,CFC11_ppt_omp
114  REAL,SAVE :: RCFC11_omp,CFC12_ppt_omp,RCFC12_omp,epmax_omp
115  LOGICAL,SAVE :: ok_adj_ema_omp
116  INTEGER,SAVE :: iflag_clw_omp
117  REAL,SAVE :: cld_lc_lsc_omp,cld_lc_con_omp,cld_tau_lsc_omp,cld_tau_con_omp
118  REAL,SAVE :: ffallv_lsc_omp, ffallv_con_omp,coef_eva_omp
119  LOGICAL,SAVE :: reevap_ice_omp
120  INTEGER,SAVE :: iflag_pdf_omp
121  REAL,SAVE :: rad_froid_omp, rad_chau1_omp, rad_chau2_omp
122  REAL,SAVE :: inertie_sol_omp,inertie_sno_omp,inertie_ice_omp
123  REAL,SAVE :: qsol0_omp
124  REAL      :: solarlong0
125  REAL,SAVE :: solarlong0_omp
126  INTEGER,SAVE :: top_height_omp,overlap_omp
127  REAL,SAVE :: cdmmax_omp,cdhmax_omp,ksta_omp,ksta_ter_omp
128  LOGICAL,SAVE :: ok_kzmin_omp
129  REAL, SAVE ::  fmagic_omp, pmagic_omp
130  INTEGER,SAVE :: iflag_pbl_omp,lev_histhf_omp,lev_histday_omp,lev_histmth_omp
131  CHARACTER*4, SAVE :: type_run_omp
132  LOGICAL,SAVE :: ok_isccp_omp
133  REAL,SAVE :: lonmin_ins_omp, lonmax_ins_omp, latmin_ins_omp, latmax_ins_omp
134  REAL,SAVE :: ecrit_hf_omp, ecrit_day_omp, ecrit_mth_omp, ecrit_reg_omp
135  REAL,SAVE :: ecrit_ins_omp
136  REAL,SAVE :: ecrit_LES_omp
137  REAL,SAVE :: ecrit_tra_omp
138  REAL,SAVE :: cvl_corr_omp
139  LOGICAL,SAVE :: ok_lic_melt_omp
140!
141  LOGICAL,SAVE :: cycle_diurne_omp,soil_model_omp,new_oliq_omp
142  LOGICAL,SAVE :: ok_orodr_omp, ok_orolf_omp, ok_limitvrai_omp
143  INTEGER, SAVE :: nbapp_rad_omp, iflag_con_omp
144  LOGICAL,SAVE :: ok_strato_omp
145  LOGICAL,SAVE :: ok_hines_omp
146
147  logical, intent(out):: read_climoz ! read ozone climatology
148!
149
150!$OMP MASTER
151!Config Key  = type_ocean
152!Config Desc = Type d'ocean
153!Config Def  = force
154!Config Help = Type d'ocean utilise: force, slab,couple
155!
156  type_ocean_omp = 'force '
157  call getin('type_ocean', type_ocean_omp)
158!
159!Config Key  = version_ocean
160!Config Desc = Version d'ocean
161!Config Def  = xxxxxx
162!Config Help = Version d'ocean utilise: opa8/nemo/sicOBS/xxxxxx
163!
164  version_ocean_omp = 'xxxxxx'
165  call getin('version_ocean', version_ocean_omp)
166
167!Config Key  = OCEAN
168!Config Desc = Old parameter name for type_ocean
169!Config Def  = yyyyyy
170!Config Help = This is only for testing purpose
171!
172  ocean_omp = 'yyyyyy'
173  call getin('OCEAN', ocean_omp)
174  IF (ocean_omp /= 'yyyyyy') THEN
175     WRITE(numout,*)'ERROR!! Old variable name OCEAN used in parmeter file.'
176     WRITE(numout,*)'Variable OCEAN has been replaced by the variable type_ocean.'
177     WRITE(numout,*)'You have to update your parameter file physiq.def to succed running'
178     CALL abort_gcm('conf_phys','Variable OCEAN no longer existing, use variable name type_ocean',1)
179  END IF
180
181!
182!Config Key  = VEGET
183!Config Desc = Type de modele de vegetation
184!Config Def  = .false.
185!Config Help = Type de modele de vegetation utilise
186!
187  ok_veget_omp = .false.
188  call getin('VEGET', ok_veget_omp)
189!
190!Config Key  = OK_journe
191!Config Desc = Pour des sorties journalieres
192!Config Def  = .false.
193!Config Help = Pour creer le fichier histday contenant les sorties
194!              journalieres
195!
196  ok_journe_omp = .false.
197  call getin('OK_journe', ok_journe_omp)
198!
199!Config Key  = ok_hf
200!Config Desc = Pour des sorties haute frequence
201!Config Def  = .false.
202!Config Help = Pour creer le fichier histhf contenant les sorties
203!              haute frequence ( 3h ou 6h)
204!
205  ok_hf_omp = .false.
206  call getin('ok_hf', ok_hf_omp)
207!
208!Config Key  = OK_mensuel
209!Config Desc = Pour des sorties mensuelles
210!Config Def  = .true.
211!Config Help = Pour creer le fichier histmth contenant les sorties
212!              mensuelles
213!
214  ok_mensuel_omp = .true.
215  call getin('OK_mensuel', ok_mensuel_omp)
216!
217!Config Key  = OK_instan
218!Config Desc = Pour des sorties instantanees
219!Config Def  = .false.
220!Config Help = Pour creer le fichier histins contenant les sorties
221!              instantanees
222!
223  ok_instan_omp = .false.
224  call getin('OK_instan', ok_instan_omp)
225!
226!Config Key  = ok_ade
227!Config Desc = Aerosol direct effect or not?
228!Config Def  = .false.
229!Config Help = Used in radlwsw.F
230!
231  ok_ade_omp = .false.
232  call getin('ok_ade', ok_ade_omp)
233
234!
235!Config Key  = ok_aie
236!Config Desc = Aerosol indirect effect or not?
237!Config Def  = .false.
238!Config Help = Used in nuage.F and radlwsw.F
239!
240  ok_aie_omp = .false.
241  call getin('ok_aie', ok_aie_omp)
242
243!
244!Config Key  = aerosol_couple
245!Config Desc = read aerosol in file or calcul by inca
246!Config Def  = .false.
247!Config Help = Used in physiq.F
248!
249  aerosol_couple_omp = .false.
250  CALL getin('aerosol_couple',aerosol_couple_omp)
251
252!
253!Config Key  = flag_aerosol
254!Config Desc = which aerosol is use for coupled model
255!Config Def  = 1
256!Config Help = Used in physiq.F
257!
258! - flag_aerosol=1 => so4 only (defaut)
259! - flag_aerosol=2 => bc  only
260! - flag_aerosol=3 => pom only
261! - flag_aerosol=4 => seasalt only
262! - flag_aerosol=5 => dust only
263! - flag_aerosol=6 => all aerosol
264
265  flag_aerosol_omp = 1
266  CALL getin('flag_aerosol',flag_aerosol_omp)
267
268! Temporary variable for testing purpose!!
269!Config Key  = new_aod
270!Config Desc = which calcul of aeropt
271!Config Def  = false
272!Config Help = Used in physiq.F
273!
274  new_aod_omp = .true.
275  CALL getin('new_aod',new_aod_omp)
276
277!
278!Config Key  = aer_type
279!Config Desc = Use a constant field for the aerosols
280!Config Def  = scenario
281!Config Help = Used in readaerosol.F90
282!
283  aer_type_omp = 'scenario'
284  call getin('aer_type', aer_type_omp)
285
286!
287!Config Key  = bl95_b0
288!Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
289!Config Def  = .false.
290!Config Help = Used in nuage.F
291!
292  bl95_b0_omp = 2.
293  call getin('bl95_b0', bl95_b0_omp)
294
295!Config Key  = bl95_b1
296!Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
297!Config Def  = .false.
298!Config Help = Used in nuage.F
299!
300  bl95_b1_omp = 0.2
301  call getin('bl95_b1', bl95_b1_omp)
302
303!Config Key  = freq_ISCCP
304!Config Desc = Frequence d'appel du simulateur ISCCP en secondes;
305!              par defaut 10800, i.e. 3 heures
306!Config Def  = 10800.
307!Config Help = Used in ini_histISCCP.h
308!
309  freq_ISCCP_omp = 10800.
310  call getin('freq_ISCCP', freq_ISCCP_omp)
311!
312!Config Key  = ecrit_ISCCP
313!Config Desc = Frequence d'ecriture des resultats du simulateur ISCCP en nombre de jours;
314!              par defaut 1., i.e. 1 jour
315!Config Def  = 1.
316!Config Help = Used in ini_histISCCP.h
317!
318!
319  ecrit_ISCCP_omp = 1.
320  call getin('ecrit_ISCCP', ecrit_ISCCP_omp)
321!
322!Config Key  = ip_ebil_phy
323!Config Desc = Niveau de sortie pour les diags bilan d'energie
324!Config Def  = 0
325!Config Help =
326!               
327  ip_ebil_phy_omp = 0
328  call getin('ip_ebil_phy', ip_ebil_phy_omp)
329!
330!Config Key  = seuil_inversion
331!Config Desc = Seuil ur dTh pour le choix entre les schemas de CL
332!Config Def  = -0.1
333!Config Help =
334!               
335  seuil_inversion_omp = -0.1
336  call getin('seuil_inversion', seuil_inversion_omp)
337
338!!
339!! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG
340!!
341!Config Key  = R_ecc
342!Config Desc = Excentricite
343!Config Def  = 0.016715
344!Config Help =
345!               
346!valeur AMIP II
347  R_ecc_omp = 0.016715
348  call getin('R_ecc', R_ecc_omp)
349!!
350!Config Key  = R_peri
351!Config Desc = Equinoxe
352!Config Def  =
353!Config Help =
354!               
355!
356!valeur AMIP II
357  R_peri_omp = 102.7
358  call getin('R_peri', R_peri_omp)
359!!
360!Config Key  = R_incl
361!Config Desc = Inclinaison
362!Config Def  =
363!Config Help =
364!               
365!
366!valeur AMIP II
367  R_incl_omp = 23.441
368  call getin('R_incl', R_incl_omp)
369!!
370!Config Key  = solaire
371!Config Desc = Constante solaire en W/m2
372!Config Def  = 1365.
373!Config Help =
374!               
375!
376!valeur AMIP II
377  solaire_omp = 1365.
378  call getin('solaire', solaire_omp)
379!!
380!Config Key  = co2_ppm
381!Config Desc = concentration du gaz carbonique en ppmv
382!Config Def  = 348.
383!Config Help =
384!               
385!
386!valeur AMIP II
387  co2_ppm_omp = 348.
388  call getin('co2_ppm', co2_ppm_omp)
389!!
390!Config Key  = RCO2
391!Config Desc = Concentration du CO2
392!Config Def  = co2_ppm * 1.0e-06  * 44.011/28.97
393!Config Def  = 348. * 1.0e-06  * 44.011/28.97
394!Config Help =
395!               
396! RCO2 = 5.286789092164308E-04
397!ancienne valeur
398  RCO2_omp = co2_ppm_omp * 1.0e-06  * 44.011/28.97 ! pour co2_ppm=348.
399
400!!  call getin('RCO2', RCO2)
401!!
402!Config Key  = RCH4
403!Config Desc = Concentration du CH4
404!Config Def  = 1.65E-06* 16.043/28.97
405!Config Help =
406!               
407!
408!valeur AMIP II
409!OK  RCH4 = 1.65E-06* 16.043/28.97
410! RCH4 = 9.137366240938903E-07
411!
412!ancienne valeur
413! RCH4 = 1.72E-06* 16.043/28.97
414!OK call getin('RCH4', RCH4)
415  zzz = 1650.
416  call getin('CH4_ppb', zzz)
417  CH4_ppb_omp = zzz
418  RCH4_omp = CH4_ppb_omp * 1.0E-09 * 16.043/28.97
419!!
420!Config Key  = RN2O
421!Config Desc = Concentration du N2O
422!Config Def  = 306.E-09* 44.013/28.97
423!Config Help =
424!               
425!
426!valeur AMIP II
427!OK  RN2O = 306.E-09* 44.013/28.97
428! RN2O = 4.648939592682085E-07
429!
430!ancienne valeur
431! RN2O = 310.E-09* 44.013/28.97
432!OK  call getin('RN2O', RN2O)
433  zzz=306.
434  call getin('N2O_ppb', zzz)
435  N2O_ppb_omp = zzz
436  RN2O_omp = N2O_ppb_omp * 1.0E-09 * 44.013/28.97
437!!
438!Config Key  = RCFC11
439!Config Desc = Concentration du CFC11
440!Config Def  = 280.E-12* 137.3686/28.97
441!Config Help =
442!               
443!
444!OK RCFC11 = 280.E-12* 137.3686/28.97
445  zzz = 280.
446  call getin('CFC11_ppt',zzz)
447  CFC11_ppt_omp = zzz
448  RCFC11_omp=CFC11_ppt_omp* 1.0E-12 * 137.3686/28.97
449! RCFC11 = 1.327690990680013E-09
450!OK call getin('RCFC11', RCFC11)
451!!
452!Config Key  = RCFC12
453!Config Desc = Concentration du CFC12
454!Config Def  = 484.E-12* 120.9140/28.97
455!Config Help =
456!               
457!
458!OK RCFC12 = 484.E-12* 120.9140/28.97
459  zzz = 484.
460  call getin('CFC12_ppt',zzz)
461  CFC12_ppt_omp = zzz
462  RCFC12_omp = CFC12_ppt_omp * 1.0E-12 * 120.9140/28.97
463! RCFC12 = 2.020102726958923E-09
464!OK call getin('RCFC12', RCFC12)
465
466
467
468!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
469! FH 2008/05/09 On elimine toutes les clefs physiques dans la dynamique
470! Constantes precedemment dans dyn3d/conf_gcm
471
472!Config  Key  = cycle_diurne
473!Config  Desc = Cycle ddiurne
474!Config  Def  = y
475!Config  Help = Cette option permet d'eteidre le cycle diurne.
476!Config         Peut etre util pour accelerer le code !
477       cycle_diurne_omp = .TRUE.
478       CALL getin('cycle_diurne',cycle_diurne_omp)
479
480!Config  Key  = soil_model
481!Config  Desc = Modele de sol
482!Config  Def  = y
483!Config  Help = Choix du modele de sol (Thermique ?)
484!Config         Option qui pourait un string afin de pouvoir
485!Config         plus de choix ! Ou meme une liste d'options !
486       soil_model_omp = .TRUE.
487       CALL getin('soil_model',soil_model_omp)
488
489!Config  Key  = new_oliq
490!Config  Desc = Nouvelle eau liquide
491!Config  Def  = y
492!Config  Help = Permet de mettre en route la
493!Config         nouvelle parametrisation de l'eau liquide !
494       new_oliq_omp = .TRUE.
495       CALL getin('new_oliq',new_oliq_omp)
496
497!Config  Key  = ok_orodr
498!Config  Desc = Orodr ???
499!Config  Def  = y
500!Config  Help = Y en a pas comprendre !
501!Config         
502       ok_orodr_omp = .TRUE.
503       CALL getin('ok_orodr',ok_orodr_omp)
504
505!Config  Key  =  ok_orolf
506!Config  Desc = Orolf ??
507!Config  Def  = y
508!Config  Help = Connais pas !
509       ok_orolf_omp = .TRUE.
510       CALL getin('ok_orolf', ok_orolf_omp)
511
512!Config  Key  = ok_limitvrai
513!Config  Desc = Force la lecture de la bonne annee
514!Config  Def  = n
515!Config  Help = On peut forcer le modele a lire le
516!Config         fichier SST de la bonne annee. C'est une tres bonne
517!Config         idee, pourquoi ne pas mettre toujours a y ???
518       ok_limitvrai_omp = .FALSE.
519       CALL getin('ok_limitvrai',ok_limitvrai_omp)
520
521!Config  Key  = nbapp_rad
522!Config  Desc = Frequence d'appel au rayonnement
523!Config  Def  = 12
524!Config  Help = Nombre  d'appels des routines de rayonnements
525!Config         par jour.
526       nbapp_rad_omp = 12
527       CALL getin('nbapp_rad',nbapp_rad_omp)
528
529!Config  Key  = iflag_con
530!Config  Desc = Flag de convection
531!Config  Def  = 2
532!Config  Help = Flag  pour la convection les options suivantes existent :
533!Config         1 pour LMD,
534!Config         2 pour Tiedtke,
535!Config         3 pour CCM(NCAR) 
536       iflag_con_omp = 2
537       CALL getin('iflag_con',iflag_con_omp)
538
539!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
540!!
541!! Constante solaire & Parametres orbitaux & taux gaz effet de serre END
542!!
543!! KE
544!
545
546!Config key  = cvl_corr
547!Config Desc = Facteur multiplication des precip convectives dans KE
548!Config Def  = 1.00
549!Config Help = 1.02 pour un moderne ou un pre-ind. A ajuster pour un glaciaire
550  cvl_corr_omp = 1.00
551  CALL getin('cvl_corr', cvl_corr_omp)
552
553
554!Config Key  = epmax
555!Config Desc = Efficacite precip
556!Config Def  = 0.993
557!Config Help =
558!
559  epmax_omp = .993
560  call getin('epmax', epmax_omp)
561!
562!Config Key  = ok_adj_ema
563!Config Desc = 
564!Config Def  = false
565!Config Help =
566!
567  ok_adj_ema_omp = .false.
568  call getin('ok_adj_ema',ok_adj_ema_omp)
569!
570!Config Key  = iflag_clw
571!Config Desc = 
572!Config Def  = 0
573!Config Help =
574!
575  iflag_clw_omp = 0
576  call getin('iflag_clw',iflag_clw_omp)
577!
578!Config Key  = cld_lc_lsc
579!Config Desc = 
580!Config Def  = 2.6e-4
581!Config Help =
582!
583  cld_lc_lsc_omp = 2.6e-4
584  call getin('cld_lc_lsc',cld_lc_lsc_omp)
585!
586!Config Key  = cld_lc_con
587!Config Desc = 
588!Config Def  = 2.6e-4
589!Config Help =
590!
591  cld_lc_con_omp = 2.6e-4
592  call getin('cld_lc_con',cld_lc_con_omp)
593!
594!Config Key  = cld_tau_lsc
595!Config Desc = 
596!Config Def  = 3600.
597!Config Help =
598!
599  cld_tau_lsc_omp = 3600.
600  call getin('cld_tau_lsc',cld_tau_lsc_omp)
601!
602!Config Key  = cld_tau_con
603!Config Desc = 
604!Config Def  = 3600.
605!Config Help =
606!
607  cld_tau_con_omp = 3600.
608  call getin('cld_tau_con',cld_tau_con_omp)
609!
610!Config Key  = ffallv_lsc
611!Config Desc = 
612!Config Def  = 1.
613!Config Help =
614!
615  ffallv_lsc_omp = 1.
616  call getin('ffallv_lsc',ffallv_lsc_omp)
617!
618!Config Key  = ffallv_con
619!Config Desc = 
620!Config Def  = 1.
621!Config Help =
622!
623  ffallv_con_omp = 1.
624  call getin('ffallv_con',ffallv_con_omp)
625!
626!Config Key  = coef_eva
627!Config Desc = 
628!Config Def  = 2.e-5
629!Config Help =
630!
631  coef_eva_omp = 2.e-5
632  call getin('coef_eva',coef_eva_omp)
633!
634!Config Key  = reevap_ice
635!Config Desc = 
636!Config Def  = .false.
637!Config Help =
638!
639  reevap_ice_omp = .false.
640  call getin('reevap_ice',reevap_ice_omp)
641
642!Config Key  = iflag_ratqs
643!Config Desc =
644!Config Def  = 1
645!Config Help =
646!
647  iflag_ratqs_omp = 1
648  call getin('iflag_ratqs',iflag_ratqs_omp)
649
650!
651!Config Key  = iflag_radia
652!Config Desc = 
653!Config Def  = 1
654!Config Help =
655!
656  iflag_radia_omp = 1
657  call getin('iflag_radia',iflag_radia_omp)
658
659!
660!Config Key  = iflag_rrtm
661!Config Desc = 
662!Config Def  = 0
663!Config Help =
664!
665  iflag_rrtm_omp = 0
666  call getin('iflag_rrtm',iflag_rrtm_omp)
667
668!
669!Config Key  = iflag_cldcon
670!Config Desc = 
671!Config Def  = 1
672!Config Help =
673!
674  iflag_cldcon_omp = 1
675  call getin('iflag_cldcon',iflag_cldcon_omp)
676
677!
678!Config Key  = iflag_pdf
679!Config Desc = 
680!Config Def  = 0
681!Config Help =
682!
683  iflag_pdf_omp = 0
684  call getin('iflag_pdf',iflag_pdf_omp)
685!
686!Config Key  = fact_cldcon
687!Config Desc = 
688!Config Def  = 0.375
689!Config Help =
690!
691  fact_cldcon_omp = 0.375
692  call getin('fact_cldcon',fact_cldcon_omp)
693
694!
695!Config Key  = facttemps
696!Config Desc = 
697!Config Def  = 1.e-4
698!Config Help =
699!
700  facttemps_omp = 1.e-4
701  call getin('facttemps',facttemps_omp)
702
703!
704!Config Key  = ok_newmicro
705!Config Desc = 
706!Config Def  = .true.
707!Config Help =
708!
709  ok_newmicro_omp = .true.
710  call getin('ok_newmicro',ok_newmicro_omp)
711!
712!Config Key  = ratqsbas
713!Config Desc = 
714!Config Def  = 0.01
715!Config Help =
716!
717  ratqsbas_omp = 0.01
718  call getin('ratqsbas',ratqsbas_omp)
719!
720!Config Key  = ratqshaut
721!Config Desc = 
722!Config Def  = 0.3
723!Config Help =
724!
725  ratqshaut_omp = 0.3
726  call getin('ratqshaut',ratqshaut_omp)
727
728!
729!-----------------------------------------------------------------------
730! Longitude solaire pour le calcul de l'ensoleillement en degre
731! si on veut imposer la saison. Sinon, solarlong0=-999.999
732!Config Key  = solarlong0
733!Config Desc = 
734!Config Def  = -999.999
735!Config Help =
736!
737  solarlong0_omp = -999.999
738  call getin('solarlong0',solarlong0_omp)
739!
740!-----------------------------------------------------------------------
741!  Valeur imposee de l'humidite du sol pour le modele bucket.
742!Config Key  = qsol0
743!Config Desc = 
744!Config Def  = -1.
745!Config Help =
746!
747  qsol0_omp = -1.
748  call getin('qsol0',qsol0_omp)
749!
750!-----------------------------------------------------------------------
751!
752!Config Key  = inertie_ice
753!Config Desc = 
754!Config Def  = 2000.
755!Config Help =
756!
757  inertie_ice_omp = 2000.
758  call getin('inertie_ice',inertie_ice_omp)
759!
760!Config Key  = inertie_sno
761!Config Desc = 
762!Config Def  = 2000.
763!Config Help =
764!
765  inertie_sno_omp = 2000.
766  call getin('inertie_sno',inertie_sno_omp)
767!
768!Config Key  = inertie_sol
769!Config Desc = 
770!Config Def  = 2000.
771!Config Help =
772!
773  inertie_sol_omp = 2000.
774  call getin('inertie_sol',inertie_sol_omp)
775
776!
777!Config Key  = rad_froid
778!Config Desc = 
779!Config Def  = 35.0
780!Config Help =
781!
782  rad_froid_omp = 35.0
783  call getin('rad_froid',rad_froid_omp)
784
785!
786!Config Key  = rad_chau1
787!Config Desc = 
788!Config Def  = 13.0
789!Config Help =
790!
791  rad_chau1_omp = 13.0
792  call getin('rad_chau1',rad_chau1_omp)
793
794!
795!Config Key  = rad_chau2
796!Config Desc = 
797!Config Def  = 9.0
798!Config Help =
799!
800  rad_chau2_omp = 9.0
801  call getin('rad_chau2',rad_chau2_omp)
802
803!
804!Config Key  = top_height
805!Config Desc =
806!Config Def  = 3
807!Config Help =
808!
809  top_height_omp = 3
810  call getin('top_height',top_height_omp)
811
812!
813!Config Key  = overlap
814!Config Desc =
815!Config Def  = 3
816!Config Help =
817!
818  overlap_omp = 3
819  call getin('overlap',overlap_omp)
820
821
822!
823!
824!Config Key  = cdmmax
825!Config Desc =
826!Config Def  = 1.3E-3
827!Config Help =
828!
829  cdmmax_omp = 1.3E-3
830  call getin('cdmmax',cdmmax_omp)
831
832!
833!Config Key  = cdhmax
834!Config Desc =
835!Config Def  = 1.1E-3
836!Config Help =
837!
838  cdhmax_omp = 1.1E-3
839  call getin('cdhmax',cdhmax_omp)
840
841!261103
842!
843!Config Key  = ksta
844!Config Desc =
845!Config Def  = 1.0e-10
846!Config Help =
847!
848  ksta_omp = 1.0e-10
849  call getin('ksta',ksta_omp)
850
851!
852!Config Key  = ksta_ter
853!Config Desc =
854!Config Def  = 1.0e-10
855!Config Help =
856!
857  ksta_ter_omp = 1.0e-10
858  call getin('ksta_ter',ksta_ter_omp)
859
860!
861!Config Key  = ok_kzmin
862!Config Desc =
863!Config Def  = .true.
864!Config Help =
865!
866  ok_kzmin_omp = .true.
867  call getin('ok_kzmin',ok_kzmin_omp)
868
869!
870!Config Key  = fmagic
871!Config Desc = additionnal multiplicator factor used for albedo
872!Config Def  = 1.
873!Config Help = additionnal multiplicator factor used in albedo.F
874!
875  fmagic_omp = 1.
876  call getin('fmagic',fmagic_omp)
877
878!
879!Config Key  = pmagic
880!Config Desc = additional factor used for albedo
881!Config Def  = 0.
882!Config Help = additional factor used in albedo.F
883!
884  pmagic_omp = 0.
885  call getin('pmagic',pmagic_omp)
886
887
888!Config Key = ok_lic_melt
889!Config Desc = Prise en compte de la fonte de la calotte dans le bilan d'eau
890!Config Def  = .false.
891!Config Help = mettre a .false. pour assurer la conservation en eau
892  ok_lic_melt_omp = .false.
893  call getin('ok_lic_melt', ok_lic_melt_omp)
894
895!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
896! PARAMETER FOR THE PLANETARY BOUNDARY LAYER
897!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
898
899!Config Key  = iflag_pbl
900!Config Desc =
901!Config Def  = 1
902!Config Help =
903!
904  iflag_pbl_omp = 1
905  call getin('iflag_pbl',iflag_pbl_omp)
906!
907!Config Key  = iflag_thermals
908!Config Desc =
909!Config Def  = 0
910!Config Help =
911!
912  iflag_thermals_omp = 0
913  call getin('iflag_thermals',iflag_thermals_omp)
914!
915!
916!Config Key  = iflag_thermals_ed
917!Config Desc =
918!Config Def  = 0
919!Config Help =
920!
921  iflag_thermals_ed_omp = 0
922  call getin('iflag_thermals_ed',iflag_thermals_ed_omp)
923!
924!
925!Config Key  = iflag_thermals_optflux
926!Config Desc =
927!Config Def  = 0
928!Config Help =
929!
930  iflag_thermals_optflux_omp = 0
931  call getin('iflag_thermals_optflux',iflag_thermals_optflux_omp)
932!
933!
934!Config Key  = nsplit_thermals
935!Config Desc =
936!Config Def  = 1
937!Config Help =
938!
939  nsplit_thermals_omp = 1
940  call getin('nsplit_thermals',nsplit_thermals_omp)
941
942!Config Key  = tau_thermals
943!Config Desc =
944!Config Def  = 0.
945!Config Help =
946!
947  tau_thermals_omp = 0.
948  call getin('tau_thermals',tau_thermals_omp)
949
950!
951!Config Key  = iflag_coupl
952!Config Desc =
953!Config Def  = 0
954!Config Help =
955!
956  iflag_coupl_omp = 0
957  call getin('iflag_coupl',iflag_coupl_omp)
958
959!
960!Config Key  = iflag_clos
961!Config Desc = 
962!Config Def  = 0
963!Config Help =
964!
965  iflag_clos_omp = 1
966  call getin('iflag_clos',iflag_clos_omp)
967!
968!Config Key  = iflag_cvl_sigd
969!Config Desc = 
970!Config Def  = 0
971!Config Help =
972!
973  iflag_cvl_sigd_omp = 0
974  call getin('iflag_cvl_sigd',iflag_cvl_sigd_omp)
975
976!Config Key  = iflag_wake
977!Config Desc = 
978!Config Def  = 0
979!Config Help =
980!
981  iflag_wake_omp = 0
982  call getin('iflag_wake',iflag_wake_omp)
983
984!
985!Config Key  = lev_histhf
986!Config Desc =
987!Config Def  = 1
988!Config Help =
989!
990  lev_histhf_omp = 1
991  call getin('lev_histhf',lev_histhf_omp)
992
993!
994!Config Key  = lev_histday
995!Config Desc =
996!Config Def  = 1
997!Config Help =
998!
999  lev_histday_omp = 1
1000  call getin('lev_histday',lev_histday_omp)
1001
1002!
1003!Config Key  = lev_histmth
1004!Config Desc =
1005!Config Def  = 2
1006!Config Help =
1007!
1008  lev_histmth_omp = 2
1009  call getin('lev_histmth',lev_histmth_omp)
1010
1011  !
1012!Config Key  = type_run
1013!Config Desc =
1014!Config Def  = 'AMIP'/'CFMIP'  ou 'CLIM'/'ENSP'
1015!Config Help =
1016!
1017  type_run_omp = 'AMIP'
1018  call getin('type_run',type_run_omp)
1019
1020!
1021!Config Key  = ok_isccp
1022!Config Desc =
1023!Config Def  = .true.
1024!Config Help =
1025!
1026! ok_isccp = .true.
1027  ok_isccp_omp = .false.
1028  call getin('ok_isccp',ok_isccp_omp)
1029
1030!
1031! coordonnees (lonmin_ins, lonmax_ins, latmin_ins, latmax_ins) pour la zone
1032! avec sorties instantannees tous les pas de temps de la physique => "histbilKP_ins.nc"
1033!
1034!Config Key  = lonmin_ins
1035!Config Desc = 100. 
1036!Config Def  = longitude minimale sorties "bilKP_ins"
1037!Config Help =
1038!
1039   lonmin_ins_omp = 100.
1040   call getin('lonmin_ins',lonmin_ins_omp)
1041!
1042!Config Key  = lonmax_ins
1043!Config Desc = 130.
1044!Config Def  = longitude maximale sorties "bilKP_ins"
1045!Config Help =
1046!
1047   lonmax_ins_omp = 130.
1048   call getin('lonmax_ins',lonmax_ins_omp)
1049!
1050!Config Key  = latmin_ins
1051!Config Desc = -20. 
1052!Config Def  = latitude minimale sorties "bilKP_ins"
1053!Config Help =
1054!
1055   latmin_ins_omp = -20.
1056   call getin('latmin_ins',latmin_ins_omp)
1057!
1058!Config Key  = latmax_ins
1059!Config Desc = 20.
1060!Config Def  = latitude maximale sorties "bilKP_ins"
1061!Config Help =
1062!
1063   latmax_ins_omp = 20.
1064   call getin('latmax_ins',latmax_ins_omp)
1065!
1066!Config Key  = ecrit_hf
1067!Config Desc =
1068!Config Def  = 1./8. !toutes les 3h
1069!Config Help =
1070!
1071  ecrit_hf_omp = 1./8.
1072  call getin('ecrit_hf',ecrit_hf_omp)
1073!
1074!Config Key  = ecrit_ins
1075!Config Desc =
1076!Config Def  = 1./48. ! toutes les 1/2 h
1077!Config Help =
1078!
1079  ecrit_ins_omp = 1./48.
1080  call getin('ecrit_ins',ecrit_ins_omp)
1081!
1082!Config Key  = ecrit_day
1083!Config Desc =
1084!Config Def  = 1.0 !tous les jours
1085!Config Help = nombre de jours pour ecriture fichier histday.nc
1086!
1087  ecrit_day_omp = 1.0
1088  call getin('ecrit_day',ecrit_day_omp)
1089!
1090!Config Key  = ecrit_mth
1091!Config Desc =
1092!Config Def  = 30. !tous les 30jours (1 fois par mois)
1093!Config Help =
1094!
1095  ecrit_mth_omp = 30.
1096  call getin('ecrit_mth',ecrit_mth_omp)
1097!
1098!Config Key  = ecrit_tra
1099!Config Desc =
1100!Config Def  = 30. !tous les 30jours (1 fois par mois)
1101!Config Help =
1102!
1103  ecrit_tra_omp = 30.
1104  call getin('ecrit_tra',ecrit_tra_omp)
1105!
1106!Config Key  = ecrit_reg
1107!Config Desc =
1108!Config Def  = 0.25  !4 fois par jour
1109!Config Help =
1110!
1111  ecrit_reg_omp = 0.25   !4 fois par jour
1112  call getin('ecrit_reg',ecrit_reg_omp)
1113!
1114!
1115!
1116! PARAMETRES CDRAG
1117!
1118!Config Key  = f_cdrag_stable
1119!Config Desc =
1120!Config Def  = 0.8
1121!Config Help =
1122!
1123  f_cdrag_stable_omp = 0.8
1124  call getin('f_cdrag_stable',f_cdrag_stable_omp)
1125!
1126!Config Key  = f_cdrag_ter
1127!Config Desc =
1128!Config Def  = 0.8
1129!Config Help =
1130!
1131  f_cdrag_ter_omp = 0.8
1132  call getin('f_cdrag_ter',f_cdrag_ter_omp)
1133!
1134!Config Key  = f_cdrag_oce
1135!Config Desc =
1136!Config Def  = 0.8
1137!Config Help =
1138!
1139  f_cdrag_oce_omp = 0.8
1140  call getin('f_cdrag_oce',f_cdrag_oce_omp)
1141!
1142! RUGORO
1143!Config Key  = f_rugoro
1144!Config Desc =
1145!Config Def  = 0.
1146!Config Help =
1147!
1148  f_rugoro_omp = 0.
1149  call getin('f_rugoro',f_rugoro_omp)
1150
1151! PARAMETERS FOR CONVECTIVE INHIBITION BY TROPOS. DRYNESS
1152!
1153!Config Key  = supcrit1
1154!Config Desc =
1155!Config Def  = .540
1156!Config Help =
1157!
1158  supcrit1_omp = .540
1159  call getin('supcrit1',supcrit1_omp)
1160
1161!
1162!Config Key  = supcrit2
1163!Config Desc =
1164!Config Def  = .600
1165!Config Help =
1166!
1167  supcrit2_omp = .600
1168  call getin('supcrit2',supcrit2_omp)
1169
1170!
1171! PARAMETERS FOR THE MIXING DISTRIBUTION
1172!
1173!
1174!Config Key  = iflag_mix
1175!Config Desc =
1176!Config Def  = 1
1177!Config Help =
1178!
1179  iflag_mix_omp = 1
1180  call getin('iflag_mix',iflag_mix_omp)
1181
1182!
1183!Config Key  = scut
1184!Config Desc =
1185!Config Def  = 0.95
1186!Config Help =
1187!
1188  scut_omp = 0.95
1189  call getin('scut',scut_omp)
1190
1191!
1192!Config Key  = qqa1
1193!Config Desc =
1194!Config Def  = 1.0
1195!Config Help =
1196!
1197  qqa1_omp = 1.0
1198  call getin('qqa1',qqa1_omp)
1199
1200!
1201!Config Key  = qqa2
1202!Config Desc =
1203!Config Def  = 0.0
1204!Config Help =
1205!
1206  qqa2_omp = 0.0
1207  call getin('qqa2',qqa2_omp)
1208
1209!
1210!Config Key  = gammas
1211!Config Desc =
1212!Config Def  = 0.05
1213!Config Help =
1214!
1215  gammas_omp = 0.05
1216  call getin('gammas',gammas_omp)
1217
1218!
1219!Config Key  = Fmax
1220!Config Desc =
1221!Config Def  = 0.65
1222!Config Help =
1223!
1224  Fmax_omp = 0.65
1225  call getin('Fmax',Fmax_omp)
1226
1227!
1228!Config Key  = alphas 
1229!Config Desc =
1230!Config Def  = -5.
1231!Config Help =
1232!
1233  alphas_omp = -5.
1234  call getin('alphas',alphas_omp)
1235
1236!Config key = ok_strato
1237!Config  Desc = activation de la version strato
1238!Config  Def  = .FALSE.
1239!Config  Help = active la version stratosphérique de LMDZ de F. Lott
1240
1241  ok_strato_omp=.FALSE.
1242  CALL getin('ok_strato',ok_strato_omp)
1243     
1244!Config  key = ok_hines
1245!Config  Desc = activation de la parametrisation de hines
1246!Config  Def  = .FALSE.
1247!Config  Help = Clefs controlant la parametrization de Hines
1248!               Et la sponge layer (Runs Stratospheriques)
1249
1250  ok_hines_omp=.FALSE.
1251  CALL getin('ok_hines',ok_hines_omp)
1252
1253!Config Key  = OK_LES                                               
1254!Config Desc = Pour des sorties LES                                 
1255!Config Def  = .false.                                             
1256!Config Help = Pour creer le fichier histLES contenant les sorties 
1257!              LES                                                 
1258!                                                                   
1259  ok_LES_omp = .false.                                             
1260  call getin('OK_LES', ok_LES_omp)                                 
1261!
1262!Config Key  = ecrit_LES
1263!Config Desc = Frequence d'ecriture des resultats du LES en nombre de jours;
1264!              par defaut 1., i.e. 1 jour
1265!Config Def  = 1./8.
1266!Config Help = ...
1267!
1268!
1269  ecrit_LES_omp = 1./8.
1270  call getin('ecrit_LES', ecrit_LES_omp)
1271!
1272  read_climoz = .false. ! default value
1273  call getin('read_climoz', read_climoz)
1274
1275!$OMP END MASTER
1276!$OMP BARRIER
1277
1278    R_ecc = R_ecc_omp
1279    R_peri = R_peri_omp
1280    R_incl = R_incl_omp
1281    solaire = solaire_omp
1282    co2_ppm = co2_ppm_omp
1283    RCO2 = RCO2_omp
1284    CH4_ppb = CH4_ppb_omp
1285    RCH4 = RCH4_omp
1286    N2O_ppb = N2O_ppb_omp
1287    RN2O = RN2O_omp
1288    CFC11_ppt = CFC11_ppt_omp
1289    RCFC11 = RCFC11_omp
1290    CFC12_ppt = CFC12_ppt_omp
1291    RCFC12 = RCFC12_omp
1292
1293    cycle_diurne = cycle_diurne_omp
1294    soil_model = soil_model_omp
1295    new_oliq = new_oliq_omp
1296    ok_orodr = ok_orodr_omp
1297    ok_orolf = ok_orolf_omp
1298    ok_limitvrai = ok_limitvrai_omp
1299    nbapp_rad = nbapp_rad_omp
1300    iflag_con = iflag_con_omp
1301
1302    epmax = epmax_omp
1303    ok_adj_ema = ok_adj_ema_omp
1304    iflag_clw = iflag_clw_omp
1305    cld_lc_lsc = cld_lc_lsc_omp
1306    cld_lc_con = cld_lc_con_omp
1307    cld_tau_lsc = cld_tau_lsc_omp
1308    cld_tau_con = cld_tau_con_omp
1309    ffallv_lsc = ffallv_lsc_omp
1310    ffallv_con = ffallv_con_omp
1311    coef_eva = coef_eva_omp
1312    reevap_ice = reevap_ice_omp
1313    iflag_pdf = iflag_pdf_omp
1314    solarlong0 = solarlong0_omp
1315    qsol0 = qsol0_omp
1316    inertie_sol = inertie_sol_omp
1317    inertie_ice = inertie_ice_omp
1318    inertie_sno = inertie_sno_omp
1319    rad_froid = rad_froid_omp
1320    rad_chau1 = rad_chau1_omp
1321    rad_chau2 = rad_chau2_omp
1322    top_height = top_height_omp
1323    overlap = overlap_omp
1324    cdmmax = cdmmax_omp
1325    cdhmax = cdhmax_omp
1326    ksta = ksta_omp
1327    ksta_ter = ksta_ter_omp
1328    ok_kzmin = ok_kzmin_omp
1329    fmagic = fmagic_omp
1330    pmagic = pmagic_omp
1331    iflag_pbl = iflag_pbl_omp
1332    lev_histhf = lev_histhf_omp
1333    lev_histday = lev_histday_omp
1334    lev_histmth = lev_histmth_omp
1335
1336    type_ocean = type_ocean_omp
1337    version_ocean = version_ocean_omp
1338    ok_veget = ok_veget_omp
1339    ok_newmicro = ok_newmicro_omp
1340    ok_journe = ok_journe_omp
1341    ok_hf = ok_hf_omp
1342    ok_mensuel = ok_mensuel_omp
1343    ok_instan = ok_instan_omp
1344    freq_ISCCP = freq_ISCCP_omp
1345    ecrit_ISCCP = ecrit_ISCCP_omp
1346    ok_ade = ok_ade_omp
1347    ok_aie = ok_aie_omp
1348    aerosol_couple = aerosol_couple_omp
1349    flag_aerosol=flag_aerosol_omp
1350    new_aod=new_aod_omp
1351    aer_type = aer_type_omp
1352    bl95_b0 = bl95_b0_omp
1353    bl95_b1 = bl95_b1_omp
1354    fact_cldcon = fact_cldcon_omp
1355    facttemps = facttemps_omp
1356    ratqsbas = ratqsbas_omp
1357    ratqshaut = ratqshaut_omp
1358    iflag_radia = iflag_radia_omp
1359    iflag_rrtm = iflag_rrtm_omp
1360    iflag_cldcon = iflag_cldcon_omp
1361    iflag_ratqs = iflag_ratqs_omp
1362    ip_ebil_phy = ip_ebil_phy_omp
1363    iflag_thermals = iflag_thermals_omp
1364    iflag_thermals_ed = iflag_thermals_ed_omp
1365    iflag_thermals_optflux = iflag_thermals_optflux_omp
1366    nsplit_thermals = nsplit_thermals_omp
1367    tau_thermals = tau_thermals_omp
1368    iflag_coupl = iflag_coupl_omp
1369    iflag_clos = iflag_clos_omp
1370    iflag_wake = iflag_wake_omp
1371    iflag_cvl_sigd = iflag_cvl_sigd_omp
1372    type_run = type_run_omp
1373    ok_isccp = ok_isccp_omp
1374    seuil_inversion=seuil_inversion_omp
1375    lonmin_ins = lonmin_ins_omp
1376    lonmax_ins = lonmax_ins_omp
1377    latmin_ins = latmin_ins_omp
1378    latmax_ins = latmax_ins_omp
1379    ecrit_hf   = ecrit_hf_omp
1380    ecrit_ins   = ecrit_ins_omp
1381    ecrit_day = ecrit_day_omp
1382    ecrit_mth = ecrit_mth_omp
1383    ecrit_tra = ecrit_tra_omp
1384    ecrit_reg = ecrit_reg_omp
1385    cvl_corr = cvl_corr_omp
1386    ok_lic_melt = ok_lic_melt_omp
1387    f_cdrag_stable=f_cdrag_stable_omp
1388    f_cdrag_ter=f_cdrag_ter_omp
1389    f_cdrag_oce=f_cdrag_oce_omp
1390    f_rugoro=f_rugoro_omp
1391    supcrit1 = supcrit1_omp
1392    supcrit2 = supcrit2_omp
1393    iflag_mix = iflag_mix_omp
1394    scut = scut_omp
1395    qqa1 = qqa1_omp
1396    qqa2 = qqa2_omp
1397    gammas = gammas_omp
1398    Fmax = Fmax_omp
1399    alphas = alphas_omp
1400    ok_strato = ok_strato_omp
1401    ok_hines = ok_hines_omp
1402    ok_LES = ok_LES_omp
1403    ecrit_LES = ecrit_LES_omp
1404   
1405! Test of coherence between type_ocean and version_ocean
1406    IF (type_ocean=='couple' .AND. (version_ocean/='opa8' .AND. version_ocean/='nemo') ) THEN
1407       WRITE(numout,*)' ERROR version_ocean=',version_ocean,' not valid in coupled configuration'
1408       CALL abort_gcm('conf_phys','version_ocean not valid',1)
1409    END IF
1410
1411    IF (type_ocean=='slab' .AND. version_ocean=='xxxxxx') THEN
1412       version_ocean='sicOBS'
1413    ELSE IF (type_ocean=='slab' .AND. version_ocean/='sicOBS') THEN
1414       WRITE(numout,*)' ERROR version_ocean=',version_ocean,' not valid with slab ocean'
1415       CALL abort_gcm('conf_phys','version_ocean not valid',1)
1416    END IF
1417
1418! Test sur new_aod. Ce flag permet de retrouver les resultats de l'AR4
1419! il n'est utilisable que lors du couplage avec le SO4 seul
1420    IF (ok_ade .OR. ok_aie) THEN
1421       IF ( .NOT. new_aod .AND.  flag_aerosol .NE. 1) THEN
1422          CALL abort_gcm('conf_phys','new_aod=.FALSE. not compatible avec flag_aerosol=1',1)
1423       END IF
1424    END IF
1425
1426!$OMP MASTER
1427
1428  write(numout,*)' ##############################################'
1429  write(numout,*)' Configuration des parametres de la physique: '
1430  write(numout,*)' Type ocean = ', type_ocean
1431  write(numout,*)' Version ocean = ', version_ocean
1432  write(numout,*)' Config veget = ', ok_veget
1433  write(numout,*)' Sortie journaliere = ', ok_journe
1434  write(numout,*)' Sortie haute frequence = ', ok_hf
1435  write(numout,*)' Sortie mensuelle = ', ok_mensuel
1436  write(numout,*)' Sortie instantanee = ', ok_instan
1437  write(numout,*)' Frequence appel simulateur ISCCP, freq_ISCCP =', freq_ISCCP
1438  write(numout,*)' Frequence appel simulateur ISCCP, ecrit_ISCCP =', ecrit_ISCCP
1439  write(numout,*)' Sortie bilan d''energie, ip_ebil_phy =', ip_ebil_phy
1440  write(numout,*)' Excentricite = ',R_ecc
1441  write(numout,*)' Equinoxe = ',R_peri
1442  write(numout,*)' Inclinaison =',R_incl
1443  write(numout,*)' Constante solaire =',solaire
1444  write(numout,*)' co2_ppm =',co2_ppm
1445  write(numout,*)' RCO2 = ',RCO2
1446  write(numout,*)' CH4_ppb =',CH4_ppb,' RCH4 = ',RCH4
1447  write(numout,*)' N2O_ppb =',N2O_ppb,' RN2O =  ',RN2O
1448  write(numout,*)' CFC11_ppt=',CFC11_ppt,' RCFC11 =  ',RCFC11
1449  write(numout,*)' CFC12_ppt=',CFC12_ppt,' RCFC12 =  ',RCFC12
1450  write(numout,*)' cvl_corr=', cvl_corr
1451  write(numout,*)'ok_lic_melt=', ok_lic_melt
1452  write(numout,*)'cycle_diurne=',cycle_diurne
1453  write(numout,*)'soil_model=',soil_model
1454  write(numout,*)'new_oliq=',new_oliq
1455  write(numout,*)'ok_orodr=',ok_orodr
1456  write(numout,*)'ok_orolf=',ok_orolf
1457  write(numout,*)'ok_limitvrai=',ok_limitvrai
1458  write(numout,*)'nbapp_rad=',nbapp_rad
1459  write(numout,*)'iflag_con=',iflag_con
1460  write(numout,*)' epmax = ', epmax
1461  write(numout,*)' ok_adj_ema = ', ok_adj_ema
1462  write(numout,*)' iflag_clw = ', iflag_clw
1463  write(numout,*)' cld_lc_lsc = ', cld_lc_lsc
1464  write(numout,*)' cld_lc_con = ', cld_lc_con
1465  write(numout,*)' cld_tau_lsc = ', cld_tau_lsc
1466  write(numout,*)' cld_tau_con = ', cld_tau_con
1467  write(numout,*)' ffallv_lsc = ', ffallv_lsc
1468  write(numout,*)' ffallv_con = ', ffallv_con
1469  write(numout,*)' coef_eva = ', coef_eva
1470  write(numout,*)' reevap_ice = ', reevap_ice
1471  write(numout,*)' iflag_pdf = ', iflag_pdf
1472  write(numout,*)' iflag_cldcon = ', iflag_cldcon
1473  write(numout,*)' iflag_radia = ', iflag_radia
1474  write(numout,*)' iflag_rrtm = ', iflag_rrtm
1475  write(numout,*)' iflag_ratqs = ', iflag_ratqs
1476  write(numout,*)' seuil_inversion = ', seuil_inversion
1477  write(numout,*)' fact_cldcon = ', fact_cldcon
1478  write(numout,*)' facttemps = ', facttemps
1479  write(numout,*)' ok_newmicro = ',ok_newmicro
1480  write(numout,*)' ratqsbas = ',ratqsbas
1481  write(numout,*)' ratqshaut = ',ratqshaut
1482  write(numout,*)' top_height = ',top_height
1483  write(numout,*)' overlap = ',overlap
1484  write(numout,*)' cdmmax = ',cdmmax
1485  write(numout,*)' cdhmax = ',cdhmax
1486  write(numout,*)' ksta = ',ksta
1487  write(numout,*)' ksta_ter = ',ksta_ter
1488  write(numout,*)' ok_kzmin = ',ok_kzmin
1489  write(numout,*)' fmagic = ',fmagic
1490  write(numout,*)' pmagic = ',pmagic
1491  write(numout,*)' ok_ade = ',ok_ade
1492  write(numout,*)' ok_aie = ',ok_aie
1493  write(numout,*)' aerosol_couple = ', aerosol_couple
1494  write(numout,*)' flag_aerosol = ', flag_aerosol
1495  write(numout,*)' new_aod = ', new_aod
1496  write(numout,*)' aer_type = ',aer_type
1497  write(numout,*)' bl95_b0 = ',bl95_b0
1498  write(numout,*)' bl95_b1 = ',bl95_b1
1499  write(numout,*)' lev_histhf = ',lev_histhf
1500  write(numout,*)' lev_histday = ',lev_histday
1501  write(numout,*)' lev_histmth = ',lev_histmth
1502  write(numout,*)' iflag_pbl = ', iflag_pbl
1503  write(numout,*)' iflag_thermals = ', iflag_thermals
1504  write(numout,*)' iflag_thermals_ed = ', iflag_thermals_ed
1505  write(numout,*)' iflag_thermals_optflux = ', iflag_thermals_optflux
1506  write(numout,*)' iflag_clos = ', iflag_clos
1507  write(numout,*)' type_run = ',type_run
1508  write(numout,*)' ok_isccp = ',ok_isccp
1509  write(numout,*)' solarlong0 = ', solarlong0
1510  write(numout,*)' qsol0 = ', qsol0
1511  write(numout,*)' inertie_sol = ', inertie_sol
1512  write(numout,*)' inertie_ice = ', inertie_ice
1513  write(numout,*)' inertie_sno = ', inertie_sno
1514  write(numout,*)' f_cdrag_stable = ',f_cdrag_stable
1515  write(numout,*)' f_cdrag_ter = ',f_cdrag_ter
1516  write(numout,*)' f_cdrag_oce = ',f_cdrag_oce
1517  write(numout,*)' f_rugoro = ',f_rugoro
1518  write(numout,*)' supcrit1 = ', supcrit1
1519  write(numout,*)' supcrit2 = ', supcrit2
1520  write(numout,*)' iflag_mix = ', iflag_mix
1521  write(numout,*)' scut = ', scut
1522  write(numout,*)' qqa1 = ', qqa1
1523  write(numout,*)' qqa2 = ', qqa2
1524  write(numout,*)' gammas = ', gammas
1525  write(numout,*)' Fmax = ', Fmax
1526  write(numout,*)' alphas = ', alphas
1527
1528  write(numout,*)' lonmin lonmax latmin latmax bilKP_ins =',&
1529   lonmin_ins, lonmax_ins, latmin_ins, latmax_ins
1530  write(numout,*)' ecrit_ hf, ins, day, mth, reg, tra, ISCCP, LES',&
1531   ecrit_hf, ecrit_ins, ecrit_day, ecrit_mth, ecrit_reg, ecrit_tra, ecrit_ISCCP, ecrit_LES
1532
1533  write(numout,*) 'ok_strato = ', ok_strato
1534  write(numout,*) 'ok_hines = ',  ok_hines
1535  write(numout,*) 'read_climoz = ', read_climoz
1536 
1537!$OMP END MASTER
1538
1539  return
1540 
1541  end subroutine conf_phys
1542
1543!
1544!#################################################################
1545!
1546
1547   subroutine conf_interface(tau_calv)
1548
1549   use IOIPSL
1550   implicit none
1551
1552! Configuration de l'interace atm/surf
1553!
1554! tau_calv:    temps de relaxation pour la fonte des glaciers
1555
1556  REAL          :: tau_calv
1557  REAL,SAVE     :: tau_calv_omp
1558
1559! Local
1560  integer              :: numout = 6
1561!
1562!Config Key  = tau_calv
1563!Config Desc = temps de relaxation pour fonte des glaciers en jours
1564!Config Def  = 1 an
1565!Config Help =
1566!
1567  tau_calv_omp = 360.*10.
1568!$OMP MASTER
1569  call getin('tau_calv',tau_calv_omp)
1570!$OMP END MASTER
1571!$OMP BARRIER
1572
1573  tau_calv=tau_calv_omp
1574 
1575!$OMP MASTER
1576  write(numout,*)' ##############################################'
1577  WRITE(numout,*)' Configuration de l''interface atm/surfaces  : '
1578  WRITE(numout,*)' tau_calv = ',tau_calv
1579!$OMP END MASTER
1580
1581  return
1582
1583  end subroutine conf_interface
Note: See TracBrowser for help on using the repository browser.