[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/write_histday.h,v 1.2 2004/06/01 09:27:10 lmdzadmin Exp $ |
---|
| 3 | ! |
---|
| 4 | IF (ok_journe) THEN |
---|
| 5 | |
---|
| 6 | itau_w = itau_phy + itap |
---|
| 7 | |
---|
| 8 | c------------------------------------------------------- |
---|
| 9 | IF(lev_histday.GE.1) THEN |
---|
[892] | 10 | |
---|
[3] | 11 | ccccccccccccc 2D fields, basics |
---|
[892] | 12 | |
---|
| 13 | call histwrite_phy(nid_day,.false.,"phis",itau_w,pphis) |
---|
[1572] | 14 | c call histwrite_phy(nid_day,.false.,"aire",itau_w,cell_area) |
---|
| 15 | cell_area_out(:)=cell_area(:) |
---|
| 16 | if (is_north_pole_phy) cell_area_out(1)=cell_area(1)/nbp_lon |
---|
| 17 | if (is_south_pole_phy) cell_area_out(klon)=cell_area(klon)/nbp_lon |
---|
| 18 | call histwrite_phy(nid_day,.false.,"aire",itau_w,cell_area_out) |
---|
| 19 | |
---|
[892] | 20 | call histwrite_phy(nid_day,.false.,"tsol",itau_w,ftsol) |
---|
| 21 | call histwrite_phy(nid_day,.false.,"psol",itau_w,paprs(:,1)) |
---|
| 22 | c call histwrite_phy(nid_day,.false.,"ue",itau_w,ue) |
---|
| 23 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
| 24 | c call histwrite_phy(nid_day,.false.,"ve",itau_w,-1.*ve) |
---|
| 25 | c call histwrite_phy(nid_day,.false.,"cdragh",itau_w,cdragh) |
---|
| 26 | c call histwrite_phy(nid_day,.false.,"cdragm",itau_w,cdragm) |
---|
| 27 | |
---|
[3] | 28 | ENDIF !lev_histday.GE.1 |
---|
[892] | 29 | |
---|
[3] | 30 | c------------------------------------------------------- |
---|
| 31 | IF(lev_histday.GE.2) THEN |
---|
[892] | 32 | |
---|
[3] | 33 | ccccccccccccc 3D fields, basics |
---|
[892] | 34 | |
---|
| 35 | call histwrite_phy(nid_day,.false.,"temp",itau_w,t_seri) |
---|
| 36 | call histwrite_phy(nid_day,.false.,"pres",itau_w,pplay) |
---|
| 37 | call histwrite_phy(nid_day,.false.,"geop",itau_w,zphi) |
---|
| 38 | call histwrite_phy(nid_day,.false.,"vitu",itau_w,u_seri) |
---|
| 39 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
| 40 | call histwrite_phy(nid_day,.false.,"vitv",itau_w,-1.*v_seri) |
---|
| 41 | call histwrite_phy(nid_day,.false.,"vitw",itau_w,omega) |
---|
| 42 | c en (m/s)/s |
---|
| 43 | call histwrite_phy(nid_day,.false.,"dudyn",itau_w,d_u_dyn) |
---|
| 44 | c en (m/s)/s |
---|
| 45 | call histwrite_phy(nid_day,.false.,"duvdf",itau_w,d_u_vdf) |
---|
| 46 | c call histwrite_phy(nid_day,.false.,"mang",itau_w,mang) |
---|
| 47 | c call histwrite_phy(nid_day,.false.,"Kz",itau_w,ycoefh) |
---|
| 48 | |
---|
| 49 | c plusieurs traceurs |
---|
| 50 | IF (iflag_trac.eq.1) THEN |
---|
| 51 | DO iq=1,nqmax |
---|
| 52 | call histwrite_phy(nid_day,.false.,tname(iq),itau_w,qx(:,:,iq)) |
---|
| 53 | ENDDO |
---|
| 54 | ENDIF |
---|
| 55 | |
---|
| 56 | call histwrite_phy(nid_day,.false.,"tops",itau_w,topsw) |
---|
| 57 | |
---|
[3] | 58 | ENDIF !lev_histday.GE.2 |
---|
[902] | 59 | |
---|
[3] | 60 | c------------------------------------------------------- |
---|
| 61 | IF(lev_histday.GE.3) THEN |
---|
[902] | 62 | |
---|
[3] | 63 | cccccccccccccccccc Radiative transfer |
---|
[892] | 64 | |
---|
[3] | 65 | c 2D |
---|
[892] | 66 | |
---|
| 67 | call histwrite_phy(nid_day,.false.,"topl",itau_w,toplw) |
---|
| 68 | call histwrite_phy(nid_day,.false.,"sols",itau_w,solsw) |
---|
| 69 | call histwrite_phy(nid_day,.false.,"soll",itau_w,sollw) |
---|
| 70 | |
---|
[3] | 71 | c 3D |
---|
[892] | 72 | |
---|
| 73 | call histwrite_phy(nid_day,.false.,"SWnet",itau_w,swnet) |
---|
| 74 | call histwrite_phy(nid_day,.false.,"LWnet",itau_w,lwnet) |
---|
| 75 | c call histwrite_phy(nid_day,.false.,"fluxvdf",itau_w,fluxt) |
---|
| 76 | c call histwrite_phy(nid_day,.false.,"fluxdyn",itau_w,flux_dyn) |
---|
| 77 | c call histwrite_phy(nid_day,.false.,"fluxajs",itau_w,flux_ajs) |
---|
| 78 | c call histwrite_phy(nid_day,.false.,"fluxec",itau_w,flux_ec) |
---|
| 79 | |
---|
[3] | 80 | ENDIF !lev_histday.GE.3 |
---|
[902] | 81 | |
---|
[3] | 82 | c------------------------------------------------------- |
---|
| 83 | IF(lev_histday.GE.4) THEN |
---|
[892] | 84 | |
---|
[3] | 85 | c en K/s |
---|
[892] | 86 | call histwrite_phy(nid_day,.false.,"dtdyn",itau_w,d_t_dyn) |
---|
[3] | 87 | c en K/s |
---|
[892] | 88 | c call histwrite_phy(nid_day,.false.,"dtphy",itau_w,d_t) |
---|
[3] | 89 | c en K/s |
---|
[892] | 90 | call histwrite_phy(nid_day,.false.,"dtvdf",itau_w,d_t_vdf) |
---|
[3] | 91 | c en K/s |
---|
[892] | 92 | call histwrite_phy(nid_day,.false.,"dtajs",itau_w,d_t_ajs) |
---|
[3] | 93 | c en K/s |
---|
[1310] | 94 | call histwrite_phy(nid_day,.false.,"dtswr",itau_w,dtsw) |
---|
[1301] | 95 | c en K/s |
---|
[1310] | 96 | call histwrite_phy(nid_day,.false.,"dtlwr",itau_w,dtlw) |
---|
[1301] | 97 | c en K/s |
---|
[892] | 98 | c call histwrite_phy(nid_day,.false.,"dtec",itau_w,d_t_ec) |
---|
[3] | 99 | c en (m/s)/s |
---|
[892] | 100 | call histwrite_phy(nid_day,.false.,"duajs",itau_w,d_u_ajs) |
---|
[3] | 101 | c en (m/s)/s |
---|
[892] | 102 | call histwrite_phy(nid_day,.false.,"dugwo",itau_w,d_u_oro) |
---|
[3] | 103 | c en (m/s)/s |
---|
[892] | 104 | call histwrite_phy(nid_day,.false.,"dugwno",itau_w,d_u_hin) |
---|
[3] | 105 | c en (m/s)/s |
---|
| 106 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
---|
[892] | 107 | c call histwrite_phy(nid_day,.false.,"dvvdf",itau_w,-1.*d_v_vdf) |
---|
| 108 | |
---|
[3] | 109 | ENDIF !lev_histday.GE.4 |
---|
[902] | 110 | |
---|
[3] | 111 | c------------------------------------------------------- |
---|
| 112 | IF(lev_histday.GE.5) THEN |
---|
[892] | 113 | |
---|
| 114 | c call histwrite_phy(nid_day,.false.,"taux_",itau_w,fluxu) |
---|
| 115 | c call histwrite_phy(nid_day,.false.,"tauy_",itau_w,fluxv) |
---|
| 116 | c call histwrite_phy(nid_day,.false.,"cdrm",itau_w,cdragm) |
---|
| 117 | c call histwrite_phy(nid_day,.false.,"cdrh",itau_w,cdragh) |
---|
| 118 | |
---|
[3] | 119 | ENDIF !lev_histday.GE.5 |
---|
| 120 | c------------------------------------------------------- |
---|
[902] | 121 | |
---|
[3] | 122 | if (ok_sync) then |
---|
| 123 | call histsync(nid_day) |
---|
| 124 | endif |
---|
| 125 | |
---|
| 126 | ENDIF |
---|