Skip to content

Commit

Permalink
dont end csv parser if not active
Browse files Browse the repository at this point in the history
  • Loading branch information
casper-boon committed Sep 24, 2021
1 parent 136cbb3 commit 2059fbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/aed_csv_reader.F90
Original file line number Diff line number Diff line change
Expand Up @@ -615,8 +615,7 @@ LOGICAL FUNCTION aed_csv_close(unit)
!-------------------------------------------------------------------------------
!BEGIN
aedr => units(unit)%p
aed_csv_close = end_parse(aedr)
IF (ASSOCIATED(aedr)) DEALLOCATE(aedr)
IF (ASSOCIATED(aedr)) aed_csv_close = end_parse(aedr)
NULLIFY(aedr)
units(unit)%p => aedr
END FUNCTION aed_csv_close
Expand Down

0 comments on commit 2059fbb

Please sign in to comment.