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

Update to bufr/11.7.0, add safeguard to avoid out of bounds reference… #475

Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion modulefiles/gsi_common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Load common modules to build GSI on all machines

local netcdf_ver=os.getenv("netcdf_ver") or "4.7.4"

local bufr_ver=os.getenv("bufr_ver") or "11.5.0"
local bufr_ver=os.getenv("bufr_ver") or "11.7.0"
RussTreadon-NOAA marked this conversation as resolved.
Show resolved Hide resolved
local bacio_ver=os.getenv("bacio_ver") or "2.4.1"
local w3emc_ver=os.getenv("w3emc_ver") or "2.9.1"
local sp_ver=os.getenv("sp_ver") or "2.3.3"
Expand Down
6 changes: 5 additions & 1 deletion src/gsi/read_prepbufr.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3057,7 +3057,11 @@ subroutine read_prepbufr(nread,ndata,nodata,infile,obstype,lunout,twindin,sis,&

do k=1,ndata
ikx=nint(cdata_out(10,k))
itype=ictype(ikx)
if (ikx>0) then
itype=ictype(ikx)
else
itype=0
endif
if( itype ==230 .or. itype ==231 .or. itype ==233) then
prest=r10*exp(cdata_out(4,k))
if (prest <100.0_r_kind) cycle
Expand Down