Skip to content

Commit d5365ba

Browse files
committed
rollback to duplicate interface method (cannot use interfaces for (*) arguments)
1 parent 1af9ea9 commit d5365ba

File tree

2 files changed

+9
-28
lines changed

2 files changed

+9
-28
lines changed

include/common.fypp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ $:"s" if cmplx=="c" else "d" if cmplx=="z" else "x" if cmplx=="y" else "q" if cm
7777
#! BLAS/LAPACK/Linear Algebra Integer Kinds
7878
#:set LINALG_INT_KINDS = ["ilp","ilp64"]
7979
#:set LINALG_INT_TYPES = ["integer({})".format(k) for k in LINALG_INT_KINDS]
80-
#:set LINALG_INT_SUFFIX = ["_{}".format(k) for k in LINALG_INT_KINDS]
80+
#:set LINALG_INT_SUFFIX = ["","_i64"]
8181
#:set LINALG_INT_KINDS_TYPES = list(zip(LINALG_INT_KINDS, LINALG_INT_TYPES, LINALG_INT_SUFFIX))
8282

8383
#! Complex types to be considered during templating

src/stdlib_linalg_blas_aux.fypp

Lines changed: 8 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,20 @@ module stdlib_linalg_blas_aux
88

99
public :: sp,dp,qp,lk,ilp
1010
public :: stdlib_cabs1
11-
#:for rk,rt,ri in RC_KINDS_TYPES
12-
public :: stdlib_i${ri}$amax
13-
#:endfor
1411
public :: stdlib_lsame
15-
public :: stdlib_xerbla
16-
public :: stdlib_xerbla_array
12+
#:for ik,it,ii in LINALG_INT_KINDS_TYPES
13+
#:for rk,rt,ri in RC_KINDS_TYPES
14+
public :: stdlib${ii}$_i${ri}$amax
15+
#:endfor
16+
public :: stdlib${ii}$_xerbla
17+
public :: stdlib${ii}$_xerbla_array
18+
#:endfor
1719

1820
interface stdlib_cabs1
1921
#:for rk,rt,ri in REAL_KINDS_TYPES
2022
module procedure stdlib_${ri}$cabs1
2123
#:endfor
2224
end interface stdlib_cabs1
23-
24-
#:for rk,rt,ri in RC_KINDS_TYPES
25-
interface stdlib_i${ri}$amax
26-
#:for ik,it,ii in LINALG_INT_KINDS_TYPES
27-
module procedure stdlib${ii}$_i${ri}$amax
28-
#:endfor
29-
end interface stdlib_i${ri}$amax
30-
#:endfor
31-
32-
interface stdlib_xerbla
33-
#:for ik,it,ii in LINALG_INT_KINDS_TYPES
34-
module procedure stdlib${ii}$_xerbla
35-
#:endfor
36-
end interface stdlib_xerbla
37-
38-
interface stdlib_xerbla_array
39-
#:for ik,it,ii in LINALG_INT_KINDS_TYPES
40-
module procedure stdlib${ii}$_xerbla_array
41-
#:endfor
42-
end interface stdlib_xerbla_array
43-
4425

4526
contains
4627

@@ -165,7 +146,7 @@ module stdlib_linalg_blas_aux
165146
do i = 1, min( srname_len, len( srname ) )
166147
srname( i:i ) = srname_array( i )
167148
end do
168-
call stdlib_xerbla( srname, info )
149+
call stdlib${ii}$_xerbla( srname, info )
169150
return
170151
end subroutine stdlib${ii}$_xerbla_array
171152

0 commit comments

Comments
 (0)