Changeset 1055 for trunk/LMDZ.TITAN/libf
- Timestamp:
- Oct 7, 2013, 2:40:02 PM (11 years ago)
- Location:
- trunk/LMDZ.TITAN/libf/phytitan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/interface_surf.F90
r1048 r1055 45 45 & tsol_rad, tsurf_new, alb_new) 46 46 47 use write_field_phy48 47 use cpdet_mod, only: cpdet 49 48 … … 160 159 CALL soil(dtime, knon, tsurf, tsoil,soilcap, soilflux) 161 160 cal(1:knon) = zcp(1:knon) / soilcap(1:knon) 162 ! for tests:163 ! call writefield_phy('interfsurf_hq_zcp',zcp,1)164 ! call writefield_phy('interfsurf_hq_cal',cal,1)165 ! call writefield_phy('interfsurf_hq_soilcap',soilcap,1)166 161 ! print*,"DIAGNOSTIC SOIL" 167 162 ! print*,"soilcap=",soilcap … … 196 191 & tsurf_new, fluxsens, dflux_s) 197 192 198 use write_field_phy199 193 use cpdet_mod, only: t2tpot, tpot2t 200 194 … … 332 326 ENDDO 333 327 334 ! for tests: write output fields...335 ! call writefield_phy('calcul_fluxs_d_ts',d_ts,1)336 ! call writefield_phy('calcul_fluxs_fluxsens',fluxsens,1)337 ! call writefield_phy('calcul_fluxs_dflux_s',dflux_s,1)338 339 328 END SUBROUTINE calcul_fluxs 340 329 ! -
trunk/LMDZ.TITAN/libf/phytitan/readstartphy.F
r778 r1055 8 8 . albe, solsw, sollw, 9 9 . fder,radsol, 10 . zmea, zstd, zsig, zgam, zthe, zpic, zval, 10 11 . tabcntr0) 11 12 c====================================================================== … … 35 36 real solsw(ngridmx) 36 37 real fder(ngridmx) 38 REAL zmea(ngridmx), zstd(ngridmx) 39 REAL zsig(ngridmx), zgam(ngridmx), zthe(ngridmx) 40 REAL zpic(ngridmx), zval(ngridmx) 37 41 INTEGER length 38 42 PARAMETER (length=100) … … 294 298 ENDDO 295 299 PRINT*,'Rayonnement net au sol radsol:', xmin, xmax 300 301 c 302 c Lecture des parametres orographie sous-maille: 303 c 304 ierr = NF_INQ_VARID (nid, "ZMEA", nvarid) 305 IF (ierr.NE.NF_NOERR) THEN 306 PRINT*, 'phyetat0: Le champ <ZMEA> est absent' 307 PRINT*, 'mis a zero' 308 zmea = 0. 309 ELSE 310 #ifdef NC_DOUBLE 311 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zmea) 312 #else 313 ierr = NF_GET_VAR_REAL(nid, nvarid, zmea) 314 #endif 315 IF (ierr.NE.NF_NOERR) THEN 316 PRINT*, 'phyetat0: Lecture echouee pour <ZMEA>' 317 CALL abort 318 ENDIF 319 ENDIF 320 xmin = 1.0E+20 321 xmax = -1.0E+20 322 DO i = 1, ngridmx 323 xmin = MIN(zmea(i),xmin) 324 xmax = MAX(zmea(i),xmax) 325 ENDDO 326 PRINT*,'zmea:', xmin, xmax 327 c 328 ierr = NF_INQ_VARID (nid, "ZSTD", nvarid) 329 IF (ierr.NE.NF_NOERR) THEN 330 PRINT*, 'phyetat0: Le champ <ZSTD> est absent' 331 PRINT*, 'mis a zero' 332 zstd = 0. 333 ELSE 334 #ifdef NC_DOUBLE 335 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zstd) 336 #else 337 ierr = NF_GET_VAR_REAL(nid, nvarid, zstd) 338 #endif 339 IF (ierr.NE.NF_NOERR) THEN 340 PRINT*, 'phyetat0: Lecture echouee pour <ZSTD>' 341 CALL abort 342 ENDIF 343 ENDIF 344 xmin = 1.0E+20 345 xmax = -1.0E+20 346 DO i = 1, ngridmx 347 xmin = MIN(zstd(i),xmin) 348 xmax = MAX(zstd(i),xmax) 349 ENDDO 350 PRINT*,'zstd:', xmin, xmax 351 c 352 ierr = NF_INQ_VARID (nid, "ZSIG", nvarid) 353 IF (ierr.NE.NF_NOERR) THEN 354 PRINT*, 'phyetat0: Le champ <ZSIG> est absent' 355 PRINT*, 'mis a zero' 356 zsig = 0. 357 ELSE 358 #ifdef NC_DOUBLE 359 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zsig) 360 #else 361 ierr = NF_GET_VAR_REAL(nid, nvarid, zsig) 362 #endif 363 IF (ierr.NE.NF_NOERR) THEN 364 PRINT*, 'phyetat0: Lecture echouee pour <ZSIG>' 365 CALL abort 366 ENDIF 367 ENDIF 368 xmin = 1.0E+20 369 xmax = -1.0E+20 370 DO i = 1, ngridmx 371 xmin = MIN(zsig(i),xmin) 372 xmax = MAX(zsig(i),xmax) 373 ENDDO 374 PRINT*,'zsig:', xmin, xmax 375 c 376 ierr = NF_INQ_VARID (nid, "ZGAM", nvarid) 377 IF (ierr.NE.NF_NOERR) THEN 378 PRINT*, 'phyetat0: Le champ <ZGAM> est absent' 379 PRINT*, 'mis a zero' 380 zgam = 0. 381 ELSE 382 #ifdef NC_DOUBLE 383 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zgam) 384 #else 385 ierr = NF_GET_VAR_REAL(nid, nvarid, zgam) 386 #endif 387 IF (ierr.NE.NF_NOERR) THEN 388 PRINT*, 'phyetat0: Lecture echouee pour <ZGAM>' 389 CALL abort 390 ENDIF 391 ENDIF 392 xmin = 1.0E+20 393 xmax = -1.0E+20 394 DO i = 1, ngridmx 395 xmin = MIN(zgam(i),xmin) 396 xmax = MAX(zgam(i),xmax) 397 ENDDO 398 PRINT*,'zgam:', xmin, xmax 399 c 400 ierr = NF_INQ_VARID (nid, "ZTHE", nvarid) 401 IF (ierr.NE.NF_NOERR) THEN 402 PRINT*, 'phyetat0: Le champ <ZTHE> est absent' 403 PRINT*, 'mis a zero' 404 zthe = 0. 405 ELSE 406 #ifdef NC_DOUBLE 407 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zthe) 408 #else 409 ierr = NF_GET_VAR_REAL(nid, nvarid, zthe) 410 #endif 411 IF (ierr.NE.NF_NOERR) THEN 412 PRINT*, 'phyetat0: Lecture echouee pour <ZTHE>' 413 CALL abort 414 ENDIF 415 ENDIF 416 xmin = 1.0E+20 417 xmax = -1.0E+20 418 DO i = 1, ngridmx 419 xmin = MIN(zthe(i),xmin) 420 xmax = MAX(zthe(i),xmax) 421 ENDDO 422 PRINT*,'zthe:', xmin, xmax 423 c 424 ierr = NF_INQ_VARID (nid, "ZPIC", nvarid) 425 IF (ierr.NE.NF_NOERR) THEN 426 PRINT*, 'phyetat0: Le champ <ZPIC> est absent' 427 PRINT*, 'mis a zero' 428 zpic = 0. 429 ELSE 430 #ifdef NC_DOUBLE 431 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zpic) 432 #else 433 ierr = NF_GET_VAR_REAL(nid, nvarid, zpic) 434 #endif 435 IF (ierr.NE.NF_NOERR) THEN 436 PRINT*, 'phyetat0: Lecture echouee pour <ZPIC>' 437 CALL abort 438 ENDIF 439 ENDIF 440 xmin = 1.0E+20 441 xmax = -1.0E+20 442 DO i = 1, ngridmx 443 xmin = MIN(zpic(i),xmin) 444 xmax = MAX(zpic(i),xmax) 445 ENDDO 446 PRINT*,'zpic:', xmin, xmax 447 c 448 ierr = NF_INQ_VARID (nid, "ZVAL", nvarid) 449 IF (ierr.NE.NF_NOERR) THEN 450 PRINT*, 'phyetat0: Le champ <ZVAL> est absent' 451 PRINT*, 'mis a zero' 452 zval = 0. 453 ELSE 454 #ifdef NC_DOUBLE 455 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, zval) 456 #else 457 ierr = NF_GET_VAR_REAL(nid, nvarid, zval) 458 #endif 459 IF (ierr.NE.NF_NOERR) THEN 460 PRINT*, 'phyetat0: Lecture echouee pour <ZVAL>' 461 CALL abort 462 ENDIF 463 ENDIF 464 xmin = 1.0E+20 465 xmax = -1.0E+20 466 DO i = 1, ngridmx 467 xmin = MIN(zval(i),xmin) 468 xmax = MAX(zval(i),xmax) 469 ENDDO 470 PRINT*,'zval:', xmin, xmax 296 471 c 297 472 c Fermer le fichier: … … 301 476 RETURN 302 477 END 478
Note: See TracChangeset
for help on using the changeset viewer.