Changeset 352 for LMDZ.3.3/branches/rel-LF/libf/phylmd
- Timestamp:
- Mar 21, 2002, 4:09:30 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/phylmd/phyredem.F
r258 r352 99 99 tab_cntrl(14) = anneeref 100 100 tab_cntrl(13) = day_end 101 tab_cntrl(14) = anne_ini 102 c 103 ierr = NF_REDEF (nid) 101 tab_cntrl(14) = annee_ref 102 tab_cntrl(15) = itau_phy 103 c 104 ierr = NF_REDEF (nid) 105 #ifdef NC_DOUBLE 106 ierr = NF_DEF_VAR (nid, "controle", NF_DOUBLE, 1, idim1,nvarid) 107 #else 104 108 ierr = NF_DEF_VAR (nid, "controle", NF_FLOAT, 1, idim1,nvarid) 109 #endif 105 110 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 22, 106 111 . "Parametres de controle") … … 113 118 c 114 119 ierr = NF_REDEF (nid) 120 #ifdef NC_DOUBLE 121 ierr = NF_DEF_VAR (nid, "longitude", NF_DOUBLE, 1, idim2,nvarid) 122 #else 115 123 ierr = NF_DEF_VAR (nid, "longitude", NF_FLOAT, 1, idim2,nvarid) 124 #endif 116 125 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 32, 117 126 . "Longitudes de la grille physique") … … 124 133 c 125 134 ierr = NF_REDEF (nid) 135 #ifdef NC_DOUBLE 136 ierr = NF_DEF_VAR (nid, "latitude", NF_DOUBLE, 1, idim2,nvarid) 137 #else 126 138 ierr = NF_DEF_VAR (nid, "latitude", NF_FLOAT, 1, idim2,nvarid) 139 #endif 127 140 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 31, 128 141 . "Latitudes de la grille physique") … … 137 150 C 138 151 ierr = NF_REDEF (nid) 152 #ifdef NC_DOUBLE 153 ierr = NF_DEF_VAR (nid, "masque", NF_DOUBLE, 1, idim2,nvarid) 154 #else 139 155 ierr = NF_DEF_VAR (nid, "masque", NF_FLOAT, 1, idim2,nvarid) 156 #endif 140 157 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 16, 141 158 . "masque terre mer") … … 151 168 C 152 169 ierr = NF_REDEF (nid) 170 #ifdef NC_DOUBLE 171 ierr = NF_DEF_VAR (nid, "FTER", NF_DOUBLE, 1, idim2,nvarid) 172 #else 153 173 ierr = NF_DEF_VAR (nid, "FTER", NF_FLOAT, 1, idim2,nvarid) 174 #endif 154 175 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 21, 155 176 . "fraction de continent") … … 164 185 C 165 186 ierr = NF_REDEF (nid) 187 #ifdef NC_DOUBLE 188 ierr = NF_DEF_VAR (nid, "FLIC", NF_DOUBLE, 1, idim2,nvarid) 189 #else 166 190 ierr = NF_DEF_VAR (nid, "FLIC", NF_FLOAT, 1, idim2,nvarid) 191 #endif 167 192 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 24, 168 193 . "fraction glace de terre") … … 177 202 C 178 203 ierr = NF_REDEF (nid) 204 #ifdef NC_DOUBLE 205 ierr = NF_DEF_VAR (nid, "FOCE", NF_DOUBLE, 1, idim2,nvarid) 206 #else 179 207 ierr = NF_DEF_VAR (nid, "FOCE", NF_FLOAT, 1, idim2,nvarid) 208 #endif 180 209 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 14, 181 210 . "fraction ocean") … … 190 219 C 191 220 ierr = NF_REDEF (nid) 221 #ifdef NC_DOUBLE 222 ierr = NF_DEF_VAR (nid, "FSIC", NF_DOUBLE, 1, idim2,nvarid) 223 #else 192 224 ierr = NF_DEF_VAR (nid, "FSIC", NF_FLOAT, 1, idim2,nvarid) 225 #endif 193 226 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 18, 194 227 . "fraction glace mer") … … 206 239 WRITE(str2,'(i2.2)') nsrf 207 240 ierr = NF_REDEF (nid) 241 #ifdef NC_DOUBLE 242 ierr = NF_DEF_VAR (nid, "TS"//str2, NF_DOUBLE, 1, idim2,nvarid) 243 #else 208 244 ierr = NF_DEF_VAR (nid, "TS"//str2, NF_FLOAT, 1, idim2,nvarid) 245 #endif 209 246 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 28, 210 247 . "Temperature de surface No."//str2) … … 226 263 WRITE(str7,'(i2.2,"srf",i2.2)') isoil,nsrf 227 264 ierr = NF_REDEF (nid) 265 #ifdef NC_DOUBLE 266 ierr = NF_DEF_VAR (nid, "Tsoil"//str7,NF_DOUBLE,1,idim2,nvarid) 267 #else 228 268 ierr = NF_DEF_VAR (nid, "Tsoil"//str7,NF_FLOAT,1,idim2,nvarid) 269 #endif 229 270 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 29, 230 271 . "Temperature du sol No."//str7) … … 244 285 c 245 286 ierr = NF_REDEF (nid) 287 #ifdef NC_DOUBLE 288 ierr = NF_DEF_VAR (nid, "DELTAT", NF_DOUBLE, 1, idim2,nvarid) 289 #else 246 290 ierr = NF_DEF_VAR (nid, "DELTAT", NF_FLOAT, 1, idim2,nvarid) 291 #endif 247 292 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 33, 248 293 . "Ecart de la SST (pour slab-ocean)") … … 258 303 WRITE(str2,'(i2.2)') nsrf 259 304 ierr = NF_REDEF (nid) 305 #ifdef NC_DOUBLE 306 ierr = NF_DEF_VAR (nid,"QS"//str2,NF_DOUBLE,1,idim2,nvarid) 307 #else 260 308 ierr = NF_DEF_VAR (nid,"QS"//str2,NF_FLOAT,1,idim2,nvarid) 309 #endif 261 310 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 25, 262 311 . "Humidite de surface No."//str2) … … 277 326 WRITE(str2,'(i2.2)') nsrf 278 327 ierr = NF_REDEF (nid) 328 #ifdef NC_DOUBLE 329 ierr = NF_DEF_VAR (nid,"ALBE"//str2,NF_DOUBLE,1,idim2,nvarid) 330 #else 279 331 ierr = NF_DEF_VAR (nid,"ALBE"//str2,NF_FLOAT,1,idim2,nvarid) 332 #endif 280 333 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 23, 281 334 . "albedo de surface No."//str2) … … 296 349 WRITE(str2,'(i2.2)') nsrf 297 350 ierr = NF_REDEF (nid) 351 #ifdef NC_DOUBLE 352 ierr = NF_DEF_VAR (nid,"EVAP"//str2,NF_DOUBLE,1,idim2,nvarid) 353 #else 298 354 ierr = NF_DEF_VAR (nid,"EVAP"//str2,NF_FLOAT,1,idim2,nvarid) 355 #endif 299 356 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 28, 300 357 . "Evaporation de surface No."//str2) … … 316 373 WRITE(str2,'(i2.2)') nsrf 317 374 ierr = NF_REDEF (nid) 375 #ifdef NC_DOUBLE 376 ierr = NF_DEF_VAR (nid,"SNOW"//str2,NF_DOUBLE,1,idim2,nvarid) 377 #else 318 378 ierr = NF_DEF_VAR (nid,"SNOW"//str2,NF_FLOAT,1,idim2,nvarid) 379 #endif 319 380 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 22, 320 381 . "Neige de surface No."//str2) … … 333 394 c 334 395 ierr = NF_REDEF (nid) 396 #ifdef NC_DOUBLE 397 ierr = NF_DEF_VAR (nid, "RADS", NF_DOUBLE, 1, idim2,nvarid) 398 #else 335 399 ierr = NF_DEF_VAR (nid, "RADS", NF_FLOAT, 1, idim2,nvarid) 400 #endif 336 401 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 28, 337 402 . "Rayonnement net a la surface") … … 344 409 c 345 410 ierr = NF_REDEF (nid) 411 #ifdef NC_DOUBLE 412 ierr = NF_DEF_VAR (nid, "solsw", NF_DOUBLE, 1, idim2,nvarid) 413 #else 346 414 ierr = NF_DEF_VAR (nid, "solsw", NF_FLOAT, 1, idim2,nvarid) 415 #endif 347 416 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 32, 348 417 . "Rayonnement solaire a la surface") … … 355 424 c 356 425 ierr = NF_REDEF (nid) 426 #ifdef NC_DOUBLE 427 ierr = NF_DEF_VAR (nid, "sollw", NF_DOUBLE, 1, idim2,nvarid) 428 #else 357 429 ierr = NF_DEF_VAR (nid, "sollw", NF_FLOAT, 1, idim2,nvarid) 430 #endif 358 431 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 27, 359 432 . "Rayonnement IF a la surface") … … 366 439 c 367 440 ierr = NF_REDEF (nid) 441 #ifdef NC_DOUBLE 442 ierr = NF_DEF_VAR (nid, "fder", NF_DOUBLE, 1, idim2,nvarid) 443 #else 368 444 ierr = NF_DEF_VAR (nid, "fder", NF_FLOAT, 1, idim2,nvarid) 445 #endif 369 446 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 14, 370 447 . "Derive de flux") … … 377 454 c 378 455 ierr = NF_REDEF (nid) 456 #ifdef NC_DOUBLE 457 ierr = NF_DEF_VAR (nid, "rain_f", NF_DOUBLE, 1, idim2,nvarid) 458 #else 379 459 ierr = NF_DEF_VAR (nid, "rain_f", NF_FLOAT, 1, idim2,nvarid) 460 #endif 380 461 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 21, 381 462 . "precipitation liquide") … … 388 469 c 389 470 ierr = NF_REDEF (nid) 471 #ifdef NC_DOUBLE 472 ierr = NF_DEF_VAR (nid, "snow_f", NF_DOUBLE, 1, idim2,nvarid) 473 #else 390 474 ierr = NF_DEF_VAR (nid, "snow_f", NF_FLOAT, 1, idim2,nvarid) 475 #endif 391 476 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 20, 392 477 . "precipitation solide") … … 402 487 WRITE(str2,'(i2.2)') nsrf 403 488 ierr = NF_REDEF (nid) 489 #ifdef NC_DOUBLE 490 ierr = NF_DEF_VAR (nid,"RUG"//str2,NF_DOUBLE,1,idim2,nvarid) 491 #else 404 492 ierr = NF_DEF_VAR (nid,"RUG"//str2,NF_FLOAT,1,idim2,nvarid) 493 #endif 405 494 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 23, 406 495 . "rugosite de surface No."//str2) … … 421 510 WRITE(str2,'(i2.2)') nsrf 422 511 ierr = NF_REDEF (nid) 512 #ifdef NC_DOUBLE 513 ierr = NF_DEF_VAR (nid,"AGESNO"//str2,NF_DOUBLE,1,idim2 514 $ ,nvarid) 515 #else 423 516 ierr = NF_DEF_VAR (nid,"AGESNO"//str2,NF_FLOAT,1,idim2 424 517 $ ,nvarid) 518 #endif 425 519 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 15, 426 520 . "Age de la neige surface No."//str2) … … 438 532 c 439 533 ierr = NF_REDEF (nid) 534 #ifdef NC_DOUBLE 535 ierr = NF_DEF_VAR (nid, "ZMEA", NF_DOUBLE, 1, idim2,nvarid) 536 #else 440 537 ierr = NF_DEF_VAR (nid, "ZMEA", NF_FLOAT, 1, idim2,nvarid) 538 #endif 441 539 ierr = NF_ENDDEF(nid) 442 540 #ifdef NC_DOUBLE … … 447 545 c 448 546 ierr = NF_REDEF (nid) 547 #ifdef NC_DOUBLE 548 ierr = NF_DEF_VAR (nid, "ZSTD", NF_DOUBLE, 1, idim2,nvarid) 549 #else 449 550 ierr = NF_DEF_VAR (nid, "ZSTD", NF_FLOAT, 1, idim2,nvarid) 551 #endif 450 552 ierr = NF_ENDDEF(nid) 451 553 #ifdef NC_DOUBLE … … 454 556 ierr = NF_PUT_VAR_REAL (nid,nvarid,zstd) 455 557 #endif 456 c 457 ierr = NF_REDEF (nid) 558 ierr = NF_REDEF (nid) 559 #ifdef NC_DOUBLE 560 ierr = NF_DEF_VAR (nid, "ZSIG", NF_DOUBLE, 1, idim2,nvarid) 561 #else 458 562 ierr = NF_DEF_VAR (nid, "ZSIG", NF_FLOAT, 1, idim2,nvarid) 563 #endif 459 564 ierr = NF_ENDDEF(nid) 460 565 #ifdef NC_DOUBLE … … 463 568 ierr = NF_PUT_VAR_REAL (nid,nvarid,zsig) 464 569 #endif 465 c 466 ierr = NF_REDEF (nid) 570 ierr = NF_REDEF (nid) 571 #ifdef NC_DOUBLE 572 ierr = NF_DEF_VAR (nid, "ZGAM", NF_DOUBLE, 1, idim2,nvarid) 573 #else 467 574 ierr = NF_DEF_VAR (nid, "ZGAM", NF_FLOAT, 1, idim2,nvarid) 575 #endif 468 576 ierr = NF_ENDDEF(nid) 469 577 #ifdef NC_DOUBLE … … 472 580 ierr = NF_PUT_VAR_REAL (nid,nvarid,zgam) 473 581 #endif 474 c 475 ierr = NF_REDEF (nid) 582 ierr = NF_REDEF (nid) 583 #ifdef NC_DOUBLE 584 ierr = NF_DEF_VAR (nid, "ZTHE", NF_DOUBLE, 1, idim2,nvarid) 585 #else 476 586 ierr = NF_DEF_VAR (nid, "ZTHE", NF_FLOAT, 1, idim2,nvarid) 587 #endif 477 588 ierr = NF_ENDDEF(nid) 478 589 #ifdef NC_DOUBLE … … 481 592 ierr = NF_PUT_VAR_REAL (nid,nvarid,zthe) 482 593 #endif 483 c 484 ierr = NF_REDEF (nid) 594 ierr = NF_REDEF (nid) 595 #ifdef NC_DOUBLE 596 ierr = NF_DEF_VAR (nid, "ZPIC", NF_DOUBLE, 1, idim2,nvarid) 597 #else 485 598 ierr = NF_DEF_VAR (nid, "ZPIC", NF_FLOAT, 1, idim2,nvarid) 599 #endif 486 600 ierr = NF_ENDDEF(nid) 487 601 #ifdef NC_DOUBLE … … 490 604 ierr = NF_PUT_VAR_REAL (nid,nvarid,zpic) 491 605 #endif 492 c 493 ierr = NF_REDEF (nid) 606 ierr = NF_REDEF (nid) 607 #ifdef NC_DOUBLE 608 ierr = NF_DEF_VAR (nid, "ZVAL", NF_DOUBLE, 1, idim2,nvarid) 609 #else 494 610 ierr = NF_DEF_VAR (nid, "ZVAL", NF_FLOAT, 1, idim2,nvarid) 611 #endif 495 612 ierr = NF_ENDDEF(nid) 496 613 #ifdef NC_DOUBLE … … 499 616 ierr = NF_PUT_VAR_REAL (nid,nvarid,zval) 500 617 #endif 501 c 502 ierr = NF_REDEF (nid) 618 ierr = NF_REDEF (nid) 619 #ifdef NC_DOUBLE 620 ierr = NF_DEF_VAR (nid, "RUGSREL", NF_DOUBLE, 1, idim2,nvarid) 621 #else 503 622 ierr = NF_DEF_VAR (nid, "RUGSREL", NF_FLOAT, 1, idim2,nvarid) 623 #endif 504 624 ierr = NF_ENDDEF(nid) 505 625 #ifdef NC_DOUBLE … … 510 630 c 511 631 ierr = NF_REDEF (nid) 632 #ifdef NC_DOUBLE 633 ierr = NF_DEF_VAR (nid, "TANCIEN", NF_DOUBLE, 1, idim3,nvarid) 634 #else 512 635 ierr = NF_DEF_VAR (nid, "TANCIEN", NF_FLOAT, 1, idim3,nvarid) 636 #endif 513 637 ierr = NF_ENDDEF(nid) 514 638 #ifdef NC_DOUBLE … … 519 643 c 520 644 ierr = NF_REDEF (nid) 645 #ifdef NC_DOUBLE 646 ierr = NF_DEF_VAR (nid, "QANCIEN", NF_DOUBLE, 1, idim3,nvarid) 647 #else 521 648 ierr = NF_DEF_VAR (nid, "QANCIEN", NF_FLOAT, 1, idim3,nvarid) 649 #endif 522 650 ierr = NF_ENDDEF(nid) 523 651 #ifdef NC_DOUBLE … … 528 656 c 529 657 ierr = NF_REDEF (nid) 658 #ifdef NC_DOUBLE 659 ierr = NF_DEF_VAR (nid, "RUGMER", NF_DOUBLE, 1, idim2,nvarid) 660 #else 530 661 ierr = NF_DEF_VAR (nid, "RUGMER", NF_FLOAT, 1, idim2,nvarid) 662 #endif 531 663 ierr = NF_PUT_ATT_TEXT (nid,nvarid,"title", 28, 532 664 . "Longueur de rugosite sur mer")
Note: See TracChangeset
for help on using the changeset viewer.