Changeset 690
- Timestamp:
- Apr 4, 2006, 5:04:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3d/dynredem.F
r541 r690 144 144 c 145 145 ierr = NF_REDEF (nid) 146 cIM 220306 BEG 147 #ifdef NC_DOUBLE 148 ierr = NF_DEF_VAR (nid,"controle",NF_DOUBLE,1,idim_index,nvarid) 149 #else 146 150 ierr = NF_DEF_VAR (nid,"controle",NF_FLOAT,1,idim_index,nvarid) 151 #endif 152 cIM 220306 END 147 153 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 148 154 . "Parametres de controle") … … 155 161 c 156 162 ierr = NF_REDEF (nid) 163 cIM 220306 BEG 164 #ifdef NC_DOUBLE 165 ierr = NF_DEF_VAR (nid,"rlonu",NF_DOUBLE,1,idim_rlonu,nvarid) 166 #else 157 167 ierr = NF_DEF_VAR (nid,"rlonu",NF_FLOAT,1,idim_rlonu,nvarid) 168 #endif 169 cIM 220306 END 158 170 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, 159 171 . "Longitudes des points U") … … 166 178 c 167 179 ierr = NF_REDEF (nid) 180 cIM 220306 BEG 181 #ifdef NC_DOUBLE 182 ierr = NF_DEF_VAR (nid,"rlatu",NF_DOUBLE,1,idim_rlatu,nvarid) 183 #else 168 184 ierr = NF_DEF_VAR (nid,"rlatu",NF_FLOAT,1,idim_rlatu,nvarid) 185 #endif 186 cIM 220306 END 169 187 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 170 188 . "Latitudes des points U") … … 177 195 c 178 196 ierr = NF_REDEF (nid) 197 cIM 220306 BEG 198 #ifdef NC_DOUBLE 199 ierr = NF_DEF_VAR (nid,"rlonv",NF_DOUBLE,1,idim_rlonv,nvarid) 200 #else 179 201 ierr = NF_DEF_VAR (nid,"rlonv",NF_FLOAT,1,idim_rlonv,nvarid) 202 #endif 203 cIM 220306 END 180 204 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, 181 205 . "Longitudes des points V") … … 188 212 c 189 213 ierr = NF_REDEF (nid) 214 cIM 220306 BEG 215 #ifdef NC_DOUBLE 216 ierr = NF_DEF_VAR (nid,"rlatv",NF_DOUBLE,1,idim_rlatv,nvarid) 217 #else 190 218 ierr = NF_DEF_VAR (nid,"rlatv",NF_FLOAT,1,idim_rlatv,nvarid) 219 #endif 220 cIM 220306 END 191 221 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 192 222 . "Latitudes des points V") … … 199 229 c 200 230 ierr = NF_REDEF (nid) 231 cIM 220306 BEG 232 #ifdef NC_DOUBLE 233 ierr = NF_DEF_VAR (nid,"nivsigs",NF_DOUBLE,1,idim_s,nvarid) 234 #else 201 235 ierr = NF_DEF_VAR (nid,"nivsigs",NF_FLOAT,1,idim_s,nvarid) 236 #endif 237 cIM 220306 END 202 238 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 28, 203 239 . "Numero naturel des couches s") … … 210 246 c 211 247 ierr = NF_REDEF (nid) 248 cIM 220306 BEG 249 #ifdef NC_DOUBLE 250 ierr = NF_DEF_VAR (nid,"nivsig",NF_DOUBLE,1,idim_sig,nvarid) 251 #else 212 252 ierr = NF_DEF_VAR (nid,"nivsig",NF_FLOAT,1,idim_sig,nvarid) 253 #endif 254 cIM 220306 END 213 255 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 32, 214 256 . "Numero naturel des couches sigma") … … 221 263 c 222 264 ierr = NF_REDEF (nid) 265 cIM 220306 BEG 266 #ifdef NC_DOUBLE 267 ierr = NF_DEF_VAR (nid,"ap",NF_DOUBLE,1,idim_sig,nvarid) 268 #else 223 269 ierr = NF_DEF_VAR (nid,"ap",NF_FLOAT,1,idim_sig,nvarid) 270 #endif 271 cIM 220306 END 224 272 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 26, 225 273 . "Coefficient A pour hybride") … … 232 280 c 233 281 ierr = NF_REDEF (nid) 282 cIM 220306 BEG 283 #ifdef NC_DOUBLE 284 ierr = NF_DEF_VAR (nid,"bp",NF_DOUBLE,1,idim_sig,nvarid) 285 #else 234 286 ierr = NF_DEF_VAR (nid,"bp",NF_FLOAT,1,idim_sig,nvarid) 287 #endif 288 cIM 220306 END 235 289 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 26, 236 290 . "Coefficient B pour hybride") … … 243 297 c 244 298 ierr = NF_REDEF (nid) 299 cIM 220306 BEG 300 #ifdef NC_DOUBLE 301 ierr = NF_DEF_VAR (nid,"presnivs",NF_DOUBLE,1,idim_s,nvarid) 302 #else 245 303 ierr = NF_DEF_VAR (nid,"presnivs",NF_FLOAT,1,idim_s,nvarid) 304 #endif 305 cIM 220306 END 246 306 ierr = NF_ENDDEF(nid) 247 307 #ifdef NC_DOUBLE … … 256 316 dims2(1) = idim_rlonu 257 317 dims2(2) = idim_rlatu 318 cIM 220306 BEG 319 #ifdef NC_DOUBLE 320 ierr = NF_DEF_VAR (nid,"cu",NF_DOUBLE,2,dims2,nvarid) 321 #else 258 322 ierr = NF_DEF_VAR (nid,"cu",NF_FLOAT,2,dims2,nvarid) 323 #endif 324 cIM 220306 END 259 325 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 29, 260 326 . "Coefficient de passage pour U") … … 269 335 dims2(1) = idim_rlonv 270 336 dims2(2) = idim_rlatv 337 cIM 220306 BEG 338 #ifdef NC_DOUBLE 339 ierr = NF_DEF_VAR (nid,"cv",NF_DOUBLE,2,dims2,nvarid) 340 #else 271 341 ierr = NF_DEF_VAR (nid,"cv",NF_FLOAT,2,dims2,nvarid) 342 #endif 343 cIM 220306 END 272 344 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 29, 273 345 . "Coefficient de passage pour V") … … 284 356 dims2(1) = idim_rlonv 285 357 dims2(2) = idim_rlatu 358 cIM 220306 BEG 359 #ifdef NC_DOUBLE 360 ierr = NF_DEF_VAR (nid,"aire",NF_DOUBLE,2,dims2,nvarid) 361 #else 286 362 ierr = NF_DEF_VAR (nid,"aire",NF_FLOAT,2,dims2,nvarid) 363 #endif 364 cIM 220306 END 287 365 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 288 366 . "Aires de chaque maille") … … 299 377 dims2(1) = idim_rlonv 300 378 dims2(2) = idim_rlatu 379 cIM 220306 BEG 380 #ifdef NC_DOUBLE 381 ierr = NF_DEF_VAR (nid,"phisinit",NF_DOUBLE,2,dims2,nvarid) 382 #else 301 383 ierr = NF_DEF_VAR (nid,"phisinit",NF_FLOAT,2,dims2,nvarid) 384 #endif 385 cIM 220306 END 302 386 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 19, 303 387 . "Geopotentiel au sol") … … 313 397 ierr = NF_REDEF (nid) ! entrer dans le mode de definition 314 398 c 399 cIM 220306 BEG 400 #ifdef NC_DOUBLE 401 ierr = NF_DEF_VAR (nid,"temps",NF_DOUBLE,1,idim_tim,nvarid) 402 #else 315 403 ierr = NF_DEF_VAR (nid,"temps",NF_FLOAT,1,idim_tim,nvarid) 404 #endif 405 cIM 220306 END 316 406 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 19, 317 407 . "Temps de simulation") … … 326 416 dims4(3) = idim_s 327 417 dims4(4) = idim_tim 418 cIM 220306 BEG 419 #ifdef NC_DOUBLE 420 ierr = NF_DEF_VAR (nid,"ucov",NF_DOUBLE,4,dims4,nvarid) 421 #else 328 422 ierr = NF_DEF_VAR (nid,"ucov",NF_FLOAT,4,dims4,nvarid) 423 #endif 424 cIM 220306 END 329 425 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 9, 330 426 . "Vitesse U") … … 334 430 dims4(3) = idim_s 335 431 dims4(4) = idim_tim 432 cIM 220306 BEG 433 #ifdef NC_DOUBLE 434 ierr = NF_DEF_VAR (nid,"vcov",NF_DOUBLE,4,dims4,nvarid) 435 #else 336 436 ierr = NF_DEF_VAR (nid,"vcov",NF_FLOAT,4,dims4,nvarid) 437 #endif 438 cIM 220306 END 337 439 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 9, 338 440 . "Vitesse V") … … 342 444 dims4(3) = idim_s 343 445 dims4(4) = idim_tim 446 cIM 220306 BEG 447 #ifdef NC_DOUBLE 448 ierr = NF_DEF_VAR (nid,"teta",NF_DOUBLE,4,dims4,nvarid) 449 #else 344 450 ierr = NF_DEF_VAR (nid,"teta",NF_FLOAT,4,dims4,nvarid) 451 #endif 452 cIM 220306 END 345 453 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 11, 346 454 . "Temperature") … … 352 460 IF(nq.GE.1) THEN 353 461 DO iq=1,nq 462 cIM 220306 BEG 463 #ifdef NC_DOUBLE 464 ierr = NF_DEF_VAR (nid,tname(iq),NF_DOUBLE,4,dims4,nvarid) 465 #else 354 466 ierr = NF_DEF_VAR (nid,tname(iq),NF_FLOAT,4,dims4,nvarid) 467 #endif 468 cIM 220306 END 355 469 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 12,ttext(iq)) 356 470 ENDDO … … 361 475 dims4(3) = idim_s 362 476 dims4(4) = idim_tim 477 cIM 220306 BEG 478 #ifdef NC_DOUBLE 479 ierr = NF_DEF_VAR (nid,"masse",NF_DOUBLE,4,dims4,nvarid) 480 #else 363 481 ierr = NF_DEF_VAR (nid,"masse",NF_FLOAT,4,dims4,nvarid) 482 #endif 483 cIM 220306 END 364 484 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 12, 365 485 . "C est quoi ?") … … 368 488 dims3(2) = idim_rlatu 369 489 dims3(3) = idim_tim 490 cIM 220306 BEG 491 #ifdef NC_DOUBLE 492 ierr = NF_DEF_VAR (nid,"ps",NF_DOUBLE,3,dims3,nvarid) 493 #else 370 494 ierr = NF_DEF_VAR (nid,"ps",NF_FLOAT,3,dims3,nvarid) 495 #endif 496 cIM 220306 END 371 497 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 15, 372 498 . "Pression au sol")
Note: See TracChangeset
for help on using the changeset viewer.