Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Fixed already allocated bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Sep 9, 2022
1 parent 2201b8b commit 8427be3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/symba/symba_setup.f90
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ module subroutine symba_setup_encounter_list(self, n)
call encounter_setup_list(self, n)
if (n <= 0_I8B) return

if (allocated(self%level)) deallocate(self%level)
allocate(self%level(n))

self%level(:) = -1
Expand Down

0 comments on commit 8427be3

Please sign in to comment.