Skip to content

Commit 67ae74c

Browse files
committed
Merge branch 'origin/oksanaguba/eam/add-pnh' into dyamond2 (PR #857)
2 parents ad0e203 + 65fe92a commit 67ae74c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/eam/src/dynamics/se/stepon.F90

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module stepon
2828
use scamMod, only: use_iop, doiopupdate, single_column, &
2929
setiopupdate, readiopdata, iop_mode
3030
use element_mod, only: element_t
31+
use element_ops, only: get_field
3132
use shr_const_mod, only: SHR_CONST_PI
3233
use se_single_column_mod, only: scm_broadcast
3334

@@ -149,6 +150,7 @@ subroutine stepon_init(dyn_in, dyn_out )
149150
call addfld('DYN_V' ,(/ 'lev' /), 'A', 'm/s', 'Meridional Velocity', gridname='GLL')
150151
call addfld('DYN_OMEGA',(/ 'lev' /), 'A', 'Pa/s', 'Vertical Velocity', gridname='GLL' )
151152
call addfld('DYN_PS' ,horiz_only, 'A', 'Pa', 'Surface pressure', gridname='GLL')
153+
call addfld('DYN_PNH' ,(/ 'lev' /), 'A', 'Pa', 'Nonhydrostatic pressure', gridname='GLL')
152154

153155
end subroutine stepon_init
154156

@@ -417,6 +419,15 @@ subroutine stepon_run2(phys_state, phys_tend, dyn_in, dyn_out )
417419
call outfld('DIV',tmp_dyn(1,1,1,ie),npsq,ie)
418420
enddo
419421
endif
422+
423+
if (hist_fld_active('DYN_PNH')) then
424+
do ie=1,nelemd
425+
! time level ntQ is not used
426+
call get_field(dyn_in%elem(ie),'pnh',tmp_dyn(:,:,:,ie),hvcoord,tl_f,1)
427+
call outfld('DYN_PNH',tmp_dyn(1,1,1,ie),npsq,ie)
428+
enddo
429+
endif
430+
420431
if (hist_fld_active('FU') .or. hist_fld_active('FV') ) then
421432
do ie=1,nelemd
422433
do j=1,np

0 commit comments

Comments
 (0)