Skip to content

Commit

Permalink
Merge pull request #108 from NOAA-EMC/bugfix/getidx-performance
Browse files Browse the repository at this point in the history
Don't deallocate/reallocate index every time
  • Loading branch information
kgerheiser authored Sep 7, 2021
2 parents 4a45dbf + 3b73984 commit e184a5d
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 e184a5d

Please sign in to comment.