Skip to content

Commit

Permalink
Use generic again
Browse files Browse the repository at this point in the history
  • Loading branch information
minhqdao committed Aug 2, 2024
1 parent ceef8b4 commit 97c3f2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/stdlib_array.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ 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_${t1[0]}$${k1}$_${rank}$(array, stat, msg)
call arrays(i)%allocate_array(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 97c3f2c

Please sign in to comment.