Skip to content

Commit 1309b6c

Browse files
committed
fixed an DLARFG index bug in dlaqp2rk.f and inserted debug statement in dlaqp3rk.f
1 parent 231dd99 commit 1309b6c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

SRC/dlaqp2rk.f

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,10 @@ SUBROUTINE DLAQP2RK( M, N, NRHS, IOFFSET, KMAX, ABSTOL, RELTOL,
389389
KMAX = MIN( KMAX, MINMNFACT )
390390
TOL3Z = SQRT( DLAMCH( 'Epsilon' ) )
391391
HUGEVAL = DLAMCH( 'Overflow' )
392+
393+
WRITE(*,*) "####_#### Enter DLAQP2RK "
394+
WRITE(*,*) " (M, N, NRHS, IOFFSET, KMAX, KP1, MAXC2NRM)",
395+
$ M, N, NRHS, IOFFSET, KMAX, KP1, MAXC2NRM
392396
*
393397
* Compute the factorization, KK is the lomn loop index.
394398
*
@@ -567,14 +571,14 @@ SUBROUTINE DLAQP2RK( M, N, NRHS, IOFFSET, KMAX, ABSTOL, RELTOL,
567571
* the elementary reflector would be an identity matrix,
568572
* and TAU(KK) = ZERO.
569573
*
570-
IF( KK.LT.M ) THEN
574+
IF( I.LT.M ) THEN
571575
CALL DLARFG( M-I+1, A( I, KK ), A( I+1, KK ), 1,
572576
$ TAU( KK ) )
573577
ELSE
574578
TAU( KK ) = ZERO
575579
END IF
576580

577-
WRITE(*,*) "## DLAQP2RK (K, TAU(Kk) )=", KK, TAU(KK)
581+
WRITE(*,*) "## DLAQP2RK (KK, TAU(Kk) )=", KK, TAU(KK)
578582
*
579583
* Check if TAU(KK) contains NaN, set INFO parameter
580584
* to the column number where NaN is found and return from

SRC/dlaqp3rk.f

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,12 @@ SUBROUTINE DLAQP3RK( M, N, NRHS, IOFFSET, NB, ABSTOL,
444444
NB = MIN( NB, MINMNFACT )
445445
TOL3Z = SQRT( DLAMCH( 'Epsilon' ) )
446446
HUGEVAL = DLAMCH( 'Overflow' )
447+
448+
WRITE(*,*) "$$$$_$$$$ Enter DLAQP3RK "
449+
WRITE(*,*) " (M, N, NRHS, IOFFSET, NB, KP1, MAXC2NRM)",
450+
$ M, N, NRHS, IOFFSET, NB, KP1, MAXC2NRM
451+
452+
447453
*
448454
* Compute factorization in a while loop over NB columns,
449455
* K is the column index in the block A(1:M,1:N).

0 commit comments

Comments
 (0)