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