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

fix WRFDA reading of global attributes from netcdf input #258

Merged
merged 1 commit into from
May 12, 2017
Merged
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions var/da/da_main/da_med_initialdata_input.inc
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,14 @@ subroutine da_med_initialdata_input (grid, config_flags, filename, in_date)

! mp_physics is used in da_transfer_wrftoxb.inc
! get the setting from the input file
call ext_ncd_get_dom_ti_integer (fid, 'MP_PHYSICS', grid%mp_physics, 1, icnt, ierr)
call wrf_get_dom_ti_integer (fid, 'MP_PHYSICS', grid%mp_physics, 1, icnt, ierr)

! sf_surface_physics is used in da_transfer_xatowrf.inc
! get the setting from the input file
call ext_ncd_get_dom_ti_integer (fid, 'SF_SURFACE_PHYSICS', grid%sf_surface_physics, 1, icnt, ierr)
call wrf_get_dom_ti_integer (fid, 'SF_SURFACE_PHYSICS', grid%sf_surface_physics, 1, icnt, ierr)

!global attribute HYBRID_OPT exists in WRF V3.9 and later
call ext_ncd_get_dom_ti_integer (fid, 'HYBRID_OPT', grid%hybrid_opt, 1, icnt, ierr)
call wrf_get_dom_ti_integer (fid, 'HYBRID_OPT', grid%hybrid_opt, 1, icnt, ierr)
if ( ierr /= 0 ) then
grid%hybrid_opt = 0
write(unit=message(1),fmt='(A,A)') trim(filename), ' appears to be from earlier than WRF V3.9'
Expand Down
1 change: 1 addition & 0 deletions var/da/da_main/da_wrfvar_io.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ module da_wrfvar_io
input_input, open_w_dataset,output_input, &
input_boundary, output_boundary, output_auxhist4, &
input_auxhist6, input_auxhist4
use module_io, only: wrf_get_dom_ti_integer
use module_state_description, only : p_qv

use da_control, only : trace_use, ierr, var4d, var4d_lbc, num_fgat_time, rootproc
Expand Down