Skip to content

Commit

Permalink
increase maximum message size in debufr utility
Browse files Browse the repository at this point in the history
  • Loading branch information
jbathegit committed Oct 25, 2024
1 parent 2d9b1a6 commit 910ae58
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/jumplink.F90
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,9 @@ subroutine makestab
! Set up expansion segments for type 'SUB', 'DRP', and 'DRS' nodes.

newn = 0

do k=1,maxjl
knt(k) = 0
enddo
do n=1,ntab
iseq(n,1) = 0
iseq(n,2) = 0
Expand All @@ -215,15 +217,11 @@ subroutine makestab
iseq(n,1) = newn+1
noda = n
node = n+1
do k=1,maxjl
knt(k) = 0
enddo
if(typ(noda)=='REP') then
knt(node) = knti(noda)
else
knt(node) = 1
endif

outer: do while (.true.)
newn = newn+1
if(newn>maxjl) then
Expand Down
7 changes: 6 additions & 1 deletion src/openclosebf.F90
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,12 @@ subroutine rewnbf(lunit,isr)
call bort(bort_str)
endif
elseif(isr==1) then
if(junn==0 .or. jsr(junn)/=1) then
if(junn==0) then
write(bort_str,'("BUFRLIB: REWNBF - ATTEMPING TO RESTORE '// &
'PARAMETERS TO BUFR FILE WHICH WERE NEVER SAVED (UNIT",I3,")")') lunit
call bort(bort_str)
endif
if(jsr(junn)/=1) then
write(bort_str,'("BUFRLIB: REWNBF - ATTEMPING TO RESTORE '// &
'PARAMETERS TO BUFR FILE WHICH WERE NEVER SAVED (UNIT",I3,")")') lunit
call bort(bort_str)
Expand Down
2 changes: 1 addition & 1 deletion utils/debufr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ subroutine fdebufr_c ( ofile, lenof, tbldir, lentd, tblfil, lentf, prmstg, lenps

implicit none

integer, parameter :: mxbf = 2500000
integer, parameter :: mxbf = 7500000
integer, parameter :: mxbfd4 = mxbf/4
integer, parameter :: mxds3 = 500
integer, parameter :: mxprms = 20
Expand Down

0 comments on commit 910ae58

Please sign in to comment.