Changeset 385


Ignore:
Timestamp:
05/25/16 12:07:23 (8 years ago)
Author:
ymipsl
Message:

Some fixes in dcmip2016 physics

YM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • codes/icosagcm/trunk/src/physics_dcmip2016.f90

    r381 r385  
    151151    IF (testcase==moist_baroclinic .OR. testcase==cyclone .OR. testcase==supercell ) THEN 
    152152       DO ij=1,ngrid 
    153           lastz=0 ; 
     153          lastz=0  
    154154          DO l=1,llm 
    155155           ll=llm+1-l 
    156            rho(l) = gas_constant*Temp(ij,ll) / pmid(ij,ll) 
     156           rho(l) = gas_constant*Temp(ij,l) / pmid(ij,ll) 
    157157           z(l)=lastz+ (p(ij,l)-p(ij,l+1) /g) / rho(l) 
    158158           lastz=z(l) 
    159            theta(l)= Tfi(ij,l)*(1+0.608*qfi(ij,ll,1)) * pk(ij,l) / cpp 
     159           theta(l)= Tfi(ij,ll)*(1+0.608*qfi(ij,ll,1)) * pk(ij,l) / cpp 
    160160          ENDDO 
    161161 
     
    165165          DO l=1,llm 
    166166           ll=llm+1-l 
    167            Tfi(ij,l) = theta(l) *(1+0.608*qfi(ij,ll,1)) * cpp / pk(ij,l) 
     167           Tfi(ij,ll) = theta(l) /(1+0.608*qfi(ij,ll,1)) * cpp / pk(ij,l) 
    168168          ENDDO 
    169169       ENDDO 
Note: See TracChangeset for help on using the changeset viewer.