Changeset 2740 for LMDZ5/trunk/libf/dyn3dmem/guide_loc_mod.F90
- Timestamp:
- Jan 3, 2017, 6:00:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3dmem/guide_loc_mod.F90
r2600 r2740 2130 2130 USE comconst_mod, ONLY: pi 2131 2131 USE comvert_mod, ONLY: presnivs 2132 use netcdf95, only: nf95_def_var, nf95_put_var 2133 use netcdf, only: nf90_float 2134 2132 2135 IMPLICIT NONE 2133 2136 … … 2149 2152 INTEGER :: nid, id_lonu, id_lonv, id_latu, id_latv, id_tim, id_lev 2150 2153 INTEGER :: vid_lonu,vid_lonv,vid_latu,vid_latv,vid_cu,vid_cv,vid_lev 2151 INTEGER :: vid_au,vid_av 2154 INTEGER :: vid_au,vid_av, varid_alpha_t, varid_alpha_q 2152 2155 INTEGER, DIMENSION (3) :: dim3 2153 2156 INTEGER, DIMENSION (4) :: dim4,count,start 2154 2157 INTEGER :: ierr, varid,l 2155 REAL zu(ip1jmp1),zv(ip1jm) 2158 REAL zu(ip1jmp1),zv(ip1jm), zt(iip1, jjp1), zq(iip1, jjp1) 2156 2159 REAL, ALLOCATABLE, SAVE, DIMENSION(:,:,:) :: field_glo 2157 2160 … … 2171 2174 print*,'guide_out apres gather ' 2172 2175 CALL Gather_field_u(alpha_u,zu,1) 2176 CALL Gather_field_u(alpha_t,zt,1) 2177 CALL Gather_field_u(alpha_q,zq,1) 2173 2178 CALL Gather_field_v(alpha_v,zv,1) 2174 2179 … … 2207 2212 ierr=NF_DEF_VAR(nid,"au",NF_FLOAT,2,(/id_lonu,id_latu/),vid_au) 2208 2213 ierr=NF_DEF_VAR(nid,"av",NF_FLOAT,2,(/id_lonv,id_latv/),vid_av) 2209 2214 call nf95_def_var(nid, "alpha_T", nf90_float, (/id_lonv, id_latu/), & 2215 varid_alpha_t) 2216 call nf95_def_var(nid, "alpha_q", nf90_float, (/id_lonv, id_latu/), & 2217 varid_alpha_q) 2218 2210 2219 ierr=NF_ENDDEF(nid) 2211 2220 … … 2232 2241 ierr = NF_PUT_VAR_REAL(nid,vid_av,alpha_v) 2233 2242 #endif 2243 call nf95_put_var(nid, varid_alpha_t, zt) 2244 call nf95_put_var(nid, varid_alpha_q, zq) 2234 2245 ! -------------------------------------------------------------------- 2235 2246 ! Cr�ation des variables sauvegard�es
Note: See TracChangeset
for help on using the changeset viewer.