source: LMDZ4/trunk/libf/phylmd/conf_phys.F90 @ 1080

Last change on this file since 1080 was 1054, checked in by lmdzadmin, 16 years ago

Ajout sorties tendances dynamiques histLES
ACA/FH/IM

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