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