NOAA-EMC / NCEPLIBS-grib_util

This is a collection of NCEP GRIB related utilities.
Other
21 stars 11 forks source link

second unit of time range is determined, but never used in degrib2 subroutine prvtime() #222

Closed edwardhartnett closed 1 year ago

edwardhartnett commented 1 year ago

We have this code:

  ! Determine second unit of time range.
  iutpos2 = ipos2(ipdtn)
  selectcase(ipdtmpl(iutpos2))
  case (0)
     tunit2 = "minute"
     iunit2 = 1
  case (1)
     tunit2 = "hour"
     iunit2 = 1
  case (2)
     tunit2 = "day"
     iunit2 = 1
  case (3)
     tunit2 = "month"
     iuni2t2 = 1
  case (4)
     tunit2 = "year"
     iunit2 = 1
  case (10)
     tunit2 = "hour"
     iunit2 = 3
  case (11)
     tunit2 = "hour"
     iunit2 = 6
  case default
     tunit2 = "hour"
     iunit2 = 1
  end select

However, tunit2 is never used (although iunit2 is used).