Skip to content

Commit

Permalink
Not use generic
Browse files Browse the repository at this point in the history
  • Loading branch information
minhqdao committed Aug 2, 2024
1 parent f1e199f commit 44f2627
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/stdlib_array.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ module stdlib_array
contains
#:for k1, t1 in KINDS_TYPES
#:for rank in RANKS
generic :: allocate_array => allocate_array_${t1[0]}$${k1}$_${rank}$
procedure :: allocate_array_${t1[0]}$${k1}$_${rank}$
#:endfor
#:endfor
Expand Down
2 changes: 1 addition & 1 deletion src/stdlib_io_np_load.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ contains
& 'with total size of '//to_string(product(vshape)); return
end if

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

0 comments on commit 44f2627

Please sign in to comment.