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

Commit

Permalink
updated resizer to double the size each time it needs to grow
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 2, 2022
1 parent 39ca553 commit 538310c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/encounter/encounter_util.f90
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ module subroutine encounter_util_resize_storage(self, nnew)
end if

if (nnew > nold) then
allocate(encounter_storage(nnew) :: tmp)
allocate(encounter_storage(2 * nnew) :: tmp)
if (lmalloc) then
do i = 1, nold
if (allocated(self%frame(i)%item)) tmp%frame(i) = self%frame(i)%item
Expand Down

0 comments on commit 538310c

Please sign in to comment.