source: LMDZ4/branches/V3_test/libf/phylmd/conf_phys.F90 @ 4361

Last change on this file since 4361 was 735, checked in by Laurent Fairhead, 18 years ago

Modifications version parallele
YM/LF

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