Skip to content

Commit 0577a4b

Browse files
committed
replace iamax by maxloc
1 parent 4982568 commit 0577a4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/odrpack_core.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4667,7 +4667,7 @@ subroutine lcstep &
46674667

46684668
use odrpack_kinds, only: zero, one
46694669
use linpack, only: dchex, dqrdc, dqrsl, dtrco, dtrsl
4670-
use blas_interfaces, only: dnrm2, drot, drotg, idamax
4670+
use blas_interfaces, only: dnrm2, drot, drotg
46714671

46724672
integer, intent(in) :: n
46734673
!! The number of observations.
@@ -4911,7 +4911,7 @@ subroutine lcstep &
49114911
call dtrco(tfjacb, n*nq, kp, rcond, u, 1)
49124912
if (rcond <= epsfcn) then
49134913
elim = .true.
4914-
imax = idamax(kp, u, 1)
4914+
imax = maxloc(u(1:kp), dim=1)
49154915
! IMAX is the column to remove - use DCHEX and fix KPVT
49164916
if (imax /= kp) then
49174917
call dchex(tfjacb, n*nq, kp, imax, kp, wrk2, n*nq, 1, qraux, wrk3, 2)

0 commit comments

Comments
 (0)