Skip to content

Commit

Permalink
Change gbyte to g2_gbytec
Browse files Browse the repository at this point in the history
gbyte comes from w3emc and operates on words, while g2_gbytec operates on individual bytes and is how cnvgrib passes arguments to the function. gbytec originally came from g2, but the name was changed to g2_gbytec, and w3emc happened to have the same function name, so no error was generated about a missing symbol. This function is only called when using an ensemble template, so it was never noticed.
  • Loading branch information
kgerheiser committed Mar 22, 2022
1 parent cb892ed commit a8581fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cnvgrib/cnv12.F90
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ subroutine cnv12(ifl1, ifl2, ipack, usemiss, imiss, uvvect, table_ver)
ensemble = .true.
endif
if (ensemble) then ! ensemble forecast
call gbyte(cgribin(9), ilast, 0, 24)
call g2_gbytec(cgribin(9), ilast, 0, 24)
call pdseup(kens, kprob, xprob, kclust, kmembr, ilast, cgribin(9))
if (kens(2) .eq. 1) listsec1(13) = 3
if (kens(2) .eq. 2 .OR. kens(2) .eq. 3) listsec1(13) = 4
Expand Down

0 comments on commit a8581fd

Please sign in to comment.