Skip to content

Commit

Permalink
GitHub Issue #280: Add code to GSI IO interface with fv3lam to handle…
Browse files Browse the repository at this point in the history
… subdomain restart files.
  • Loading branch information
hu5970 committed Jan 26, 2022
1 parent 40deca7 commit 4028fc7
Show file tree
Hide file tree
Showing 5 changed files with 430 additions and 77 deletions.
5 changes: 4 additions & 1 deletion src/gsi/gridmod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ module gridmod
! 2019-09-04 martin - add write_fv3_incr to write netCDF increment rather than analysis in NEMSIO format
! 2019-09-23 martin - add use_gfs_ncio to read global first guess from netCDF file
! 2020-12-18 Hu - add grid_type_fv3_regional
! 2021-12-30 Hu - add fv3_io_layout_y
!
!
!
Expand Down Expand Up @@ -146,7 +147,7 @@ module gridmod
public :: nlat_regional,nlon_regional,update_regsfc,half_grid,gencode
public :: diagnostic_reg,nmmb_reference_grid,filled_grid
public :: grid_ratio_nmmb,isd_g,isc_g,dx_gfs,lpl_gfs,nsig5,nmmb_verttype
public :: grid_ratio_fv3_regional,fv3_regional,grid_type_fv3_regional
public :: grid_ratio_fv3_regional,fv3_io_layout_y,fv3_regional,grid_type_fv3_regional
public :: l_reg_update_hydro_delz
public :: nsig3,nsig4,grid_ratio_wrfmass
public :: use_gfs_ozone,check_gfs_ozone_date,regional_ozone,nvege_type
Expand Down Expand Up @@ -205,6 +206,7 @@ module gridmod
character(1) nmmb_reference_grid ! ='H': use nmmb H grid as reference for analysis grid
! ='V': use nmmb V grid as reference for analysis grid
real(r_kind) grid_ratio_fv3_regional ! ratio of analysis grid to fv3 model grid in fv3 grid units.
integer(i_kind) fv3_io_layout_y ! = io_layout(2) of fv3 regional model (subdomain y direction).
integer(i_kind) grid_type_fv3_regional! type of fv3 model grid (grid orientation).
real(r_kind) grid_ratio_nmmb ! ratio of analysis grid to nmmb model grid in nmmb model grid units.
real(r_kind) grid_ratio_wrfmass ! ratio of analysis grid to wrf model grid in wrf mass grid units.
Expand Down Expand Up @@ -463,6 +465,7 @@ subroutine init_grid
filled_grid = .false.
half_grid = .false.
grid_ratio_fv3_regional = one
fv3_io_layout_y = 1
grid_type_fv3_regional = 0
grid_ratio_nmmb = sqrt(two)
grid_ratio_wrfmass = one
Expand Down
Loading

0 comments on commit 4028fc7

Please sign in to comment.