Skip to content

Commit 97c3f2c

Browse files
committed
Use generic again
1 parent ceef8b4 commit 97c3f2c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/stdlib_array.fypp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ module stdlib_array
2020
contains
2121
#:for k1, t1 in KINDS_TYPES
2222
#:for rank in RANKS
23+
generic :: allocate_array => allocate_array_${t1[0]}$${k1}$_${rank}$
2324
procedure :: allocate_array_${t1[0]}$${k1}$_${rank}$
2425
#:endfor
2526
#:endfor

src/stdlib_io_np_load.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ contains
180180
& 'with total size of '//to_string(product(vshape)); return
181181
end if
182182

183-
call arrays(i)%allocate_array_${t1[0]}$${k1}$_${rank}$(array, stat, msg)
183+
call arrays(i)%allocate_array(array, stat, msg)
184184
if (stat /= 0) then
185185
msg = "Failed to allocate array of type '"//this_type//"' "//&
186186
& 'with total size of '//to_string(product(vshape)); return

0 commit comments

Comments
 (0)