Closed
Description
Description
I have been returning this error when trying to call the sort_index subroutine. I have no issues calling sort or ord_sort using the below steps
Steps to reproduce:
program test_sort
use stdlib_sorting
implicit none
integer, dimension(3) :: idx
integer :: i
double precision, dimension(3) :: A
A(1) = 3.0d0
A(2) = 2.0d0
A(3) = 1.5d0
call sort_index(A, idx) ! does not work
! call sort(A) ! works
do i = 1,3
print *, A(i), idx(i)
end do
end program test_sort
compiled with
gfortran -o test_sort test_sort.f90 $(STDLIB64)/libfortran_stdlib.a -I$(STDLIBINC)
returns
test_sort.f90:11:25
11 | call sort_index(A, idx)
| 1
Error: There is no specific subroutine for the generic 'sort index' at (1)
### Expected Behaviour
I would expect this at stdout:
1.50000000 3
2.00000000 2
3.00000000 1
### Version of stdlib
Master branch, commit: 7143c086a4bac2b0f23660c4a7092d9561b3399a
### Platform and Architecture
GNU/Linux, 64 bit
### Additional Information
_No response_