Changeset 352 for LMDZ.3.3/branches
- Timestamp:
- Mar 21, 2002, 4:09:30 PM (23 years ago)
- Location:
- LMDZ.3.3/branches/rel-LF/libf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/dyn3d/etat0_netcdf.F
r332 r352 23 23 #include "dimphy.h" 24 24 #include "dimsoil.h" 25 #include "temps.h" 25 26 ! 26 27 LOGICAL interbar … … 38 39 REAL :: tsoil(klon,nsoilmx,nbsrf) 39 40 REAL :: radsol(klon),rain_fall(klon), snow_fall(klon) 40 REAL :: solsw(klon), sollw(klon) 41 REAL :: deltat(klon), frugs(klon,nbsrf), agesno(klon),rugmer(klon) 41 REAL :: solsw(klon), sollw(klon), fder(klon) 42 REAL :: deltat(klon), frugs(klon,nbsrf), agesno(klon,nbsrf) 43 REAL :: rugmer(klon) 42 44 REAL :: zmea(iip1*jjp1), zstd(iip1*jjp1) 43 45 REAL :: zsig(iip1*jjp1), zgam(iip1*jjp1), zthe(iip1*jjp1) … … 50 52 INTEGER :: iml_lic, jml_lic, llm_tmp, ttm_tmp, iret 51 53 INTEGER :: itaul(1), fid 52 REAL :: lev(1), date , dt54 REAL :: lev(1), date 53 55 REAL, ALLOCATABLE, DIMENSION(:,:) :: lon_lic, lat_lic 54 56 REAL, ALLOCATABLE, DIMENSION(:) :: dlon_lic, dlat_lic … … 193 195 pctsrf=0. 194 196 !cree le masque a partir du fichier relief 195 varname = 'zmasq' 196 zmasq(:) = 0. 197 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,zmasq,0.0, 198 , jjm ,rlonu,rlatv , interbar ) 197 call gr_dyn_fi(1, iip1, jjp1, klon, masque, zmasq) 199 198 WHERE (zmasq(1 : klon) .LT. EPSFRA) 200 199 zmasq(1 : klon) = 0. … … 323 322 . jjm, rlonu, rlatv , interbar ) 324 323 ! 325 varname = 'agsno'326 agesno(:) = 0.0327 CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,agesno,0.0,328 . jjm, rlonu, rlatv , interbar )324 ! varname = 'agesno' 325 ! agesno(:) = 0.0 326 ! CALL startget(varname,iip1,jjp1,rlonv,rlatu,klon,agesno,0.0, 327 ! . jjm, rlonu, rlatv , interbar ) 329 328 330 329 varname = 'zmea' … … 511 510 ENDIF 512 511 512 ! where (pctsrf(1:klon, is_ter) >= .5) 513 ! pctsrf(1:klon, is_ter) = 1. 514 ! pctsrf(1:klon, is_oce) = 0. 515 ! pctsrf(1:klon, is_sic) = 0. 516 ! pctsrf(1:klon, is_lic) = 0. 517 ! zmasq = 1. 518 ! endwhere 519 ! where (pctsrf(1:klon, is_lic) >= .5) 520 ! pctsrf(1:klon, is_ter) = 0. 521 ! pctsrf(1:klon, is_oce) = 0. 522 ! pctsrf(1:klon, is_sic) = 0. 523 ! pctsrf(1:klon, is_lic) = 1. 524 ! zmasq = 1. 525 ! endwhere 526 ! where (pctsrf(1:klon, is_oce) >= .5) 527 ! pctsrf(1:klon, is_ter) = 0. 528 ! pctsrf(1:klon, is_oce) = 1. 529 ! pctsrf(1:klon, is_sic) = 0. 530 ! pctsrf(1:klon, is_lic) = 0. 531 ! zmasq = 0. 532 ! endwhere 533 ! where (pctsrf(1:klon, is_sic) >= .5) 534 ! pctsrf(1:klon, is_ter) = 0. 535 ! pctsrf(1:klon, is_oce) = 0. 536 ! pctsrf(1:klon, is_sic) = 1. 537 ! pctsrf(1:klon, is_lic) = 0. 538 ! zmasq = 0. 539 ! endwhere 540 ! call gr_fi_dyn(1, klon, iip1, jjp1, zmasq, masque) 541 C 542 C verif que somme des sous surface = 1 543 C 544 ! ji=count( (abs( sum(pctsrf(1 : klon, 1 : nbsrf), dim = 2)) - 1.0 ) 545 ! $ .GT. EPSFRA) 546 ! IF (ji .NE. 0) THEN 547 ! WRITE(*,*) 'pb repartition sous maille pour ',ji,' points' 548 ! ENDIF 513 549 514 550 … … 544 580 print*,'sortie inidissip' 545 581 itau = 0 582 itau_dyn = 0 583 itau_phy = 0 546 584 iday = dayref +itau/day_step 547 585 time = FLOAT(itau-(iday-dayref)*day_step)/day_step … … 551 589 iday = iday + 1 552 590 ENDIF 591 day_ref = dayref 592 annee_ref = anneeref 593 553 594 CALL geopot ( ip1jmp1, tpot , pk , pks, phis , phi ) 554 595 print*,'sortie geopot' … … 557 598 * phi,w, pbaru,pbarv,time+iday-dayref ) 558 599 print*,'sortie caldyn0' 559 CALL dynredem0("start.nc",dayref, anneeref,phis,nqmx)600 CALL dynredem0("start.nc",dayref,phis,nqmx) 560 601 print*,'sortie dynredem0' 561 602 CALL dynredem1("start.nc",0.0,vvent,uvent,tpot,q3d,nqmx,masse , … … 569 610 co2_ppm = 330.0 570 611 solaire = 1370.0 571 572 c call physdem(lonfi, latfi, phystep,radpas,co2_ppm,573 c . solaire,tsol, qsol,574 c . sn, radsol, deltat, rugmer,575 c . agesno, zmea, zstd, zsig,576 c . zgam, zthe, zpic, zval,577 c . rugsrel)578 612 579 613 c … … 614 648 frugs(1:klon,is_lic) = MAX(1.0e-05, zstd(1:klon)*zsig(1:klon)/2.0) 615 649 frugs(1:klon,is_sic) = 0.001 616 617 call physdem("startphy.nc",phystep,radpas, co2_ppm, solaire, 650 fder = 0.0 651 652 call phyredem("startphy.nc",phystep,radpas, co2_ppm, solaire, 618 653 $ latfi, lonfi, pctsrf, tsolsrf, tsoil, deltat, qsolsrf, snsrf, 619 $ albe, evap, rain_fall, snow_fall, solsw, sollw, 654 $ albe, evap, rain_fall, snow_fall, solsw, sollw, fder, 620 655 $ radsol, frugs, agesno, 621 656 $ zmea, zstd, zsig, zgam, zthe, zpic, zval, rugsrel, -
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.