Skip to content

Commit

Permalink
Don't regenerate grib index every time
Browse files Browse the repository at this point in the history
Fix #104 

There is a large performance penalty in re-generating the index every time.
  • Loading branch information
kgerheiser authored Sep 7, 2021
1 parent 4a45dbf commit 3b73984
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/getidx.f
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,6 @@ END SUBROUTINE GETG2IR
LUX=0
ENDIF

IF (ASSOCIATED(IDXLIST(LUGB)%CBUF)) then
DEALLOCATE(IDXLIST(LUGB)%CBUF)
end if

IF (LUGI.LT.0) THEN ! Force re-read of index from indexfile
! associated with unit abs(lugi)
IF ( ASSOCIATED( IDXLIST(LUGB)%CBUF ) )
Expand Down

0 comments on commit 3b73984

Please sign in to comment.