Changeset 4482 for LMDZ6/branches/LMDZ_ECRad/libf/phylmd/read_pstoke.F90
- Timestamp:
- Mar 29, 2023, 3:14:27 PM (20 months ago)
- Location:
- LMDZ6/branches/LMDZ_ECRad
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/LMDZ_ECRad
- Property svn:mergeinfo changed
-
LMDZ6/branches/LMDZ_ECRad/libf/phylmd/read_pstoke.F90
r2345 r4482 252 252 253 253 ! niveaux de pression 254 #ifdef NC_DOUBLE 255 status = nf_get_vara_double(ncidp, varidpl, 1, zklevo, pl) 256 #else 257 status = nf_get_vara_real(ncidp, varidpl, 1, zklevo, pl) 258 #endif 254 status = nf90_get_var(ncidp, varidpl, pl, [1], [ncklevo]) 259 255 260 256 ! lecture de aire et phis … … 271 267 272 268 ! phis 273 #ifdef NC_DOUBLE 274 status = nf_get_vara_double(ncidp, varidps, start, count, phisfi2) 275 #else 276 status = nf_get_vara_real(ncidp, varidps, start, count, phisfi2) 277 #endif 269 status = nf90_get_var(ncidp, varidps, phisfi2, start, count) 278 270 CALL gr_ecrit_fi(1, klono, imo, jmo+1, phisfi2, phisfi) 279 271 280 272 ! aire 281 #ifdef NC_DOUBLE 282 status = nf_get_vara_double(ncidp, varidai, start, count, airefi2) 283 #else 284 status = nf_get_vara_real(ncidp, varidai, start, count, airefi2) 285 #endif 273 status = nf90_get_var(ncidp, varidai, airefi2, start, count) 286 274 CALL gr_ecrit_fi(1, klono, imo, jmo+1, airefi2, airefi) 287 275 ELSE … … 309 297 ! *** Lessivage****************************************************** 310 298 ! frac_impa 311 #ifdef NC_DOUBLE 312 status = nf_get_vara_double(ncidp, varidfi, start, count, frac_impa2) 313 #else 314 status = nf_get_vara_real(ncidp, varidfi, start, count, frac_impa2) 315 #endif 299 status = nf90_get_var(ncidp, varidfi, frac_impa2, start, count) 316 300 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, frac_impa2, frac_impa) 317 301 318 302 ! frac_nucl 319 #ifdef NC_DOUBLE 320 status = nf_get_vara_double(ncidp, varidfn, start, count, frac_nucl2) 321 #else 322 status = nf_get_vara_real(ncidp, varidfn, start, count, frac_nucl2) 323 #endif 303 status = nf90_get_var(ncidp, varidfn, frac_nucl2, start, count) 324 304 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, frac_nucl2, frac_nucl) 325 305 326 306 ! *** Temperature ****************************************************** 327 307 ! abder t 328 #ifdef NC_DOUBLE 329 status = nf_get_vara_double(ncidp, varidt, start, count, t2) 330 #else 331 status = nf_get_vara_real(ncidp, varidt, start, count, t2) 332 #endif 308 status = nf90_get_var(ncidp, varidt, t2, start, count) 333 309 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, t2, t) 334 310 335 311 ! *** Flux pour le calcul de la convection TIEDTK *********************** 336 312 ! mfu 337 #ifdef NC_DOUBLE 338 status = nf_get_vara_double(ncidp, varidmfu, start, count, mfu2) 339 #else 340 status = nf_get_vara_real(ncidp, varidmfu, start, count, mfu2) 341 #endif 313 status = nf90_get_var(ncidp, varidmfu, mfu2, start, count) 342 314 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, mfu2, mfu) 343 315 344 316 ! mfd 345 #ifdef NC_DOUBLE 346 status = nf_get_vara_double(ncidp, varidmfd, start, count, mfd2) 347 #else 348 status = nf_get_vara_real(ncidp, varidmfd, start, count, mfd2) 349 #endif 317 status = nf90_get_var(ncidp, varidmfd, mfd2, start, count) 350 318 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, mfd2, mfd) 351 319 352 320 ! en_u 353 #ifdef NC_DOUBLE 354 status = nf_get_vara_double(ncidp, varidenu, start, count, en_u2) 355 #else 356 status = nf_get_vara_real(ncidp, varidenu, start, count, en_u2) 357 #endif 321 status = nf90_get_var(ncidp, varidenu, en_u2, start, count) 358 322 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, en_u2, en_u) 359 323 360 324 ! de_u 361 #ifdef NC_DOUBLE 362 status = nf_get_vara_double(ncidp, variddeu, start, count, de_u2) 363 #else 364 status = nf_get_vara_real(ncidp, variddeu, start, count, de_u2) 365 #endif 325 status = nf90_get_var(ncidp, variddeu, de_u2, start, count) 366 326 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, de_u2, de_u) 367 327 368 328 ! en_d 369 #ifdef NC_DOUBLE 370 status = nf_get_vara_double(ncidp, varidend, start, count, en_d2) 371 #else 372 status = nf_get_vara_real(ncidp, varidend, start, count, en_d2) 373 #endif 329 status = nf90_get_var(ncidp, varidend, en_d2, start, count) 374 330 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, en_d2, en_d) 375 331 376 332 ! de_d 377 #ifdef NC_DOUBLE 378 status = nf_get_vara_double(ncidp, varidded, start, count, de_d2) 379 #else 380 status = nf_get_vara_real(ncidp, varidded, start, count, de_d2) 381 #endif 333 status = nf90_get_var(ncidp, varidded, de_d2, start, count) 382 334 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, de_d2, de_d) 383 335 … … 385 337 ! turbulent********************************** 386 338 ! coefh 387 #ifdef NC_DOUBLE 388 status = nf_get_vara_double(ncidp, varidch, start, count, coefh2) 389 #else 390 status = nf_get_vara_real(ncidp, varidch, start, count, coefh2) 391 #endif 339 status = nf90_get_var(ncidp, varidch, coefh2, start, count) 392 340 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, coefh2, coefh) 393 341 … … 395 343 ! Thermiques************************ 396 344 ! abder thermiques 397 #ifdef NC_DOUBLE 398 status = nf_get_vara_double(ncidp, varidfmth, start, count, fm_therm2) 399 #else 400 status = nf_get_vara_real(ncidp, varidfmth, start, count, fm_therm2) 401 #endif 345 status = nf90_get_var(ncidp, varidfmth, fm_therm2, start, count) 402 346 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, fm_therm2, fm_therm) 403 347 404 #ifdef NC_DOUBLE 405 status = nf_get_vara_double(ncidp, varidenth, start, count, en_therm2) 406 #else 407 status = nf_get_vara_real(ncidp, varidenth, start, count, en_therm2) 408 #endif 348 status = nf90_get_var(ncidp, varidenth, en_therm2, start, count) 409 349 CALL gr_ecrit_fi(klevo, klono, imo, jmo+1, en_therm2, en_therm) 410 350 … … 416 356 count(4) = 0 417 357 ! pyu1 418 #ifdef NC_DOUBLE 419 status = nf_get_vara_double(ncidp, varidyu1, start, count, pyu12) 420 #else 421 status = nf_get_vara_real(ncidp, varidyu1, start, count, pyu12) 422 #endif 358 status = nf90_get_var(ncidp, varidyu1, pyu12, start, count) 423 359 CALL gr_ecrit_fi(1, klono, imo, jmo+1, pyu12, pyu1) 424 360 425 361 ! pyv1 426 #ifdef NC_DOUBLE 427 status = nf_get_vara_double(ncidp, varidyv1, start, count, pyv12) 428 #else 429 status = nf_get_vara_real(ncidp, varidyv1, start, count, pyv12) 430 #endif 362 status = nf90_get_var(ncidp, varidyv1, pyv12, start, count) 431 363 CALL gr_ecrit_fi(1, klono, imo, jmo+1, pyv12, pyv1) 432 364 433 365 ! *** Temperature au sol ******************************************** 434 366 ! ftsol1 435 #ifdef NC_DOUBLE 436 status = nf_get_vara_double(ncidp, varidfts1, start, count, ftsol12) 437 #else 438 status = nf_get_vara_real(ncidp, varidfts1, start, count, ftsol12) 439 #endif 367 status = nf90_get_var(ncidp, varidfts1, ftsol12, start, count) 440 368 CALL gr_ecrit_fi(1, klono, imo, jmo+1, ftsol12, ftsol1) 441 369 442 370 ! ftsol2 443 #ifdef NC_DOUBLE 444 status = nf_get_vara_double(ncidp, varidfts2, start, count, ftsol22) 445 #else 446 status = nf_get_vara_real(ncidp, varidfts2, start, count, ftsol22) 447 #endif 371 status = nf90_get_var(ncidp, varidfts2, ftsol22, start, count) 448 372 CALL gr_ecrit_fi(1, klono, imo, jmo+1, ftsol22, ftsol2) 449 373 450 374 ! ftsol3 451 #ifdef NC_DOUBLE 452 status = nf_get_vara_double(ncidp, varidfts3, start, count, ftsol32) 453 #else 454 status = nf_get_vara_real(ncidp, varidfts3, start, count, ftsol32) 455 #endif 375 status = nf90_get_var(ncidp, varidfts3, ftsol32, start, count) 456 376 CALL gr_ecrit_fi(1, klono, imo, jmo+1, ftsol32, ftsol3) 457 377 458 378 ! ftsol4 459 #ifdef NC_DOUBLE 460 status = nf_get_vara_double(ncidp, varidfts4, start, count, ftsol42) 461 #else 462 status = nf_get_vara_real(ncidp, varidfts4, start, count, ftsol42) 463 #endif 379 status = nf90_get_var(ncidp, varidfts4, ftsol42, start, count) 464 380 CALL gr_ecrit_fi(1, klono, imo, jmo+1, ftsol42, ftsol4) 465 381 466 382 ! *** Nature du sol ************************************************** 467 383 ! psrf1 468 #ifdef NC_DOUBLE 469 status = nf_get_vara_double(ncidp, varidpsr1, start, count, psrf12) 470 #else 471 status = nf_get_vara_real(ncidp, varidpsr1, start, count, psrf12) 472 #endif 384 status = nf90_get_var(ncidp, varidpsr1, psrf12, start, count) 473 385 CALL gr_ecrit_fi(1, klono, imo, jmo+1, psrf12, psrf1) 474 386 475 387 ! psrf2 476 #ifdef NC_DOUBLE 477 status = nf_get_vara_double(ncidp, varidpsr2, start, count, psrf22) 478 #else 479 status = nf_get_vara_real(ncidp, varidpsr2, start, count, psrf22) 480 #endif 388 status = nf90_get_var(ncidp, varidpsr2, psrf22, start, count) 481 389 CALL gr_ecrit_fi(1, klono, imo, jmo+1, psrf22, psrf2) 482 390 483 391 ! psrf3 484 #ifdef NC_DOUBLE 485 status = nf_get_vara_double(ncidp, varidpsr3, start, count, psrf32) 486 #else 487 status = nf_get_vara_real(ncidp, varidpsr3, start, count, psrf32) 488 #endif 392 status = nf90_get_var(ncidp, varidpsr3, psrf32, start, count) 489 393 CALL gr_ecrit_fi(1, klono, imo, jmo+1, psrf32, psrf3) 490 394 491 395 ! psrf4 492 #ifdef NC_DOUBLE 493 status = nf_get_vara_double(ncidp, varidpsr4, start, count, psrf42) 494 #else 495 status = nf_get_vara_real(ncidp, varidpsr4, start, count, psrf42) 496 #endif 396 status = nf90_get_var(ncidp, varidpsr4, psrf42, start, count) 497 397 CALL gr_ecrit_fi(1, klono, imo, jmo+1, psrf42, psrf4) 498 398
Note: See TracChangeset
for help on using the changeset viewer.