| 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 |
|---|
| 10 | |
|---|
| 11 | ccccccccccccc 2D fields, basics |
|---|
| 12 | |
|---|
| 13 | call histwrite_phy(nid_day,.false.,"phis",itau_w,pphis) |
|---|
| 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 | |
|---|
| 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 | |
|---|
| 28 | ENDIF !lev_histday.GE.1 |
|---|
| 29 | |
|---|
| 30 | c------------------------------------------------------- |
|---|
| 31 | IF(lev_histday.GE.2) THEN |
|---|
| 32 | |
|---|
| 33 | ccccccccccccc 3D fields, basics |
|---|
| 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 | |
|---|
| 58 | ENDIF !lev_histday.GE.2 |
|---|
| 59 | |
|---|
| 60 | c------------------------------------------------------- |
|---|
| 61 | IF(lev_histday.GE.3) THEN |
|---|
| 62 | |
|---|
| 63 | cccccccccccccccccc Radiative transfer |
|---|
| 64 | |
|---|
| 65 | c 2D |
|---|
| 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 | |
|---|
| 71 | c 3D |
|---|
| 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 | |
|---|
| 80 | ENDIF !lev_histday.GE.3 |
|---|
| 81 | |
|---|
| 82 | c------------------------------------------------------- |
|---|
| 83 | IF(lev_histday.GE.4) THEN |
|---|
| 84 | |
|---|
| 85 | c en K/s |
|---|
| 86 | call histwrite_phy(nid_day,.false.,"dtdyn",itau_w,d_t_dyn) |
|---|
| 87 | c en K/s |
|---|
| 88 | c call histwrite_phy(nid_day,.false.,"dtphy",itau_w,d_t) |
|---|
| 89 | c en K/s |
|---|
| 90 | call histwrite_phy(nid_day,.false.,"dtvdf",itau_w,d_t_vdf) |
|---|
| 91 | c en K/s |
|---|
| 92 | call histwrite_phy(nid_day,.false.,"dtajs",itau_w,d_t_ajs) |
|---|
| 93 | c en K/s |
|---|
| 94 | call histwrite_phy(nid_day,.false.,"dtswr",itau_w,dtsw) |
|---|
| 95 | c en K/s |
|---|
| 96 | call histwrite_phy(nid_day,.false.,"dtlwr",itau_w,dtlw) |
|---|
| 97 | c en K/s |
|---|
| 98 | c call histwrite_phy(nid_day,.false.,"dtec",itau_w,d_t_ec) |
|---|
| 99 | c en (m/s)/s |
|---|
| 100 | call histwrite_phy(nid_day,.false.,"duajs",itau_w,d_u_ajs) |
|---|
| 101 | c en (m/s)/s |
|---|
| 102 | call histwrite_phy(nid_day,.false.,"dugwo",itau_w,d_u_oro) |
|---|
| 103 | c en (m/s)/s |
|---|
| 104 | call histwrite_phy(nid_day,.false.,"dugwno",itau_w,d_u_hin) |
|---|
| 105 | c en (m/s)/s |
|---|
| 106 | c VENUS: regardee a l'envers!!!!!!!!!!!!!!! |
|---|
| 107 | c call histwrite_phy(nid_day,.false.,"dvvdf",itau_w,-1.*d_v_vdf) |
|---|
| 108 | |
|---|
| 109 | ENDIF !lev_histday.GE.4 |
|---|
| 110 | |
|---|
| 111 | c------------------------------------------------------- |
|---|
| 112 | IF(lev_histday.GE.5) THEN |
|---|
| 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 | |
|---|
| 119 | ENDIF !lev_histday.GE.5 |
|---|
| 120 | c------------------------------------------------------- |
|---|
| 121 | |
|---|
| 122 | if (ok_sync) then |
|---|
| 123 | call histsync(nid_day) |
|---|
| 124 | endif |
|---|
| 125 | |
|---|
| 126 | ENDIF |
|---|