Changeset 852 for LMDZ4/trunk/libf/phytherm/phyetat0.F
- Timestamp:
- Oct 11, 2007, 3:43:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phytherm/phyetat0.F
r814 r852 13 13 . rugsrel_p,tabcntr0, 14 14 . t_ancien_p,q_ancien_p,ancien_ok_p, rnebcon_p, ratqs_p, 15 . clwcon_p )15 . clwcon_p,pbl_tke_p) 16 16 17 17 USE dimphy … … 37 37 #include "clesphys.h" 38 38 #include "temps.h" 39 #include "thermcell.h" 40 #include "compbl.h" 39 41 c====================================================================== 40 42 CHARACTER*(*) fichnom … … 45 47 REAL solaire_etat0 46 48 REAL tsol_p(klon,nbsrf) 49 REAL pbl_tke_p(klon,klev,nbsrf) 47 50 REAL tsoil_p(klon,nsoilmx,nbsrf) 48 51 REAL tslab_p(klon), seaice_p(klon) … … 83 86 REAL rlat(klon_glo), rlon(klon_glo) 84 87 REAL tsol(klon_glo,nbsrf) 88 REAL pbl_tke(klon_glo,klev,nbsrf) 85 89 REAL tsoil(klon_glo,nsoilmx,nbsrf) 86 90 cIM "slab" ocean … … 127 131 c 128 132 INTEGER nid, nvarid 129 INTEGER ierr, i, nsrf, isoil 133 INTEGER ierr, i, nsrf, isoil ,k 130 134 INTEGER length 131 135 PARAMETER (length=100) … … 1492 1496 xmax = MAXval(run_off_lic_0) 1493 1497 PRINT*,'(ecart-type) run_off_lic_0:', xmin, xmax 1498 1499 1500 c Lecture de l'energie cinetique turbulente 1501 c 1502 1503 IF (iflag_pbl>1) then 1504 PRINT*, 'phyetat0: Le champ <TKE> est absent' 1505 PRINT*, ' Mais je vais essayer de lire TKE**' 1506 DO nsrf = 1, nbsrf 1507 IF (nsrf.GT.99) THEN 1508 PRINT*, "Trop de sous-mailles" 1509 CALL abort 1510 ENDIF 1511 WRITE(str2,'(i2.2)') nsrf 1512 ierr = NF_INQ_VARID (nid, "TKE"//str2, nvarid) 1513 IF (ierr.NE.NF_NOERR) THEN 1514 PRINT*, "WARNING phyetat0: <TKE"//str2//"> est absent" 1515 pbl_tke(:,:,nsrf)=1.e-8 1516 ELSE 1517 #ifdef NC_DOUBLE 1518 ierr = NF_GET_VAR_DOUBLE(nid, nvarid, pbl_tke(1,1,nsrf)) 1519 #else 1520 ierr = NF_GET_VAR_REAL(nid, nvarid, pbl_tke(1,1,nsrf)) 1521 #endif 1522 IF (ierr.NE.NF_NOERR) THEN 1523 PRINT*, "WARNING phyetat0: echec lect <TKE"//str2//">" 1524 CALL abort 1525 ENDIF 1526 ENDIF 1527 1528 xmin = 1.0E+20 1529 xmax = -1.0E+20 1530 DO k = 1, klev 1531 DO i = 1, klon_glo 1532 xmin = MIN(pbl_tke(i,k,nsrf),xmin) 1533 xmax = MAX(pbl_tke(i,k,nsrf),xmax) 1534 ENDDO 1535 ENDDO 1536 PRINT*,'Temperature du sol TKE**:', nsrf, xmin, xmax 1537 ENDDO 1538 ENDIF 1539 1494 1540 c 1495 1541 c Fermer le fichier: … … 1516 1562 call Scatter( rlon,rlon_p) 1517 1563 call Scatter( tsol,tsol_p) 1564 IF (iflag_pbl>1) then 1565 call Scatter( pbl_tke,pbl_tke_p) 1566 endif 1518 1567 call Scatter( tsoil,tsoil_p) 1519 1568 call Scatter( tslab,tslab_p)
Note: See TracChangeset
for help on using the changeset viewer.