Ignore:
Timestamp:
Mar 31, 2008, 5:59:23 PM (17 years ago)
Author:
lmdzadmin
Message:

Ajout variables convection (ema_work1, ema_work2) dans startphy.nc
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ4/trunk/libf/phylmd/phyetat0.F

    r927 r937  
    1313     .           rugsrel_p,tabcntr0,
    1414     .           t_ancien_p,q_ancien_p,ancien_ok_p, rnebcon_p, ratqs_p,
    15      .           clwcon_p,pbl_tke_p, zmax0_p, f0_p)
     15     .           clwcon_p,pbl_tke_p, zmax0_p, f0_p,
     16     .           ema_work1_p, ema_work2_p)
    1617
    1718      USE dimphy
     
    4950      REAL pbl_tke_p(klon,klev,nbsrf)
    5051      REAL zmax0_p(klon), f0_p(klon)
     52      REAL ema_work1_p(klon,klev), ema_work2_p(klon,klev)
    5153      REAL tsoil_p(klon,nsoilmx,nbsrf)
    5254      REAL tslab_p(klon), seaice_p(klon)
     
    8789      REAL pbl_tke(klon_glo,klev,nbsrf)
    8890      REAL zmax0(klon), f0(klon)
     91      REAL ema_work1(klon,klev), ema_work2(klon,klev)
    8992      REAL tsoil(klon_glo,nsoilmx,nbsrf)
    9093cIM "slab" ocean
     
    14341437
    14351438c
    1436       ierr = NF_INQ_VARID (nid, "QANCIEN", nvarid)
    1437       IF (ierr.NE.NF_NOERR) THEN
    1438          PRINT*, "phyetat0: Le champ <QANCIEN> est absent"
    1439          PRINT*, "Depart legerement fausse. Mais je continue"
    1440          ancien_ok = .FALSE.
    1441       ELSE
    1442 #ifdef NC_DOUBLE
    1443          ierr = NF_GET_VAR_DOUBLE(nid, nvarid, q_ancien)
    1444 #else
    1445          ierr = NF_GET_VAR_REAL(nid, nvarid, q_ancien)
    1446 #endif
    1447          IF (ierr.NE.NF_NOERR) THEN
    1448             PRINT*, "phyetat0: Lecture echouee pour <QANCIEN>"
    1449             CALL abort
    1450          ENDIF
    1451       ENDIF
    1452 c
    14531439c Lecture ratqs
    14541440c
     
    15871573      xmax = MAXval(f0)
    15881574      PRINT*,'(ecart-type) f0:', xmin, xmax
     1575c
     1576c ema_work1
     1577c
     1578      ierr = NF_INQ_VARID (nid, "EMA_WORK1", nvarid)
     1579      IF (ierr.NE.NF_NOERR) THEN
     1580         PRINT*, "phyetat0: Le champ <EMA_WORK1> est absent"
     1581         PRINT*, "Depart legerement fausse. Mais je continue"
     1582         ema_work1=0.
     1583      ELSE
     1584#ifdef NC_DOUBLE
     1585         ierr = NF_GET_VAR_DOUBLE(nid, nvarid, ema_work1)
     1586#else
     1587         ierr = NF_GET_VAR_REAL(nid, nvarid, ema_work1)
     1588#endif
     1589         IF (ierr.NE.NF_NOERR) THEN
     1590            PRINT*, "phyetat0: Lecture echouee pour <EMA_WORK1>"
     1591            CALL abort
     1592         ENDIF
     1593           xmin = 1.0E+20
     1594           xmax = -1.0E+20
     1595           DO k = 1, klev
     1596           DO i = 1, klon
     1597              xmin = MIN(ema_work1(i,k),xmin)
     1598              xmax = MAX(ema_work1(i,k),xmax)
     1599           ENDDO
     1600           ENDDO
     1601           PRINT*,'ema_work1:', xmin, xmax
     1602      ENDIF
     1603c
     1604c ema_work2
     1605c
     1606      ierr = NF_INQ_VARID (nid, "EMA_WORK2", nvarid)
     1607      IF (ierr.NE.NF_NOERR) THEN
     1608         PRINT*, "phyetat0: Le champ <EMA_WORK2> est absent"
     1609         PRINT*, "Depart legerement fausse. Mais je continue"
     1610         ema_work2=0.
     1611      ELSE
     1612#ifdef NC_DOUBLE
     1613         ierr = NF_GET_VAR_DOUBLE(nid, nvarid, ema_work2)
     1614#else
     1615         ierr = NF_GET_VAR_REAL(nid, nvarid, ema_work2)
     1616#endif
     1617         IF (ierr.NE.NF_NOERR) THEN
     1618            PRINT*, "phyetat0: Lecture echouee pour <EMA_WORK2>"
     1619            CALL abort
     1620         ENDIF
     1621           xmin = 1.0E+20
     1622           xmax = -1.0E+20
     1623           DO k = 1, klev
     1624           DO i = 1, klon
     1625              xmin = MIN(ema_work2(i,k),xmin)
     1626              xmax = MAX(ema_work2(i,k),xmax)
     1627           ENDDO
     1628           ENDDO
     1629           PRINT*,'ema_work2:', xmin, xmax
     1630      ENDIF
    15891631c
    15901632c Fermer le fichier:
     
    16251667      call Scatter( zmax0,zmax0_p)
    16261668      call Scatter( f0,f0_p)
     1669      call Scatter( ema_work1, ema_work1_p)
     1670      call Scatter( ema_work2, ema_work2_p)
    16271671      call Scatter( tsoil,tsoil_p)
    16281672      call Scatter( tslab,tslab_p)
Note: See TracChangeset for help on using the changeset viewer.