Ignore:
Timestamp:
Aug 17, 2011, 11:38:15 AM (13 years ago)
Author:
acolaitis
Message:

Bug correction in call to surflayer, added recomputation of potential temperature zh after incrementation of physical tendancies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/physiq.F

    r268 r269  
    11601160      ENDDO
    11611161
     1162      ! Potential Temperature
     1163
     1164       DO ig=1,ngridmx
     1165          DO l=1,nlayermx
     1166              zh(ig,l) = zt(ig,l)*(zplay(ig,l)/zplev(ig,1))**rcp
     1167          ENDDO
     1168       ENDDO
     1169
     1170
    11621171c    Compute surface stress : (NB: z0 is a common in surfdat.h)
    11631172c     DO ig=1,ngrid
     
    15731582         if (calltherm .and. (z_out .gt. 0.)) then
    15741583         call surflayer_interpol(ngrid,nlayer,z0,g,zzlay,zu,zv,wmax_th
    1575      &              ,tsurf,zt(:,:)*(zplay(:,:)/zplev(:,:))**rcp
    1576      &              ,z_out,Teta_out,u_out,ustar,tstar)
     1584     &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar)
    15771585
    15781586         zu2(:)=sqrt(zu(:,1)*zu(:,1)+zv(:,1)*zv(:,1))
     
    16831691         z_out=0.
    16841692         if (calltherm .and. (z_out .gt. 0.)) then
    1685 
    16861693         call surflayer_interpol(ngrid,nlayer,z0,g,zzlay,zu,zv,wmax_th
    1687      &              ,tsurf,zt(:,:)*(zplay(:,:)/zplev(:,:))**rcp
    1688      &              ,z_out,Teta_out,u_out,ustar,tstar)
     1694     &              ,tsurf,zh,z_out,Teta_out,u_out,ustar,tstar)
    16891695
    16901696         zu2(:)=sqrt(zu(:,1)*zu(:,1)+zv(:,1)*zv(:,1))
Note: See TracChangeset for help on using the changeset viewer.