Skip to content

Commit e4f1988

Browse files
Fix bugs
1 parent 8b3e60f commit e4f1988

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: TESTING/EIG/zchkee.f

+4-5
Original file line numberDiff line numberDiff line change
@@ -1090,8 +1090,7 @@ PROGRAM ZCHKEE
10901090
* ..
10911091
* .. Allocatable Arrays ..
10921092
INTEGER AllocateStatus
1093-
DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: RWORK
1094-
DOUBLE PRECISION, DIMENSION(:,:), ALLOCATABLE :: S
1093+
DOUBLE PRECISION, DIMENSION(:), ALLOCATABLE :: RWORK, S
10951094
COMPLEX*16, DIMENSION(:), ALLOCATABLE :: WORK
10961095
COMPLEX*16, DIMENSION(:,:), ALLOCATABLE :: A, B, C
10971096
* ..
@@ -1137,11 +1136,11 @@ PROGRAM ZCHKEE
11371136
* ..
11381137
* .. Allocate memory dynamically ..
11391138
*
1140-
ALLOCATE ( S(NMAX,NMAX), STAT = AllocateStatus )
1139+
ALLOCATE ( S(NMAX*NMAX), STAT = AllocateStatus )
11411140
IF (AllocateStatus /= 0) STOP "*** Not enough memory ***"
1142-
ALLOCATE ( A(NMAX,NMAX), STAT = AllocateStatus )
1141+
ALLOCATE ( A(NMAX*NMAX,NEED), STAT = AllocateStatus )
11431142
IF (AllocateStatus /= 0) STOP "*** Not enough memory ***"
1144-
ALLOCATE ( B(NMAX,NMAX), STAT = AllocateStatus )
1143+
ALLOCATE ( B(NMAX*NMAX,5), STAT = AllocateStatus )
11451144
IF (AllocateStatus /= 0) STOP "*** Not enough memory ***"
11461145
ALLOCATE ( C(NCMAX*NCMAX,NCMAX*NCMAX), STAT = AllocateStatus )
11471146
IF (AllocateStatus /= 0) STOP "*** Not enough memory ***"

0 commit comments

Comments
 (0)