Skip to content

Commit 353b807

Browse files
authored
Add a missing term for (-qv*d(rho_zz)/dt) in updating the tendency for theta_m. (MPAS-Dev#32)
1 parent 02b9712 commit 353b807

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core_atmosphere/dynamics/mpas_atm_iau.F

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,8 @@ subroutine atm_add_tend_anal_incr (configs, structs, itimestep, dt, tend_ru, ten
220220
do i = 1, nCellsSolve
221221
do k = 1, nVertLevels
222222
tend_th(k,i) = (1. + rvord * scalars(index_qv,k,i)) * tend_th(k,i) &
223-
+ rvord * theta(k,i) * tend_scalars(index_qv,k,i)
223+
+ rvord * theta(k,i) * tend_scalars(index_qv,k,i) &
224+
- scalars(index_qv,k,i) * tend_rho(k,i)
224225
tend_rtheta(k,i) = tend_rtheta(k,i) + tend_th(k,i)
225226
enddo
226227
enddo

0 commit comments

Comments
 (0)