Skip to content

Commit

Permalink
fix "sending pbl_utils the wrong definition of 'theta' in clubb_intr.…
Browse files Browse the repository at this point in the history
…F90 ESCOMP#1222"
  • Loading branch information
PeterHjortLauritzen committed Jan 15, 2025
1 parent e5ceda5 commit e229ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/physics/cam/clubb_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -4701,7 +4701,9 @@ subroutine clubb_tend_cam( state, ptend_all, pbuf, hdtime, &
do i=1,ncol
do k=1,pver
!use local exner since state%exner is not a proper exner
th(i,k) = state1%t(i,k)*inv_exner_clubb(i,k)
!+++arh
!th(i,k) = state1%t(i,k)*inv_exner_clubb(i,k)
th(i,k) = state1%t(i,k)*state1%exner(i,k)
!thv should have condensate loading to be consistent with earlier def's in this module
thv(i,k) = th(i,k)*(1.0_r8+zvir*state1%q(i,k,ixq) - state1%q(i,k,ixcldliq))
enddo
Expand Down

0 comments on commit e229ed5

Please sign in to comment.