Skip to content

Commit 7497e9d

Browse files
committed
Rename function to satisfy intel compilers
1 parent 3a90b66 commit 7497e9d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/stdlib_io_np.fypp

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,10 @@ module stdlib_io_np
144144
end
145145
end interface
146146

147-
interface allocate_array
147+
interface allocate_array_by_shape
148148
#:for k1, t1 in KINDS_TYPES
149149
#:for rank in RANKS
150-
module subroutine allocate_array_${t1[0]}$${k1}$_${rank}$ (array, vshape, stat)
150+
module subroutine allocate_array_by_shape_${t1[0]}$${k1}$_${rank}$ (array, vshape, stat)
151151
!> Instance of the array to be allocated.
152152
${t1}$, allocatable, intent(out) :: array${ranksuffix(rank)}$
153153
!> Dimensions to allocate for.

src/stdlib_io_np_load.fypp

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ contains
5757
exit catch
5858
end if
5959

60-
call allocate_array(array, vshape, stat)
60+
call allocate_array_by_shape(array, vshape, stat)
6161
if (stat /= 0) then
6262
msg = "Failed to allocate array of type '"//vtype//"' "//&
6363
& "with total size of "//to_string(product(vshape))
@@ -85,7 +85,7 @@ contains
8585

8686
#:for k1, t1 in KINDS_TYPES
8787
#:for rank in RANKS
88-
module subroutine allocate_array_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
88+
module subroutine allocate_array_by_shape_${t1[0]}$${k1}$_${rank}$(array, vshape, stat)
8989
${t1}$, allocatable, intent(out) :: array${ranksuffix(rank)}$
9090
integer, intent(in) :: vshape(:)
9191
integer, intent(out) :: stat
@@ -169,7 +169,7 @@ contains
169169
block
170170
${t1}$, allocatable :: array${ranksuffix(rank)}$
171171

172-
call allocate_array(array, vshape, stat)
172+
call allocate_array_by_shape(array, vshape, stat)
173173
if (stat /= 0) then
174174
msg = "Failed to allocate array of type '"//this_type//"'."; return
175175
end if

0 commit comments

Comments
 (0)