source: LMDZ4/trunk/libf/phy_IPCC_AR4/conf_phys.F90 @ 872

Last change on this file since 872 was 868, checked in by Laurent Fairhead, 17 years ago

Preparation du remplacement de la physique utilisee pour l'exercice IPCC_AR4
par la version de la physique avec thermique. On garde le repertoire phylmd
pour un petit moment pour que les utilisateurs ne soient pas trop perdus ...
phy_IPCC_AR4 = phylmd
LF

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 23.2 KB
Line 
1!
2! $Header$
3!
4!
5!
6
7  subroutine conf_phys(ocean, ok_veget, ok_journe, ok_mensuel, ok_instan, ok_hf, &
8 &                     fact_cldcon, facttemps,ok_newmicro,iflag_cldcon, &
9!IM&                   ratqsbas,ratqshaut,ip_ebil_phy, &
10 &                     ratqsbas,ratqshaut, &
11 &                     ok_ade, ok_aie, &
12 &                     bl95_b0, bl95_b1,&
13 &                     iflag_thermals,nsplit_thermals)
14
15   use IOIPSL
16   implicit none
17
18 include "conema3.h"
19 include "fisrtilp.h"
20 include "nuage.h"
21 include "YOMCST.h"
22!IM : on inclut/initialise les taux de CH4, N2O, CFC11 et CFC12
23include "clesphys.h"
24include "compbl.h"
25include "control.h"
26!
27! Configuration de la "physique" de LMDZ a l'aide de la fonction
28! GETIN de IOIPSL
29!
30! LF 05/2001
31!
32
33!
34! ocean:      type d'ocean (force, slab, couple)
35! ok_veget:   type de modele de vegetation
36! ok_journe:  sorties journalieres
37! ok_hf:  sorties haute frequence
38! ok_mensuel: sorties mensuelles
39! ok_instan:  sorties instantanees
40! ok_ade, ok_aie: apply or not aerosol direct and indirect effects
41! bl95_b*: parameters in the formula to link CDNC to aerosol mass conc
42!
43
44
45! Sortie:
46  character (len = 6)  :: ocean
47  logical              :: ok_veget, ok_newmicro
48  logical              :: ok_journe, ok_mensuel, ok_instan, ok_hf
49  LOGICAL              :: ok_ade, ok_aie
50  REAL                 :: bl95_b0, bl95_b1
51  real                 :: fact_cldcon, facttemps,ratqsbas,ratqshaut
52  integer              :: iflag_cldcon
53
54  character (len = 6),SAVE  :: ocean_omp
55  logical,SAVE              :: ok_veget_omp, ok_newmicro_omp
56  logical,SAVE        :: ok_journe_omp, ok_mensuel_omp, ok_instan_omp, ok_hf_omp       
57  LOGICAL,SAVE        :: ok_ade_omp, ok_aie_omp
58  REAL,SAVE           :: bl95_b0_omp, bl95_b1_omp
59  REAL,SAVE           :: freq_ISCCP_omp, ecrit_ISCCP_omp
60  real,SAVE           :: fact_cldcon_omp, facttemps_omp,ratqsbas_omp
61  real,SAVE           :: ratqshaut_omp
62  integer,SAVE        :: iflag_cldcon_omp, ip_ebil_phy_omp
63
64! Local
65  integer              :: numout = 6
66  real                 :: zzz
67
68  integer :: iflag_thermals,nsplit_thermals
69  integer,SAVE :: iflag_thermals_omp,nsplit_thermals_omp
70
71  REAL,SAVE :: R_ecc_omp,R_peri_omp,R_incl_omp,solaire_omp,co2_ppm_omp
72  REAL,SAVE :: RCO2_omp,CH4_ppb_omp,RCH4_omp,N2O_ppb_omp,RN2O_omp,CFC11_ppt_omp
73  REAL,SAVE :: RCFC11_omp,CFC12_ppt_omp,RCFC12_omp,epmax_omp
74  LOGICAL,SAVE :: ok_adj_ema_omp
75  INTEGER,SAVE :: iflag_clw_omp
76  REAL,SAVE :: cld_lc_lsc_omp,cld_lc_con_omp,cld_tau_lsc_omp,cld_tau_con_omp
77  REAL,SAVE :: ffallv_lsc_omp, ffallv_con_omp,coef_eva_omp
78  LOGICAL,SAVE :: reevap_ice_omp
79  INTEGER,SAVE :: iflag_pdf_omp
80  REAL,SAVE :: rad_froid_omp, rad_chau1_omp, rad_chau2_omp
81  INTEGER,SAVE :: top_height_omp,overlap_omp
82  REAL,SAVE :: cdmmax_omp,cdhmax_omp,ksta_omp,ksta_ter_omp
83  LOGICAL,SAVE :: ok_kzmin_omp
84  REAL, SAVE ::  fmagic_omp
85  INTEGER,SAVE :: iflag_pbl_omp,lev_histhf_omp,lev_histday_omp,lev_histmth_omp
86  CHARACTER*4, SAVE :: type_run_omp
87  LOGICAL,SAVE :: ok_isccp_omp
88  REAL,SAVE :: lonmin_ins_omp, lonmax_ins_omp, latmin_ins_omp, latmax_ins_omp
89  REAL,SAVE :: ecrit_hf_omp, ecrit_day_omp, ecrit_mth_omp, ecrit_reg_omp
90  REAL,SAVE :: ecrit_tra_omp
91  LOGICAL, SAVE :: ok_slab_sicOBS_omp
92  REAL,SAVE :: cvl_corr_omp
93  LOGICAL,SAVE :: ok_lic_melt_omp
94!
95!
96!
97
98!$OMP MASTER
99!Config Key  = OCEAN
100!Config Desc = Type d'ocean
101!Config Def  = force
102!Config Help = Type d'ocean utilise: force, slab,couple
103!
104  ocean_omp = 'force '
105  call getin('OCEAN', ocean_omp)
106!
107!Config Key  = VEGET
108!Config Desc = Type de modele de vegetation
109!Config Def  = .false.
110!Config Help = Type de modele de vegetation utilise
111!
112  ok_veget_omp = .false.
113  call getin('VEGET', ok_veget_omp)
114!
115!Config Key  = OK_journe
116!Config Desc = Pour des sorties journalieres
117!Config Def  = .false.
118!Config Help = Pour creer le fichier histday contenant les sorties
119!              journalieres
120!
121  ok_journe_omp = .false.
122  call getin('OK_journe', ok_journe_omp)
123!
124!Config Key  = ok_hf
125!Config Desc = Pour des sorties haute frequence
126!Config Def  = .false.
127!Config Help = Pour creer le fichier histhf contenant les sorties
128!              haute frequence ( 3h ou 6h)
129!
130  ok_hf_omp = .false.
131  call getin('ok_hf', ok_hf_omp)
132!
133!Config Key  = OK_mensuel
134!Config Desc = Pour des sorties mensuelles
135!Config Def  = .true.
136!Config Help = Pour creer le fichier histmth contenant les sorties
137!              mensuelles
138!
139  ok_mensuel_omp = .true.
140  call getin('OK_mensuel', ok_mensuel_omp)
141!
142!Config Key  = OK_instan
143!Config Desc = Pour des sorties instantanees
144!Config Def  = .false.
145!Config Help = Pour creer le fichier histins contenant les sorties
146!              instantanees
147!
148  ok_instan_omp = .false.
149  call getin('OK_instan', ok_instan_omp)
150!
151!Config Key  = ok_ade
152!Config Desc = Aerosol direct effect or not?
153!Config Def  = .false.
154!Config Help = Used in radlwsw.F
155!
156  ok_ade_omp = .false.
157  call getin('ok_ade', ok_ade_omp)
158
159!
160!Config Key  = ok_aie
161!Config Desc = Aerosol indirect effect or not?
162!Config Def  = .false.
163!Config Help = Used in nuage.F and radlwsw.F
164!
165  ok_aie_omp = .false.
166  call getin('ok_aie', ok_aie_omp)
167
168!
169!Config Key  = bl95_b0
170!Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
171!Config Def  = .false.
172!Config Help = Used in nuage.F
173!
174  bl95_b0_omp = 2.
175  call getin('bl95_b0', bl95_b0_omp)
176
177!Config Key  = bl95_b1
178!Config Desc = Parameter in CDNC-maer link (Boucher&Lohmann 1995)
179!Config Def  = .false.
180!Config Help = Used in nuage.F
181!
182  bl95_b1_omp = 0.2
183  call getin('bl95_b1', bl95_b1_omp)
184
185!Config Key  = freq_ISCCP
186!Config Desc = Frequence d'appel du simulateur ISCCP en secondes;
187!              par defaut 10800, i.e. 3 heures
188!Config Def  = 10800.
189!Config Help = Used in ini_histISCCP.h
190!
191  freq_ISCCP_omp = 10800.
192  call getin('freq_ISCCP', freq_ISCCP_omp)
193!
194!Config Key  = ecrit_ISCCP
195!Config Desc = Frequence d'ecriture des resultats du simulateur ISCCP en nombre de jours;
196!              par defaut 1., i.e. 1 jour
197!Config Def  = 1.
198!Config Help = Used in ini_histISCCP.h
199!
200!
201  ecrit_ISCCP_omp = 1.
202  call getin('ecrit_ISCCP', ecrit_ISCCP_omp)
203!
204!Config Key  = ip_ebil_phy
205!Config Desc = Niveau de sortie pour les diags bilan d'energie
206!Config Def  = 0
207!Config Help =
208!               
209!
210  ip_ebil_phy_omp = 0
211  call getin('ip_ebil_phy', ip_ebil_phy_omp)
212!!
213!! Constante solaire & Parametres orbitaux & taux gaz effet de serre BEG
214!!
215!Config Key  = R_ecc
216!Config Desc = Excentricite
217!Config Def  = 0.016715
218!Config Help =
219!               
220!valeur AMIP II
221  R_ecc_omp = 0.016715
222  call getin('R_ecc', R_ecc_omp)
223!!
224!Config Key  = R_peri
225!Config Desc = Equinoxe
226!Config Def  =
227!Config Help =
228!               
229!
230!valeur AMIP II
231  R_peri_omp = 102.7
232  call getin('R_peri', R_peri_omp)
233!!
234!Config Key  = R_incl
235!Config Desc = Inclinaison
236!Config Def  =
237!Config Help =
238!               
239!
240!valeur AMIP II
241  R_incl_omp = 23.441
242  call getin('R_incl', R_incl_omp)
243!!
244!Config Key  = solaire
245!Config Desc = Constante solaire en W/m2
246!Config Def  = 1365.
247!Config Help =
248!               
249!
250!valeur AMIP II
251  solaire_omp = 1365.
252  call getin('solaire', solaire_omp)
253!!
254!Config Key  = co2_ppm
255!Config Desc = concentration du gaz carbonique en ppmv
256!Config Def  = 348.
257!Config Help =
258!               
259!
260!valeur AMIP II
261  co2_ppm_omp = 348.
262  call getin('co2_ppm', co2_ppm_omp)
263!!
264!Config Key  = RCO2
265!Config Desc = Concentration du CO2
266!Config Def  = co2_ppm * 1.0e-06  * 44.011/28.97
267!Config Def  = 348. * 1.0e-06  * 44.011/28.97
268!Config Help =
269!               
270! RCO2 = 5.286789092164308E-04
271!ancienne valeur
272  RCO2_omp = co2_ppm_omp * 1.0e-06  * 44.011/28.97 ! pour co2_ppm=348.
273
274!!  call getin('RCO2', RCO2)
275!!
276!Config Key  = RCH4
277!Config Desc = Concentration du CH4
278!Config Def  = 1.65E-06* 16.043/28.97
279!Config Help =
280!               
281!
282!valeur AMIP II
283!OK  RCH4 = 1.65E-06* 16.043/28.97
284! RCH4 = 9.137366240938903E-07
285!
286!ancienne valeur
287! RCH4 = 1.72E-06* 16.043/28.97
288!OK call getin('RCH4', RCH4)
289  zzz = 1650.
290  call getin('CH4_ppb', zzz)
291  CH4_ppb_omp = zzz
292  RCH4_omp = CH4_ppb_omp * 1.0E-09 * 16.043/28.97
293!!
294!Config Key  = RN2O
295!Config Desc = Concentration du N2O
296!Config Def  = 306.E-09* 44.013/28.97
297!Config Help =
298!               
299!
300!valeur AMIP II
301!OK  RN2O = 306.E-09* 44.013/28.97
302! RN2O = 4.648939592682085E-07
303!
304!ancienne valeur
305! RN2O = 310.E-09* 44.013/28.97
306!OK  call getin('RN2O', RN2O)
307  zzz=306.
308  call getin('N2O_ppb', zzz)
309  N2O_ppb_omp = zzz
310  RN2O_omp = N2O_ppb_omp * 1.0E-09 * 44.013/28.97
311!!
312!Config Key  = RCFC11
313!Config Desc = Concentration du CFC11
314!Config Def  = 280.E-12* 137.3686/28.97
315!Config Help =
316!               
317!
318!OK RCFC11 = 280.E-12* 137.3686/28.97
319  zzz = 280.
320  call getin('CFC11_ppt',zzz)
321  CFC11_ppt_omp = zzz
322  RCFC11_omp=CFC11_ppt_omp* 1.0E-12 * 137.3686/28.97
323! RCFC11 = 1.327690990680013E-09
324!OK call getin('RCFC11', RCFC11)
325!!
326!Config Key  = RCFC12
327!Config Desc = Concentration du CFC12
328!Config Def  = 484.E-12* 120.9140/28.97
329!Config Help =
330!               
331!
332!OK RCFC12 = 484.E-12* 120.9140/28.97
333  zzz = 484.
334  call getin('CFC12_ppt',zzz)
335  CFC12_ppt_omp = zzz
336  RCFC12_omp = CFC12_ppt_omp * 1.0E-12 * 120.9140/28.97
337! RCFC12 = 2.020102726958923E-09
338!OK call getin('RCFC12', RCFC12)
339!!
340!! Constante solaire & Parametres orbitaux & taux gaz effet de serre END
341!!
342!! KE
343!
344
345!Config key  = cvl_corr
346!Config Desc = Facteur multiplication des precip convectives dans KE
347!Config Def  = 1.00
348!Config Help = 1.02 pour un moderne ou un pre-ind. A ajuster pour un glaciaire
349  cvl_corr_omp = 1.00
350  CALL getin('cvl_corr', cvl_corr_omp)
351
352
353!Config Key  = epmax
354!Config Desc = Efficacite precip
355!Config Def  = 0.993
356!Config Help =
357!
358  epmax_omp = .993
359  call getin('epmax', epmax_omp)
360!
361!Config Key  = ok_adj_ema
362!Config Desc = 
363!Config Def  = false
364!Config Help =
365!
366  ok_adj_ema_omp = .false.
367  call getin('ok_adj_ema',ok_adj_ema_omp)
368!
369!Config Key  = iflag_clw
370!Config Desc = 
371!Config Def  = 0
372!Config Help =
373!
374  iflag_clw_omp = 0
375  call getin('iflag_clw',iflag_clw_omp)
376!
377!Config Key  = cld_lc_lsc
378!Config Desc = 
379!Config Def  = 2.6e-4
380!Config Help =
381!
382  cld_lc_lsc_omp = 2.6e-4
383  call getin('cld_lc_lsc',cld_lc_lsc_omp)
384!
385!Config Key  = cld_lc_con
386!Config Desc = 
387!Config Def  = 2.6e-4
388!Config Help =
389!
390  cld_lc_con_omp = 2.6e-4
391  call getin('cld_lc_con',cld_lc_con_omp)
392!
393!Config Key  = cld_tau_lsc
394!Config Desc = 
395!Config Def  = 3600.
396!Config Help =
397!
398  cld_tau_lsc_omp = 3600.
399  call getin('cld_tau_lsc',cld_tau_lsc_omp)
400!
401!Config Key  = cld_tau_con
402!Config Desc = 
403!Config Def  = 3600.
404!Config Help =
405!
406  cld_tau_con_omp = 3600.
407  call getin('cld_tau_con',cld_tau_con_omp)
408!
409!Config Key  = ffallv_lsc
410!Config Desc = 
411!Config Def  = 1.
412!Config Help =
413!
414  ffallv_lsc_omp = 1.
415  call getin('ffallv_lsc',ffallv_lsc_omp)
416!
417!Config Key  = ffallv_con
418!Config Desc = 
419!Config Def  = 1.
420!Config Help =
421!
422  ffallv_con_omp = 1.
423  call getin('ffallv_con',ffallv_con_omp)
424!
425!Config Key  = coef_eva
426!Config Desc = 
427!Config Def  = 2.e-5
428!Config Help =
429!
430  coef_eva_omp = 2.e-5
431  call getin('coef_eva',coef_eva_omp)
432!
433!Config Key  = reevap_ice
434!Config Desc = 
435!Config Def  = .false.
436!Config Help =
437!
438  reevap_ice_omp = .false.
439  call getin('reevap_ice',reevap_ice_omp)
440!
441!Config Key  = iflag_cldcon
442!Config Desc = 
443!Config Def  = 1
444!Config Help =
445!
446  iflag_cldcon_omp = 1
447  call getin('iflag_cldcon',iflag_cldcon_omp)
448
449!
450!Config Key  = iflag_pdf
451!Config Desc = 
452!Config Def  = 0
453!Config Help =
454!
455  iflag_pdf_omp = 0
456  call getin('iflag_pdf',iflag_pdf_omp)
457!
458!Config Key  = fact_cldcon
459!Config Desc = 
460!Config Def  = 0.375
461!Config Help =
462!
463  fact_cldcon_omp = 0.375
464  call getin('fact_cldcon',fact_cldcon_omp)
465
466!
467!Config Key  = facttemps
468!Config Desc = 
469!Config Def  = 1.e-4
470!Config Help =
471!
472  facttemps_omp = 1.e-4
473  call getin('facttemps',facttemps_omp)
474
475!
476!Config Key  = ok_newmicro
477!Config Desc = 
478!Config Def  = .true.
479!Config Help =
480!
481  ok_newmicro_omp = .true.
482  call getin('ok_newmicro',ok_newmicro_omp)
483!
484!Config Key  = ratqsbas
485!Config Desc = 
486!Config Def  = 0.01
487!Config Help =
488!
489  ratqsbas_omp = 0.01
490  call getin('ratqsbas',ratqsbas_omp)
491!
492!Config Key  = ratqshaut
493!Config Desc = 
494!Config Def  = 0.3
495!Config Help =
496!
497  ratqshaut_omp = 0.3
498  call getin('ratqshaut',ratqshaut_omp)
499
500!
501!Config Key  = rad_froid
502!Config Desc = 
503!Config Def  = 35.0
504!Config Help =
505!
506  rad_froid_omp = 35.0
507  call getin('rad_froid',rad_froid_omp)
508
509!
510!Config Key  = rad_chau1
511!Config Desc = 
512!Config Def  = 13.0
513!Config Help =
514!
515  rad_chau1_omp = 13.0
516  call getin('rad_chau1',rad_chau1_omp)
517
518!
519!Config Key  = rad_chau2
520!Config Desc = 
521!Config Def  = 9.0
522!Config Help =
523!
524  rad_chau2_omp = 9.0
525  call getin('rad_chau2',rad_chau2_omp)
526
527!
528!Config Key  = top_height
529!Config Desc =
530!Config Def  = 3
531!Config Help =
532!
533  top_height_omp = 3
534  call getin('top_height',top_height_omp)
535
536!
537!Config Key  = overlap
538!Config Desc =
539!Config Def  = 3
540!Config Help =
541!
542  overlap_omp = 3
543  call getin('overlap',overlap_omp)
544
545
546!
547!
548!Config Key  = cdmmax
549!Config Desc =
550!Config Def  = 1.3E-3
551!Config Help =
552!
553  cdmmax_omp = 1.3E-3
554  call getin('cdmmax',cdmmax_omp)
555
556!
557!Config Key  = cdhmax
558!Config Desc =
559!Config Def  = 1.1E-3
560!Config Help =
561!
562  cdhmax_omp = 1.1E-3
563  call getin('cdhmax',cdhmax_omp)
564
565!261103
566!
567!Config Key  = ksta
568!Config Desc =
569!Config Def  = 1.0e-10
570!Config Help =
571!
572  ksta_omp = 1.0e-10
573  call getin('ksta',ksta_omp)
574
575!
576!Config Key  = ksta_ter
577!Config Desc =
578!Config Def  = 1.0e-10
579!Config Help =
580!
581  ksta_ter_omp = 1.0e-10
582  call getin('ksta_ter',ksta_ter_omp)
583
584!
585!Config Key  = ok_kzmin
586!Config Desc =
587!Config Def  = .true.
588!Config Help =
589!
590  ok_kzmin_omp = .true.
591  call getin('ok_kzmin',ok_kzmin_omp)
592
593!
594!Config Key  = fmagic
595!Config Desc =
596!Config Def  = 1.
597!Config Help = Used in albedo.F
598!
599  fmagic_omp = 1.
600  call getin('fmagic',fmagic_omp)
601
602!Config Key = ok_lic_melt
603!Config Desc = Prise en compte de la fonte de la calotte dans le bilan d'eau
604!Config Def  = .false.
605!Config Help = mettre a .false. pour assurer la conservation en eau
606  ok_lic_melt_omp = .false.
607  call getin('ok_lic_melt', ok_lic_melt_omp)
608
609!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
610! PARAMETER FOR THE PLANETARY BOUNDARY LAYER
611!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
612
613!Config Key  = iflag_pbl
614!Config Desc =
615!Config Def  = 1
616!Config Help =
617!
618  iflag_pbl_omp = 1
619  call getin('iflag_pbl',iflag_pbl_omp)
620!
621!Config Key  = iflag_thermals
622!Config Desc =
623!Config Def  = 0
624!Config Help =
625!
626  iflag_thermals_omp = 0
627  call getin('iflag_thermals',iflag_thermals_omp)
628!
629!
630!Config Key  = nsplit_thermals
631!Config Desc =
632!Config Def  = 1
633!Config Help =
634!
635  nsplit_thermals_omp = 1
636  call getin('nsplit_thermals',nsplit_thermals_omp)
637
638
639
640!
641!Config Key  = lev_histhf
642!Config Desc =
643!Config Def  = 1
644!Config Help =
645!
646  lev_histhf_omp = 1
647  call getin('lev_histhf',lev_histhf_omp)
648
649!
650!Config Key  = lev_histday
651!Config Desc =
652!Config Def  = 1
653!Config Help =
654!
655  lev_histday_omp = 1
656  call getin('lev_histday',lev_histday_omp)
657
658!
659!Config Key  = lev_histmth
660!Config Desc =
661!Config Def  = 2
662!Config Help =
663!
664  lev_histmth_omp = 2
665  call getin('lev_histmth',lev_histmth_omp)
666
667  !
668!Config Key  = type_run
669!Config Desc =
670!Config Def  = 'AMIP'/'CFMIP'  ou 'CLIM'/'ENSP'
671!Config Help =
672!
673  type_run_omp = 'AMIP'
674  call getin('type_run',type_run_omp)
675
676!
677!Config Key  = ok_isccp
678!Config Desc =
679!Config Def  = .true.
680!Config Help =
681!
682! ok_isccp = .true.
683  ok_isccp_omp = .false.
684  call getin('ok_isccp',ok_isccp_omp)
685
686!
687! coordonnees (lonmin_ins, lonmax_ins, latmin_ins, latmax_ins) pour la zone
688! avec sorties instantannees tous les pas de temps de la physique => "histbilKP_ins.nc"
689!
690!Config Key  = lonmin_ins
691!Config Desc = 100. 
692!Config Def  = longitude minimale sorties "bilKP_ins"
693!Config Help =
694!
695   lonmin_ins_omp = 100.
696   call getin('lonmin_ins',lonmin_ins_omp)
697!
698!Config Key  = lonmax_ins
699!Config Desc = 130.
700!Config Def  = longitude maximale sorties "bilKP_ins"
701!Config Help =
702!
703   lonmax_ins = 130.
704   call getin('lonmax_ins',lonmax_ins_omp)
705!
706!Config Key  = latmin_ins
707!Config Desc = -20. 
708!Config Def  = latitude minimale sorties "bilKP_ins"
709!Config Help =
710!
711   latmin_ins_omp = -20.
712   call getin('latmin_ins',latmin_ins_omp)
713!
714!Config Key  = latmax_ins
715!Config Desc = 20.
716!Config Def  = latitude maximale sorties "bilKP_ins"
717!Config Help =
718!
719   latmax_ins_omp = 20.
720   call getin('latmax_ins',latmax_ins_omp)
721!
722!Config Key  = ecrit_hf
723!Config Desc =
724!Config Def  = 1./8. !toutes les 3h
725!Config Help =
726!
727  ecrit_hf_omp = 1./8.
728  call getin('ecrit_hf',ecrit_hf_omp)
729!
730!Config Key  = ecrit_day
731!Config Desc =
732!Config Def  = 1.0 !tous les jours
733!Config Help = nombre de jours pour ecriture fichier histday.nc
734!
735  ecrit_day_omp = 1.0
736  call getin('ecrit_day',ecrit_day_omp)
737!
738!Config Key  = ecrit_mth
739!Config Desc =
740!Config Def  = 30. !tous les 30jours (1 fois par mois)
741!Config Help =
742!
743  ecrit_mth_omp = 30.
744  call getin('ecrit_mth',ecrit_mth_omp)
745!
746!Config Key  = ecrit_tra
747!Config Desc =
748!Config Def  = 30. !tous les 30jours (1 fois par mois)
749!Config Help =
750!
751  ecrit_tra_omp = 30.
752  call getin('ecrit_tra',ecrit_tra_omp)
753!
754!Config Key  = ecrit_reg
755!Config Desc =
756!Config Def  = 0.25  !4 fois par jour
757!Config Help =
758!
759  ecrit_reg_omp = 0.25   !4 fois par jour
760  call getin('ecrit_reg',ecrit_reg_omp)
761!
762!
763!
764!Config Key  = ok_slab_sicOBS
765!Config Desc =
766!Config Def  = .true.
767!Config Help = Pour faire tourner le slab avec fraction
768!              de glace de mer Observee
769!
770  ok_slab_sicOBS_omp = .true.
771  call getin('ok_slab_sicOBS', ok_slab_sicOBS_omp)
772
773
774!$OMP END MASTER
775!$OMP BARRIER
776
777    R_ecc = R_ecc_omp
778    R_peri = R_peri_omp
779    R_incl = R_incl_omp
780    solaire = solaire_omp
781    co2_ppm = co2_ppm_omp
782    RCO2 = RCO2_omp
783    CH4_ppb = CH4_ppb_omp
784    RCH4 = RCH4_omp
785    N2O_ppb = N2O_ppb_omp
786    RN2O = RN2O_omp
787    CFC11_ppt = CFC11_ppt_omp
788    RCFC11 = RCFC11_omp
789    CFC12_ppt = CFC12_ppt_omp
790    RCFC12 = RCFC12_omp
791    epmax = epmax_omp
792    ok_adj_ema = ok_adj_ema_omp
793    iflag_clw = iflag_clw_omp
794    cld_lc_lsc = cld_lc_lsc_omp
795    cld_lc_con = cld_lc_con_omp
796    cld_tau_lsc = cld_tau_lsc_omp
797    cld_tau_con = cld_tau_con_omp
798    ffallv_lsc = ffallv_lsc_omp
799    ffallv_con = ffallv_con_omp
800    coef_eva = coef_eva_omp
801    reevap_ice = reevap_ice_omp
802    iflag_pdf = iflag_pdf_omp
803    rad_froid = rad_froid_omp
804    rad_chau1 = rad_chau1_omp
805    rad_chau2 = rad_chau2_omp
806    top_height = top_height_omp
807    overlap = overlap_omp
808    cdmmax = cdmmax_omp
809    cdhmax = cdhmax_omp
810    ksta = ksta_omp
811    ksta_ter = ksta_ter_omp
812    ok_kzmin = ok_kzmin_omp
813    fmagic = fmagic_omp
814    iflag_pbl = iflag_pbl_omp
815    lev_histhf = lev_histhf_omp
816    lev_histday = lev_histday_omp
817    lev_histmth = lev_histmth_omp
818
819    ocean = ocean_omp
820    ok_veget = ok_veget_omp
821    ok_newmicro = ok_newmicro_omp
822    ok_journe = ok_journe_omp
823    ok_hf = ok_hf_omp
824    ok_mensuel = ok_mensuel_omp
825    ok_instan = ok_instan_omp
826    freq_ISCCP = freq_ISCCP_omp
827    ecrit_ISCCP = ecrit_ISCCP_omp
828    ok_ade = ok_ade_omp
829    ok_aie = ok_aie_omp
830    bl95_b0 = bl95_b0_omp
831    bl95_b1 = bl95_b1_omp
832    fact_cldcon = fact_cldcon_omp
833    facttemps = facttemps_omp
834    ratqsbas = ratqsbas_omp
835    ratqshaut = ratqshaut_omp
836    iflag_cldcon = iflag_cldcon_omp
837    ip_ebil_phy = ip_ebil_phy_omp
838    iflag_thermals = iflag_thermals_omp
839    nsplit_thermals = nsplit_thermals_omp
840    type_run = type_run_omp
841    ok_isccp = ok_isccp_omp
842    lonmin_ins = lonmin_ins_omp
843    lonmax_ins = lonmax_ins_omp
844    latmin_ins = latmin_ins_omp
845    latmax_ins = latmax_ins_omp
846    ecrit_hf   = ecrit_hf_omp
847    ecrit_day = ecrit_day_omp
848    ecrit_mth = ecrit_mth_omp
849    ecrit_tra = ecrit_tra_omp
850    ecrit_reg = ecrit_reg_omp
851    ok_slab_sicOBS = ok_slab_sicOBS_omp
852    cvl_corr = cvl_corr_omp
853    ok_lic_melt = ok_lic_melt_omp
854
855!$OMP MASTER
856
857  write(numout,*)' ##############################################'
858  write(numout,*)' Configuration des parametres de la physique: '
859  write(numout,*)' Config ocean = ', ocean
860  write(numout,*)' Config veget = ', ok_veget
861  write(numout,*)' Sortie journaliere = ', ok_journe
862  write(numout,*)' Sortie haute frequence = ', ok_hf
863  write(numout,*)' Sortie mensuelle = ', ok_mensuel
864  write(numout,*)' Sortie instantanee = ', ok_instan
865  write(numout,*)' Frequence appel simulateur ISCCP, freq_ISCCP =', freq_ISCCP
866  write(numout,*)' Frequence appel simulateur ISCCP, ecrit_ISCCP =', ecrit_ISCCP
867  write(numout,*)' Sortie bilan d''energie, ip_ebil_phy =', ip_ebil_phy
868  write(numout,*)' Excentricite = ',R_ecc
869  write(numout,*)' Equinoxe = ',R_peri
870  write(numout,*)' Inclinaison =',R_incl
871  write(numout,*)' Constante solaire =',solaire
872  write(numout,*)' co2_ppm =',co2_ppm
873  write(numout,*)' RCO2 = ',RCO2
874  write(numout,*)' CH4_ppb =',CH4_ppb,' RCH4 = ',RCH4
875  write(numout,*)' N2O_ppb =',N2O_ppb,' RN2O =  ',RN2O
876  write(numout,*)' CFC11_ppt=',CFC11_ppt,' RCFC11 =  ',RCFC11
877  write(numout,*)' CFC12_ppt=',CFC12_ppt,' RCFC12 =  ',RCFC12
878  write(numout,*)' cvl_corr=', cvl_corr
879  write(numout,*)'ok_lic_melt=', ok_lic_melt
880  write(numout,*)' epmax = ', epmax
881  write(numout,*)' ok_adj_ema = ', ok_adj_ema
882  write(numout,*)' iflag_clw = ', iflag_clw
883  write(numout,*)' cld_lc_lsc = ', cld_lc_lsc
884  write(numout,*)' cld_lc_con = ', cld_lc_con
885  write(numout,*)' cld_tau_lsc = ', cld_tau_lsc
886  write(numout,*)' cld_tau_con = ', cld_tau_con
887  write(numout,*)' ffallv_lsc = ', ffallv_lsc
888  write(numout,*)' ffallv_con = ', ffallv_con
889  write(numout,*)' coef_eva = ', coef_eva
890  write(numout,*)' reevap_ice = ', reevap_ice
891  write(numout,*)' iflag_pdf = ', iflag_pdf
892  write(numout,*)' iflag_cldcon = ', iflag_cldcon
893  write(numout,*)' fact_cldcon = ', fact_cldcon
894  write(numout,*)' facttemps = ', facttemps
895  write(numout,*)' ok_newmicro = ',ok_newmicro
896  write(numout,*)' ratqsbas = ',ratqsbas
897  write(numout,*)' ratqshaut = ',ratqshaut
898  write(numout,*)' top_height = ',top_height
899  write(numout,*)' overlap = ',overlap
900  write(numout,*)' cdmmax = ',cdmmax
901  write(numout,*)' cdhmax = ',cdhmax
902  write(numout,*)' ksta = ',ksta
903  write(numout,*)' ksta_ter = ',ksta_ter
904  write(numout,*)' ok_kzmin = ',ok_kzmin
905  write(numout,*)' fmagic = ',fmagic
906  write(numout,*)' ok_ade = ',ok_ade
907  write(numout,*)' ok_aie = ',ok_aie
908  write(numout,*)' bl95_b0 = ',bl95_b0
909  write(numout,*)' bl95_b1 = ',bl95_b1
910  write(numout,*)' lev_histhf = ',lev_histhf
911  write(numout,*)' lev_histday = ',lev_histday
912  write(numout,*)' lev_histmth = ',lev_histmth
913  write(numout,*)' iflag_pbl = ', iflag_pbl
914  write(numout,*)' iflag_thermals = ', iflag_thermals
915  write(numout,*)' type_run = ',type_run
916  write(numout,*)' ok_isccp = ',ok_isccp
917  write(numout,*)' lonmin lonmax latmin latmax bilKP_ins =',&
918 & lonmin_ins, lonmax_ins, latmin_ins, latmax_ins
919  write(numout,*)' ecrit_ hf, day, mth, reg, tra, ISCCP',&
920 & ecrit_hf, ecrit_day, ecrit_mth, ecrit_reg, ecrit_tra, ecrit_ISCCP
921
922!$OMP END MASTER
923
924  return
925 
926  end subroutine conf_phys
927
928!
929!#################################################################
930!
931
932   subroutine conf_interface(tau_calv)
933
934   use IOIPSL
935   implicit none
936
937! Configuration de l'interace atm/surf
938!
939! tau_calv:    temps de relaxation pour la fonte des glaciers
940
941  REAL          :: tau_calv
942  REAL,SAVE     :: tau_calv_omp
943
944! Local
945  integer              :: numout = 6
946!
947!Config Key  = tau_calv
948!Config Desc = temps de relaxation pour fonte des glaciers en jours
949!Config Def  = 1 an
950!Config Help =
951!
952  tau_calv_omp = 360.*10.
953!$OMP MASTER
954  call getin('tau_calv',tau_calv_omp)
955!$OMP END MASTER
956!$OMP BARRIER
957
958  tau_calv=tau_calv_omp
959 
960!$OMP MASTER
961  write(numout,*)' ##############################################'
962  WRITE(numout,*)' Configuration de l''interface atm/surfaces  : '
963  WRITE(numout,*)' tau_calv = ',tau_calv
964!$OMP END MASTER
965
966  return
967
968  end subroutine conf_interface
Note: See TracBrowser for help on using the repository browser.