Changeset 218 for LMDZ.3.3/trunk/libf/dyn3d/read_fstoke.F
- Timestamp:
- May 14, 2001, 5:01:36 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/trunk/libf/dyn3d/read_fstoke.F
r207 r218 28 28 . rlatu_dy(imo1,jmo1),rlatv_dy(imo1,jmo) 29 29 integer*4 ncrec,ncim,ncjm,nclm 30 realzrec,zim,zjm,zlm30 integer*4 zrec,zim,zjm,zlm 31 31 integer*4 xid,yid,zid,tid 32 32 real*4 zdtvr,ziadvtrac … … 126 126 c niveaux de pression 127 127 128 #ifdef NC_DOUBLE 129 status=NF_GET_VARA_DOUBLE(ncidf,varidpl,1,zlm,pl) 130 #else 128 131 status=NF_GET_VARA_REAL(ncidf,varidpl,1,zlm,pl) 132 #endif 129 133 130 134 c rlonu,rlonv,rlatu,rlatv … … 140 144 count(4)=0 141 145 142 status=NF_GET_VARA_REAL(ncidf,varidnlo,start,count,rlonu_dy) 143 status=NF_GET_VARA_REAL(ncidf,varidnla,start,count,rlatu_dy) 146 #ifdef NC_DOUBLE 147 status=NF_GET_VARA_DOUBLE(ncidf,varidnlo,start,count,rlonu_dy) 148 status=NF_GET_VARA_DOUBLE(ncidf,varidnla,start,count,rlatu_dy) 149 #else 150 status=NF_GET_VARA_REAL(ncidf,varidnlo,start,count,rlonu_dy) 151 status=NF_GET_VARA_REAL(ncidf,varidnla,start,count,rlatu_dy) 152 #endif 144 153 145 154 start(1)=1 … … 153 162 count(4)=0 154 163 155 status=NF_GET_VARA_REAL(ncidfv,varidnlov,start,count,rlonv_dy) 156 status=NF_GET_VARA_REAL(ncidfv,varidnlav,start,count,rlatv_dy) 164 #ifdef NC_DOUBLE 165 status=NF_GET_VARA_DOUBLE(ncidfv,varidnlov,start,count,rlonv_dy) 166 status=NF_GET_VARA_DOUBLE(ncidfv,varidnlav,start,count,rlatv_dy) 167 #else 168 status=NF_GET_VARA_REAL(ncidfv,varidnlov,start,count,rlonv_dy) 169 status=NF_GET_VARA_REAL(ncidfv,varidnlav,start,count,rlatv_dy) 170 #endif 157 171 158 172 c Lecture de phis et aire … … 169 183 170 184 c phis 185 #ifdef NC_DOUBLE 186 status=NF_GET_VARA_DOUBLE(ncidf,varidps,start,count,phis) 187 #else 171 188 status=NF_GET_VARA_REAL(ncidf,varidps,start,count,phis) 172 c print*,'WARNING!!! Correction bidon pour palier a un ' 173 c print*,'probleme dans la creation des fichiers nc' 174 c call correctbid(iim,jmo1*1,phis) 175 call dump2d(imo1,jmo1,phis,'PHISNC') 189 #endif 176 190 177 191 c aire 192 #ifdef NC_DOUBLE 193 status=NF_GET_VARA_DOUBLE(ncidf,varidai,start,count,airedy) 194 #else 178 195 status=NF_GET_VARA_REAL(ncidf,varidai,start,count,airedy) 179 c call correctbid(iim,jmo1*1,airedy) 180 c call dump2d(imo1,jmo1,airedy,'AIRENC') 181 182 c status= NF_CLOSE(ncidf) 196 #endif 183 197 184 198 else 185 199 186 200 print*,'ok1' 187 c stop'TEST lectfluxnc'188 201 189 202 c --------------------- … … 205 218 206 219 c masse 220 #ifdef NC_DOUBLE 221 status=NF_GET_VARA_DOUBLE(ncidf,varidm,start,count,masse) 222 #else 207 223 status=NF_GET_VARA_REAL(ncidf,varidm,start,count,masse) 224 #endif 208 225 c print*,'WARNING!!! Correction bidon pour palier a un ' 209 226 c print*,'probleme dans la creation des fichiers nc' … … 212 229 call dump2d(imo1,jmo1,masse,'MASSE COUCHE 1') 213 230 c pbaru 231 #ifdef NC_DOUBLE 232 status=NF_GET_VARA_DOUBLE(ncidf,varidpu,start,count,pbaru) 233 #else 214 234 status=NF_GET_VARA_REAL(ncidf,varidpu,start,count,pbaru) 235 #endif 215 236 c print*,'WARNING!!! Correction bidon pour palier a un ' 216 237 c print*,'probleme dans la creation des fichiers nc' … … 219 240 220 241 c w 242 #ifdef NC_DOUBLE 243 status=NF_GET_VARA_DOUBLE(ncidf,varidw,start,count,w) 244 #else 221 245 status=NF_GET_VARA_REAL(ncidf,varidw,start,count,w) 246 #endif 222 247 c print*,'WARNING!!! Correction bidon pour palier a un ' 223 248 c print*,'probleme dans la creation des fichiers nc' … … 226 251 227 252 c teta 253 #ifdef NC_DOUBLE 254 status=NF_GET_VARA_DOUBLE(ncidf,varidt,start,count,teta) 255 #else 228 256 status=NF_GET_VARA_REAL(ncidf,varidt,start,count,teta) 257 #endif 229 258 c print*,'WARNING!!! Correction bidon pour palier a un ' 230 259 c print*,'probleme dans la creation des fichiers nc' … … 233 262 234 263 c phi 264 #ifdef NC_DOUBLE 265 status=NF_GET_VARA_DOUBLE(ncidf,varidph,start,count,phi) 266 #else 235 267 status=NF_GET_VARA_REAL(ncidf,varidph,start,count,phi) 268 #endif 236 269 c print*,'WARNING!!! Correction bidon pour palier a un ' 237 270 c print*,'probleme dans la creation des fichiers nc' … … 243 276 c pbarv 244 277 print*,'Lecture de pbarv irec=',irec 278 #ifdef NC_DOUBLE 279 status=NF_GET_VARA_DOUBLE(ncidfv,varidpv,start,count,pbarv) 280 #else 245 281 status=NF_GET_VARA_REAL(ncidfv,varidpv,start,count,pbarv) 282 #endif 246 283 c call correctbid(iim,jjm*nlevnc,pbarv) 247 284 PRINT*,'*******LECTURE DE PBARV******'
Note: See TracChangeset
for help on using the changeset viewer.