Skip to content

Commit 000ae65

Browse files
author
Kirana Bergstrom
committed
took out extra spaces, added workspace calculation condition
1 parent 079d441 commit 000ae65

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

SRC/dbdsdc.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ SUBROUTINE DBDSDC( UPLO, COMPQ, N, D, E, U, LDU, VT, LDVT, Q, IQ,
316316
END IF
317317
IF( IUPLO.EQ.2 ) THEN
318318
QSTART = 5
319-
WSTART = 2*N - 1
319+
IF( ICOMPQ .EQ. 2 ) WSTART = 2*N - 1
320320
DO 10 I = 1, N - 1
321321
CALL DLARTG( D( I ), E( I ), CS, SN, R )
322322
D( I ) = R

SRC/sbdsdc.f

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,12 +311,12 @@ SUBROUTINE SBDSDC( UPLO, COMPQ, N, D, E, U, LDU, VT, LDVT, Q, IQ,
311311
WSTART = 1
312312
QSTART = 3
313313
IF( ICOMPQ.EQ.1 ) THEN
314-
CALL SCOPY( N, D, 1, Q( 1 ), 1 )
314+
CALL SCOPY( N, D, 1, Q( 1 ), 1 )
315315
CALL SCOPY( N-1, E, 1, Q( N+1 ), 1 )
316316
END IF
317317
IF( IUPLO.EQ.2 ) THEN
318318
QSTART = 5
319-
WSTART = 2*N - 1
319+
IF( ICOMPQ .EQ. 2 ) WSTART = 2*N - 1
320320
DO 10 I = 1, N - 1
321321
CALL SLARTG( D( I ), E( I ), CS, SN, R )
322322
D( I ) = R

0 commit comments

Comments
 (0)