Skip to content

Commit

Permalink
One more dme_adjust cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cacraigucar committed Feb 27, 2025
1 parent dea02c7 commit 3b801b3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/physics/cam/physics_types.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1260,16 +1260,20 @@ subroutine physics_dme_adjust(state, tend, qini, liqini, iceini, dt)
lchnk = state%lchnk
ncol = state%ncol

! adjust dry mass in each layer back to input value, while conserving
! constituents, momentum, and total energy
state%ps(:ncol) = state%pint(:ncol,1)
! ! adjust dry mass in each layer back to input value, while conserving
! ! constituents, momentum, and total energy
! state%ps(:ncol) = state%pint(:ncol,1)

!
! original code for backwards compatability with FV
!
if (.not.(dycore_is('MPAS') .or. dycore_is('SE'))) then
do k = 1, pver

! adjust dry mass in each layer back to input value, while conserving
! constituents, momentum, and total energy
state%ps(:ncol) = state%pint(:ncol,1)

! adjusment factor is just change in water vapor
fdq(:ncol) = 1._r8 + state%q(:ncol,k,1) - qini(:ncol,k)

Expand Down

0 comments on commit 3b801b3

Please sign in to comment.