Skip to content

Commit

Permalink
Only allocate once
Browse files Browse the repository at this point in the history
  • Loading branch information
minhqdao committed Aug 3, 2024
1 parent 16ac793 commit 41211db
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/stdlib_array_allocation.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ contains
msg = "Failed to allocate array"; return
end if

allocate (t_array_${t1[0]}$${k1}$_${rank}$ :: wrapper%array, stat=stat)
if (stat /= 0) then
msg = 'Failed to allocate array.'; return
end if

select type (typed_array => wrapper%array)
class is (t_array_${t1[0]}$${k1}$_${rank}$)
typed_array%values = source_array
Expand Down

0 comments on commit 41211db

Please sign in to comment.