Changeset 2495


Ignore:
Timestamp:
Apr 14, 2016, 4:20:44 PM (9 years ago)
Author:
lguez
Message:

Bug fix. Virtual temperature is:

[1 + (1 / eps - 1) q] T

not:

(1 + eps q) T

(no worry: the numerical difference is small).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/wake.F90

    r2474 r2495  
    625625    z(i) = 1.
    626626    dz(i) = 1.
    627     sum_thvu(i) = thu(i, 1)*(1.+eps*qu(i,1))*dz(i)
     627    sum_thvu(i) = thu(i, 1)*(1.+epsim1*qu(i,1))*dz(i)
    628628    sum_dth(i) = 0.
    629629  END DO
     
    637637        sum_tu(i) = sum_tu(i) + tu(i, k)*dz(i)
    638638        sum_qu(i) = sum_qu(i) + qu(i, k)*dz(i)
    639         sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+eps*qu(i,k))*dz(i)
     639        sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+epsim1*qu(i,k))*dz(i)
    640640        sum_dth(i) = sum_dth(i) + dth(i, k)*dz(i)
    641641        sum_dq(i) = sum_dq(i) + deltaqw(i, k)*dz(i)
     
    671671    av_dqdwn(i) = sum_dqdwn(i)/hw0(i)
    672672
    673     wape(i) = -rg*hw0(i)*(av_dth(i)+eps*(av_thu(i)*av_dq(i)+av_dth(i)*av_qu(i &
     673    wape(i) = -rg*hw0(i)*(av_dth(i)+epsim1*(av_thu(i)*av_dq(i)+av_dth(i)*av_qu(i &
    674674      )+av_dth(i)*av_dq(i)))/av_thvu(i)
    675675  END DO
     
    13981398        z(i) = 1.
    13991399        dz(i) = 1.
    1400         sum_thvu(i) = thu(i, 1)*(1.+eps*qu(i,1))*dz(i)
     1400        sum_thvu(i) = thu(i, 1)*(1.+epsim1*qu(i,1))*dz(i)
    14011401        sum_dth(i) = 0.
    14021402      END IF
     
    14121412            sum_tu(i) = sum_tu(i) + tu(i, k)*dz(i)
    14131413            sum_qu(i) = sum_qu(i) + qu(i, k)*dz(i)
    1414             sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+eps*qu(i,k))*dz(i)
     1414            sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+epsim1*qu(i,k))*dz(i)
    14151415            sum_dth(i) = sum_dth(i) + dth(i, k)*dz(i)
    14161416            sum_dq(i) = sum_dq(i) + deltaqw(i, k)*dz(i)
     
    14491449        av_dqdwn(i) = sum_dqdwn(i)/hw0(i)
    14501450
    1451         wape(i) = -rg*hw0(i)*(av_dth(i)+eps*(av_thu(i)*av_dq(i)+av_dth(i)* &
     1451        wape(i) = -rg*hw0(i)*(av_dth(i)+epsim1*(av_thu(i)*av_dq(i)+av_dth(i)* &
    14521452          av_qu(i)+av_dth(i)*av_dq(i)))/av_thvu(i)
    14531453      END IF
     
    15781578      z(i) = 1.
    15791579      dz(i) = 1.
    1580       sum_thvu(i) = thu(i, 1)*(1.+eps*qu(i,1))*dz(i)
     1580      sum_thvu(i) = thu(i, 1)*(1.+epsim1*qu(i,1))*dz(i)
    15811581      sum_dth(i) = 0.
    15821582    END IF
     
    15941594          sum_tu(i) = sum_tu(i) + tu(i, k)*dz(i)
    15951595          sum_qu(i) = sum_qu(i) + qu(i, k)*dz(i)
    1596           sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+eps*qu(i,k))*dz(i)
     1596          sum_thvu(i) = sum_thvu(i) + thu(i, k)*(1.+epsim1*qu(i,k))*dz(i)
    15971597          sum_dth(i) = sum_dth(i) + dth(i, k)*dz(i)
    15981598          sum_dq(i) = sum_dq(i) + deltaqw(i, k)*dz(i)
     
    16321632      av_dqdwn(i) = sum_dqdwn(i)/hw0(i)
    16331633
    1634       wape2(i) = -rg*hw0(i)*(av_dth(i)+eps*(av_thu(i)*av_dq(i)+av_dth(i)* &
     1634      wape2(i) = -rg*hw0(i)*(av_dth(i)+epsim1*(av_thu(i)*av_dq(i)+av_dth(i)* &
    16351635        av_qu(i)+av_dth(i)*av_dq(i)))/av_thvu(i)
    16361636    END IF
Note: See TracChangeset for help on using the changeset viewer.