LMDZ
write_histrac.h
Go to the documentation of this file.
1 !$Id $
2 !***************************************
3 ! ECRITURE DU FICHIER : histrac.nc
4 !***************************************
5  IF (ecrit_tra > 0.) THEN
6 
8 
9  CALL histwrite_phy(nid_tra,.FALSE.,"phis",itau_w,pphis)
10  CALL histwrite_phy(nid_tra,.FALSE.,"aire",itau_w,airephy)
11  CALL histwrite_phy(nid_tra,.FALSE.,"zmasse",itau_w,zmasse)
12 ! RomP >>>
13  CALL histwrite_phy(nid_tra,.FALSE.,"sourceBE",itau_w,sourceBE)
14 ! RomP <<<
15 
16 !TRACEURS
17 !----------------
18  DO it=1,nbtr
19 !! iiq=niadv(it+2) ! jyg
20  iiq=niadv(it+nqo) ! jyg
21 
22 ! CONCENTRATIONS
23  CALL histwrite_phy(nid_tra,.FALSE.,tname(iiq),itau_w,tr_seri(:,:,it))
24 
25 ! TD LESSIVAGE
26  IF (lessivage .AND. aerosol(it)) THEN
27  CALL histwrite_phy(nid_tra,.FALSE.,"fl"//tname(iiq),itau_w,flestottr(:,:,it))
28  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_ls_"//tname(iiq),itau_w,d_tr_ls(:,:,it))
29  IF(iflag_lscav .EQ. 3 .OR. iflag_lscav .EQ. 4) then
30  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_insc_"//tname(iiq),itau_w,d_tr_insc(:,:,it))
31  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_bcscav_"//tname(iiq),itau_w,d_tr_bcscav(:,:,it))
32  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_evls_"//tname(iiq),itau_w,d_tr_evapls(:,:,it))
33  CALL histwrite_phy(nid_tra,.FALSE.,"qpr_ls_"//tname(iiq),itau_w,qPrls(:,it))
34  ENDIF
35  ENDIF
36 
37 ! TD THERMIQUES
38  IF (iflag_thermals.gt.0) THEN
39  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_th_"//tname(iiq),itau_w,d_tr_th(:,:,it))
40  ENDIF
41 
42 ! TD CONVECTION
43  IF (iflag_con.GE.2) THEN
44  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_cv_"//tname(iiq),itau_w,d_tr_cv(:,:,it))
45  ENDIF
46 
47 ! TD COUCHE-LIMITE
48  IF (iflag_vdf_trac>=0) THEN
49  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_cl_"//tname(iiq),itau_w,d_tr_cl(:,:,it))
50  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_dry_"//tname(iiq),itau_w,d_tr_dry(:,it))
51  CALL histwrite_phy(nid_tra,.FALSE.,"flux_tr_dry_"//tname(iiq),itau_w,flux_tr_dry(:,it))
52  ENDIF
53 
54 ! TD radio-decroissance
55  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_dec_"//tname(iiq),itau_w,d_tr_dec(:,:,it))
56 
57 ! RomP >>>
58  IF (iflag_con.EQ.30) THEN
59  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_cvMA_"//tname(iiq),itau_w,dtrcvMA(:,:,it))
60  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_trsp_"//tname(iiq),itau_w,d_tr_trsp(:,:,it))
61  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_sscav_"//tname(iiq),itau_w,d_tr_sscav(:,:,it))
62  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_sat_"//tname(iiq),itau_w,d_tr_sat(:,:,it))
63  CALL histwrite_phy(nid_tra,.FALSE.,"d_tr_uscav_"//tname(iiq),itau_w,d_tr_uscav(:,:,it))
64  CALL histwrite_phy(nid_tra,.FALSE.,"tr_pr_"//tname(iiq),itau_w,qPr(:,:,it))
65  CALL histwrite_phy(nid_tra,.FALSE.,"tr_aa_"//tname(iiq),itau_w,qPa(:,:,it))
66  CALL histwrite_phy(nid_tra,.FALSE.,"tr_mel_"//tname(iiq),itau_w,qMel(:,:,it))
67  CALL histwrite_phy(nid_tra,.FALSE.,"tr_di_"//tname(iiq),itau_w,qDi(:,:,it))
68  CALL histwrite_phy(nid_tra,.FALSE.,"tr_trspdi_"//tname(iiq),itau_w,qTrdi(:,:,it))
69  CALL histwrite_phy(nid_tra,.FALSE.,"zmfd1a_"//tname(iiq),itau_w,zmfd1a(:,:,it))
70  CALL histwrite_phy(nid_tra,.FALSE.,"zmfphi2_"//tname(iiq),itau_w,zmfphi2(:,:,it))
71  CALL histwrite_phy(nid_tra,.FALSE.,"zmfdam_"//tname(iiq),itau_w,zmfdam(:,:,it))
72  ENDIF
73  CALL histwrite_phy(nid_tra,.FALSE.,"dtrdyn_"//tname(iiq),itau_w,d_tr_dyn(:,:,it))
74 ! RomP <<<
75  ENDDO
76 !---------------
77 !
78 !
79 ! VENT (niveau 1)
80  CALL histwrite_phy(nid_tra,.FALSE.,"pyu1",itau_w,yu1)
81  CALL histwrite_phy(nid_tra,.FALSE.,"pyv1",itau_w,yv1)
82 !
83 ! TEMPERATURE DU SOL
84  zx_tmp_fi2d(:)=ftsol(:,1)
85  CALL histwrite_phy(nid_tra,.FALSE.,"ftsol1",itau_w,zx_tmp_fi2d)
86  zx_tmp_fi2d(:)=ftsol(:,2)
87  CALL histwrite_phy(nid_tra,.FALSE.,"ftsol2",itau_w,zx_tmp_fi2d)
88  zx_tmp_fi2d(:)=ftsol(:,3)
89  CALL histwrite_phy(nid_tra,.FALSE.,"ftsol3",itau_w,zx_tmp_fi2d)
90  zx_tmp_fi2d(:)=ftsol(:,4)
91  CALL histwrite_phy(nid_tra,.FALSE.,"ftsol4",itau_w,zx_tmp_fi2d)
92 !
93 ! NATURE DU SOL
94  zx_tmp_fi2d(:)=pctsrf(:,1)
95  CALL histwrite_phy(nid_tra,.FALSE.,"psrf1",itau_w,zx_tmp_fi2d)
96  zx_tmp_fi2d(:)=pctsrf(:,2)
97  CALL histwrite_phy(nid_tra,.FALSE.,"psrf2",itau_w,zx_tmp_fi2d)
98  zx_tmp_fi2d(:)=pctsrf(:,3)
99  CALL histwrite_phy(nid_tra,.FALSE.,"psrf3",itau_w,zx_tmp_fi2d)
100  zx_tmp_fi2d(:)=pctsrf(:,4)
101  CALL histwrite_phy(nid_tra,.FALSE.,"psrf4",itau_w,zx_tmp_fi2d)
102 
103 ! DIVERS
104  CALL histwrite_phy(nid_tra,.FALSE.,"Mint",itau_w,Mint(:,:))
105  CALL histwrite_phy(nid_tra,.FALSE.,"frac_impa",itau_w,frac_impa(:,:))
106  CALL histwrite_phy(nid_tra,.FALSE.,"frac_nucl",itau_w,frac_nucl(:,:))
107 
108 
109  CALL histwrite_phy(nid_tra,.FALSE.,"pplay",itau_w,pplay)
110  CALL histwrite_phy(nid_tra,.FALSE.,"T",itau_w,t_seri)
111  CALL histwrite_phy(nid_tra,.FALSE.,"mfu",itau_w,pmfu)
112  CALL histwrite_phy(nid_tra,.FALSE.,"mfd",itau_w,pmfd)
113  CALL histwrite_phy(nid_tra,.FALSE.,"en_u",itau_w,pen_u)
114  CALL histwrite_phy(nid_tra,.FALSE.,"en_d",itau_w,pen_d)
115  CALL histwrite_phy(nid_tra,.FALSE.,"de_d",itau_w,pde_d)
116  CALL histwrite_phy(nid_tra,.FALSE.,"de_u",itau_w,pde_u)
117  CALL histwrite_phy(nid_tra,.FALSE.,"coefh",itau_w,coefh)
118 
119  IF (ok_sync) THEN
120 !$OMP MASTER
121  CALL histsync(nid_tra)
122 !$OMP END MASTER
123  ENDIF
124 
125  ENDIF !ecrit_tra>0.
126 
!$Id klon zx_tmp_fi2d(i)
c c $Id
Definition: ini_bilKP_ave.h:11
real, dimension(:,:,:), allocatable, save tr_seri
!$Id ***************************************!ECRITURE DU pphis CALL zmasse
Definition: write_histrac.h:11
!$Id ok_orolf LOGICAL ok_limitvrai LOGICAL ok_all_xml INTEGER iflag_con
Definition: clesphys.h:12
real, dimension(:,:), allocatable, save fl
logical, dimension(:), allocatable, save radio
!$Id ***************************************!ECRITURE DU FALSE
Definition: write_histrac.h:9
!$Id!c c c Common de passage de la geometrie de la dynamique a la physique real airephy(klon)
!$Header!CDK comgeom COMMON comgeom aire
Definition: comgeom.h:25
integer, save day_step
Definition: control_mod.F90:15
integer, save iphysiq
Definition: control_mod.F90:24
!$Id itau_phy
Definition: temps.h:15
!$Id Turb_fcg_gcssold get_uvd it
real, dimension(:,:), allocatable, save pmfd
!$Id klon IF(pctsrf(i, is_ter).GT.0.) THEN paire_ter(i)
integer, save nqo
Definition: infotrac.F90:8
real, dimension(:,:,:), allocatable, save coefh
!$Id ***************************************!ECRITURE DU FICHIER
Definition: write_histrac.h:9
!$Id itapm1 ENDIF!IM on interpole les champs sur les niveaux STD de pression!IM a chaque pas de temps de la physique c!positionnement de l argument logique a false c!pour ne pas recalculer deux fois la meme chose!c!a cet effet un appel a plevel_new a ete deplace c!a la fin de la serie d appels c!la boucle DO nlevSTD a ete internalisee c!dans d ou la creation de cette routine c c!CALL pplay
Definition: calcul_STDlev.h:26
!$Id ***************************************!ECRITURE DU itau_w
Definition: write_histrac.h:9
!$Id ***************************************!ECRITURE DU phis
Definition: write_histrac.h:9
character(len=20), dimension(:), allocatable, save tname
Definition: infotrac.F90:18
nsplit_thermals!nrlmd le iflag_clos_bl tau_trig_deep real::s_trig!fin nrlmd le fact_thermals_ed_dz iflag_wake iflag_thermals_closure common ctherm1 iflag_thermals
Definition: thermcell.h:12
integer, dimension(:), allocatable, save niadv
Definition: infotrac.F90:26
real, dimension(:,:), allocatable, save, private pctsrf
integer, save nbtr
Definition: infotrac.F90:12
real, dimension(:,:), allocatable, save t_seri
real, dimension(:,:), allocatable, save pmfu
integer(kind=jpim) nstep
Definition: yomct3.F90:18
!$Id ***************************************!ECRITURE DU pphis CALL histwrite_phy(nid_tra,.FALSE.,"aire", itau_w, airephy) CALL histwrite_phy(nid_tra
real, dimension(:,:), allocatable, save ftsol
!$Id start_time
Definition: temps.h:15