[3] | 1 | ! |
---|
| 2 | ! $Header: /home/cvsroot/LMDZ4/libf/phylmd/write_histmth.h,v 1.2 2005/03/09 12:30:16 fairhead Exp $ |
---|
| 3 | ! |
---|
| 4 | IF (ok_mensuel) THEN |
---|
| 5 | |
---|
| 6 | itau_w = itau_phy + itap |
---|
| 7 | |
---|
| 8 | c------------------------------------------------------- |
---|
| 9 | IF(lev_histmth.GE.1) THEN |
---|
[892] | 10 | |
---|
[3] | 11 | ccccccccccccc 2D fields, basics |
---|
[892] | 12 | |
---|
| 13 | call histwrite_phy(nid_mth,.false.,"phis",itau_w,pphis) |
---|
[1572] | 14 | c call histwrite_phy(nid_mth,.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_mth,.false.,"aire",itau_w,cell_area_out) |
---|
| 19 | |
---|
[892] | 20 | call histwrite_phy(nid_mth,.false.,"tsol",itau_w,ftsol) |
---|
| 21 | call histwrite_phy(nid_mth,.false.,"psol",itau_w,paprs(:,1)) |
---|
| 22 | c call histwrite_phy(nid_mth,.false.,"ue",itau_w,ue) |
---|
[1452] | 23 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
[892] | 24 | c call histwrite_phy(nid_mth,.false.,"ve",itau_w,-1.*ve) |
---|
| 25 | c call histwrite_phy(nid_mth,.false.,"cdragh",itau_w,cdragh) |
---|
| 26 | c call histwrite_phy(nid_mth,.false.,"cdragm",itau_w,cdragm) |
---|
| 27 | |
---|
[3] | 28 | ENDIF !lev_histmth.GE.1 |
---|
[892] | 29 | |
---|
[3] | 30 | c------------------------------------------------------- |
---|
| 31 | IF(lev_histmth.GE.2) THEN |
---|
[892] | 32 | |
---|
[3] | 33 | ccccccccccccc 3D fields, basics |
---|
[892] | 34 | |
---|
| 35 | call histwrite_phy(nid_mth,.false.,"temp",itau_w,t_seri) |
---|
| 36 | call histwrite_phy(nid_mth,.false.,"pres",itau_w,pplay) |
---|
| 37 | call histwrite_phy(nid_mth,.false.,"geop",itau_w,zphi) |
---|
| 38 | call histwrite_phy(nid_mth,.false.,"vitu",itau_w,u_seri) |
---|
[1452] | 39 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
[892] | 40 | call histwrite_phy(nid_mth,.false.,"vitv",itau_w,-1.*v_seri) |
---|
| 41 | call histwrite_phy(nid_mth,.false.,"vitw",itau_w,omega) |
---|
[3] | 42 | c en (m/s)/s |
---|
[892] | 43 | call histwrite_phy(nid_mth,.false.,"dudyn",itau_w,d_u_dyn) |
---|
[3] | 44 | c en (m/s)/s |
---|
[892] | 45 | call histwrite_phy(nid_mth,.false.,"duvdf",itau_w,d_u_vdf) |
---|
| 46 | c call histwrite_phy(nid_mth,.false.,"mang",itau_w,mang) |
---|
| 47 | c call histwrite_phy(nid_mth,.false.,"Kz",itau_w,ycoefh) |
---|
[1452] | 48 | call histwrite_phy(nid_mth,.false.,"mmean",itau_w,mmean) |
---|
[1518] | 49 | c call histwrite_phy(nid_mth,.false.,"rho",itau_w,rho) |
---|
[892] | 50 | |
---|
[1452] | 51 | c plusieurs traceurs !!!outputs in [vmr] |
---|
[3] | 52 | IF (iflag_trac.eq.1) THEN |
---|
[2560] | 53 | DO iq=1,nqmax-nmicro |
---|
[1452] | 54 | call histwrite_phy(nid_mth,.false.,tname(iq),itau_w,qx(:,:,iq) |
---|
| 55 | & *mmean(:,:)/M_tr(iq)) |
---|
[3] | 56 | ENDDO |
---|
[2560] | 57 | DO iq=nqmax-nmicro+1,nqmax |
---|
| 58 | call histwrite_phy(nid_mth,.false.,tname(iq),itau_w,qx(:,:,iq)) |
---|
| 59 | ENDDO |
---|
[3] | 60 | ENDIF |
---|
[892] | 61 | |
---|
[1452] | 62 | IF (callthermos .and. ok_chem) THEN |
---|
| 63 | call histwrite_phy(nid_mth,.false.,"d_qmoldifCO2",itau_w, |
---|
| 64 | . d_q_moldif(:,:,i_co2)) |
---|
| 65 | call histwrite_phy(nid_mth,.false.,"d_qmoldifO3p",itau_w, |
---|
| 66 | . d_q_moldif(:,:,i_o)) |
---|
| 67 | call histwrite_phy(nid_mth,.false.,"d_qmoldifN2",itau_w, |
---|
| 68 | . d_q_moldif(:,:,i_n2)) |
---|
| 69 | ENDIF |
---|
| 70 | |
---|
[892] | 71 | call histwrite_phy(nid_mth,.false.,"tops",itau_w,topsw) |
---|
| 72 | |
---|
[3] | 73 | ENDIF !lev_histmth.GE.2 |
---|
[892] | 74 | |
---|
[3] | 75 | c------------------------------------------------------- |
---|
| 76 | IF(lev_histmth.GE.3) THEN |
---|
[892] | 77 | |
---|
[3] | 78 | cccccccccccccccccc Radiative transfer |
---|
[892] | 79 | |
---|
[3] | 80 | c 2D |
---|
[892] | 81 | |
---|
| 82 | call histwrite_phy(nid_mth,.false.,"topl",itau_w,toplw) |
---|
| 83 | call histwrite_phy(nid_mth,.false.,"sols",itau_w,solsw) |
---|
| 84 | call histwrite_phy(nid_mth,.false.,"soll",itau_w,sollw) |
---|
| 85 | |
---|
[3] | 86 | c 3D |
---|
[892] | 87 | |
---|
| 88 | call histwrite_phy(nid_mth,.false.,"SWnet",itau_w,swnet) |
---|
| 89 | call histwrite_phy(nid_mth,.false.,"LWnet",itau_w,lwnet) |
---|
| 90 | c call histwrite_phy(nid_mth,.false.,"fluxvdf",itau_w,fluxt) |
---|
| 91 | c call histwrite_phy(nid_mth,.false.,"fluxdyn",itau_w,flux_dyn) |
---|
| 92 | c call histwrite_phy(nid_mth,.false.,"fluxajs",itau_w,flux_ajs) |
---|
| 93 | c call histwrite_phy(nid_mth,.false.,"fluxec",itau_w,flux_ec) |
---|
| 94 | |
---|
[3] | 95 | ENDIF !lev_histmth.GE.3 |
---|
[892] | 96 | |
---|
[3] | 97 | c------------------------------------------------------- |
---|
| 98 | IF(lev_histmth.GE.4) THEN |
---|
[892] | 99 | |
---|
[3] | 100 | c en K/s |
---|
[892] | 101 | call histwrite_phy(nid_mth,.false.,"dtdyn",itau_w,d_t_dyn) |
---|
[3] | 102 | c en K/s |
---|
[892] | 103 | c call histwrite_phy(nid_mth,.false.,"dtphy",itau_w,d_t) |
---|
[3] | 104 | c en K/s |
---|
[892] | 105 | call histwrite_phy(nid_mth,.false.,"dtvdf",itau_w,d_t_vdf) |
---|
[3] | 106 | c en K/s |
---|
[892] | 107 | call histwrite_phy(nid_mth,.false.,"dtajs",itau_w,d_t_ajs) |
---|
[3] | 108 | c en K/s |
---|
[1310] | 109 | call histwrite_phy(nid_mth,.false.,"dtswr",itau_w,dtsw) |
---|
[2560] | 110 | c call histwrite_phy(nid_mth,.false.,"dtswrNLTE",itau_w,d_t_nirco2) |
---|
| 111 | c call histwrite_phy(nid_mth,.false.,"dtswrDCrisp",itau_w,heat) |
---|
[1301] | 112 | c en K/s |
---|
[1310] | 113 | call histwrite_phy(nid_mth,.false.,"dtlwr",itau_w,dtlw) |
---|
[1301] | 114 | c en K/s |
---|
[1667] | 115 | c call histwrite_phy(nid_mth,.false.,"dtlwrNLTE",itau_w,d_t_nlte) |
---|
| 116 | c call histwrite_phy(nid_mth,.false.,"dtlwrLTE",itau_w,-1.*cool) |
---|
| 117 | c call histwrite_phy(nid_mth,.false.,"dteuv",itau_w,d_t_euv) |
---|
| 118 | c call histwrite_phy(nid_mth,.false.,"dtcond",itau_w,d_t_conduc) |
---|
| 119 | c call histwrite_phy(nid_mth,.false.,"dumolvis",itau_w,d_u_molvis) |
---|
| 120 | c call histwrite_phy(nid_mth,.false.,"dvmolvis",itau_w,-1.*d_v_molvis) |
---|
[1452] | 121 | |
---|
[892] | 122 | c call histwrite_phy(nid_mth,.false.,"dtec",itau_w,d_t_ec) |
---|
[3] | 123 | c en (m/s)/s |
---|
[892] | 124 | call histwrite_phy(nid_mth,.false.,"duajs",itau_w,d_u_ajs) |
---|
[3] | 125 | c en (m/s)/s |
---|
[892] | 126 | call histwrite_phy(nid_mth,.false.,"dugwo",itau_w,d_u_oro) |
---|
[3] | 127 | c en (m/s)/s |
---|
[892] | 128 | call histwrite_phy(nid_mth,.false.,"dugwno",itau_w,d_u_hin) |
---|
[3] | 129 | c en (m/s)/s |
---|
[1452] | 130 | |
---|
| 131 | |
---|
| 132 | c VENUS: regardee a l envers!!!!!!!!!!!!!!! |
---|
[892] | 133 | c call histwrite_phy(nid_mth,.false.,"dvvdf",itau_w,-1.*d_v_vdf) |
---|
| 134 | |
---|
[3] | 135 | ENDIF !lev_histmth.GE.4 |
---|
[902] | 136 | |
---|
[3] | 137 | c------------------------------------------------------- |
---|
[902] | 138 | IF(lev_histmth.GE.5) THEN |
---|
[892] | 139 | |
---|
| 140 | c call histwrite_phy(nid_mth,.false.,"taux_",itau_w,fluxu) |
---|
| 141 | c call histwrite_phy(nid_mth,.false.,"tauy_",itau_w,fluxv) |
---|
| 142 | c call histwrite_phy(nid_mth,.false.,"cdrm",itau_w,cdragm) |
---|
| 143 | c call histwrite_phy(nid_mth,.false.,"cdrh",itau_w,cdragh) |
---|
| 144 | |
---|
[3] | 145 | ENDIF !lev_histmth.GE.5 |
---|
| 146 | c------------------------------------------------------- |
---|
[902] | 147 | |
---|
[3] | 148 | if (ok_sync) then |
---|
| 149 | call histsync(nid_mth) |
---|
| 150 | endif |
---|
[892] | 151 | |
---|
[3] | 152 | ENDIF |
---|
[1452] | 153 | |
---|