Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This commits vlab ticket #62918: output omega field in fv3 history file #1

Merged
merged 1 commit into from
Aug 27, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions driver/fvGFS/fv_nggps_diag.F90
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,13 @@ module fv_nggps_diags_mod
real, parameter:: stndrd_atmos_lapse = 0.0065

logical master
integer :: id_ua, id_va, id_pt, id_delp, id_pfhy, id_pfnh
integer :: id_w, id_delz, id_diss, id_ps, id_hs, id_dbz
integer :: id_ua, id_va, id_pt, id_delp, id_pfhy, id_pfnh
integer :: id_w, id_delz, id_diss, id_ps, id_hs, id_dbz, id_omga
integer :: kstt_ua, kstt_va, kstt_pt, kstt_delp, kstt_pfhy
integer :: kstt_pfnh, kstt_w, kstt_delz, kstt_diss, kstt_ps,kstt_hs
integer :: kend_ua, kend_va, kend_pt, kend_delp, kend_pfhy
integer :: kend_pfnh, kend_w, kend_delz, kend_diss, kend_ps,kend_hs
integer :: kstt_dbz, kend_dbz
integer :: kstt_dbz, kend_dbz, kstt_omga, kend_omga
integer :: kstt_windvect, kend_windvect
integer :: id_wmaxup,id_wmaxdn,kstt_wup, kend_wup,kstt_wdn,kend_wdn
integer :: id_uhmax03,id_uhmin03,id_uhmax25,id_uhmin25,id_maxvort01
Expand Down Expand Up @@ -236,6 +236,13 @@ subroutine fv_nggps_diag_init(Atm, axes, Time)
endif
endif

id_omga = register_diag_field ( trim(file_name), 'omga', axes(1:3), Time, &
'Vertical pressure velocity', 'pa/sec', missing_value=missing_value )
if (id_omga>0) then
kstt_omga = nlevs+1; kend_omga = nlevs+npzo
nlevs = nlevs + npzo
endif

id_pt = register_diag_field ( trim(file_name), 'temp', axes(1:3), Time, &
'temperature', 'K', missing_value=missing_value, range=trange )
if (id_pt>0) then
Expand Down Expand Up @@ -482,6 +489,11 @@ subroutine fv_nggps_diag(Atm, zvir, Time)
call store_data(id_w, Atm(n)%w(isco:ieco,jsco:jeco,:), Time, kstt_w, kend_w)
endif

!--- OMGA (non-hydrostatic)
if ( id_omga>0 ) then
call store_data(id_omga, Atm(n)%omga(isco:ieco,jsco:jeco,:), Time, kstt_omga, kend_omga)
endif

!--- TEMPERATURE
if(id_pt > 0) call store_data(id_pt, Atm(n)%pt(isco:ieco,jsco:jeco,:), Time, kstt_pt, kend_pt)

Expand Down Expand Up @@ -1172,6 +1184,13 @@ subroutine fv_dyn_bundle_setup(axes, dyn_bundle, fcst_grid, quilting, rc)
if(rc==0) num_field_dyn=num_field_dyn+1
endif
endif
!
if( id_omga>0 ) then
call find_outputname(trim(file_name),'omga',output_name)
call add_field_to_bundle(trim(output_name),'Vertical pressure velocity', 'pa/sec', "time: point", &
axes(1:3), fcst_grid, kstt_omga,kend_omga, dyn_bundle, output_file, rcd=rc)
if(rc==0) num_field_dyn=num_field_dyn+1
endif
!
if(id_pt > 0) then
call find_outputname(trim(file_name),'temp',output_name)
Expand Down