Skip to content

Commit 249314c

Browse files
authored
Merge pull request #24 from joseeroman/jose/fix-workspace-query
Fix workspace query in PCHEEV, PZHEEV
2 parents d9c9d17 + 0b52bf0 commit 249314c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SRC/pcheev.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ SUBROUTINE PCHEEV( JOBZ, UPLO, N, A, IA, JA, DESCA, W, Z, IZ, JZ,
379379
* REAL work space for CSTEQR2
380380
*
381381
IF( WANTZ ) THEN
382-
RSIZECSTEQR2 = MIN( 1, 2*N-2 )
382+
RSIZECSTEQR2 = MAX( 1, 2*N-2 )
383383
ELSE
384384
RSIZECSTEQR2 = 0
385385
END IF

SRC/pzheev.f

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ SUBROUTINE PZHEEV( JOBZ, UPLO, N, A, IA, JA, DESCA, W, Z, IZ, JZ,
379379
* DOUBLE PRECISION work space for ZSTEQR2
380380
*
381381
IF( WANTZ ) THEN
382-
RSIZEZSTEQR2 = MIN( 1, 2*N-2 )
382+
RSIZEZSTEQR2 = MAX( 1, 2*N-2 )
383383
ELSE
384384
RSIZEZSTEQR2 = 0
385385
END IF

0 commit comments

Comments
 (0)