Ignore:
Timestamp:
Dec 14, 2015, 11:43:09 AM (9 years ago)
Author:
Laurent Fairhead
Message:

Merged trunk changes r2298:2396 into testing branch

Location:
LMDZ5/branches/testing
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/branches/testing

  • LMDZ5/branches/testing/libf/phymar/physiq.F90

    r2258 r2408  
    1111     &            debut,lafin,jD_cur, jH_cur,pdtphys, &
    1212     &            paprs,pplay,pphi,pphis,ppresnivs, &
    13      &            u,v,t,qx, &
     13     &            u,v,rot,t,qx, &
    1414     &            flxmass_w, &
    1515     &            d_u, d_v, d_t, d_qx, d_ps &
     
    1717
    1818      USE dimphy, only : klon,klev,klevp1
    19       USE infotrac, only : nqtot
    20       USE comgeomphy, only : rlatd,rlond,airephy
     19      USE infotrac_phy, only : nqtot
     20      USE geometry_mod, only : latitude,longitude,cell_area
    2121      !USE comcstphy, only : rg
    2222      USE iophy, only : histbeg_phy,histwrite_phy
     
    120120      real,intent(in) :: u(klon,klev) ! eastward zonal wind (m/s)
    121121      real,intent(in) :: v(klon,klev) ! northward meridional wind (m/s)
     122      REAL, intent(in):: rot(klon, klev) ! relative vorticity,
     123                                         ! in s-1, needed for frontal waves
    122124      real,intent(in) :: t(klon,klev) ! temperature (K)
    123125      real,intent(in) :: qx(klon,klev,nqtot) ! tracers (.../kg_air)
     
    498500
    499501DO i=1,klon
    500   IF (rlond(i) .LT. 0) THEN
    501     lonh_HOST(i)=rlond(i)*12./rpi+24. ! from radians to hours
     502  IF (longitude(i) .LT. 0) THEN
     503    lonh_HOST(i)=longitude(i)*12./rpi+24. ! from radians to hours
    502504   ELSE
    503     lonh_HOST(i)=rlond(i)*12./rpi ! from radians to hours
     505    lonh_HOST(i)=longitude(i)*12./rpi ! from radians to hours
    504506  ENDIF
    505507ENDDO
    506 latr_HOST(:)=rlatd(:) ! from radians to radians
     508latr_HOST(:)=latitude(:) ! from radians to radians
    507509
    508510!PRINT*, 'lonh_HOST(:)=',lonh_HOST(:)
     
    689691PRINT*, 'Initialisation de la temperature de surface avec les SST aquaplanète'
    690692          DO i = 1,klon
    691             Ts___HOST(i)=273.+27.*(1-sin(1.5*rlatd(i))**2)
    692             IF ((rlatd(i).GT.1.0471975).OR.(rlatd(i).LT.-1.0471975)) THEN
     693            Ts___HOST(i)=273.+27.*(1-sin(1.5*latitude(i))**2)
     694            IF ((latitude(i).GT.1.0471975).OR.(latitude(i).LT.-1.0471975)) THEN
    693695              Ts___HOST(i)=273.
    694696            ENDIF
     
    791793DO k = 1, klev
    792794  i=klev+1-k
    793   !omega(i,k) = RG*flxmass_w(i,k) / airephy(i) ! omega en Pa/s
    794   Wa___HOST(:,i)=flxmass_w(:,k) / airephy(:) * (gZam_HOST(:,i+1) - gZam_HOST(:,i))/(paprs(:,k+1)-paprs(:,k)) ! Equilibre hydrostatique
     795  !omega(i,k) = RG*flxmass_w(i,k) / cell_area(i) ! omega en Pa/s
     796  Wa___HOST(:,i)=flxmass_w(:,k) / cell_area(:) * (gZam_HOST(:,i+1) - gZam_HOST(:,i))/(paprs(:,k+1)-paprs(:,k)) ! Equilibre hydrostatique
    795797END DO
    796798Wa___HOST(:,klev)=0 ! Vitesse nulle à la surface.
     
    853855!IF (debut) THEN
    854856  DO i=1,klon
    855     sst__HOST(i)=273.+27.*(1-sin(1.5*rlatd(i))**2)
    856     IF ((rlatd(i).GT.1.0471975).OR.(rlatd(i).LT.-1.0471975)) THEN
     857    sst__HOST(i)=273.+27.*(1-sin(1.5*latitude(i))**2)
     858    IF ((latitude(i).GT.1.0471975).OR.(latitude(i).LT.-1.0471975)) THEN
    857859      sst__HOST(i)=273.
    858860    ENDIF
     
    908910      ikl0 = i
    909911      PRINT*,'Attention : NaN at'
    910       PRINT*,'longitude=',rlond(i)*180/rpi
    911       PRINT*,'latitude=',rlatd(i)*180/rpi
     912      PRINT*,'longitude=',longitude(i)*180/rpi
     913      PRINT*,'latitude=',latitude(i)*180/rpi
    912914    ENDIF
    913915  ENDDO
Note: See TracChangeset for help on using the changeset viewer.