Skip to content

Commit

Permalink
Fix bug in prepare_candidates; it affected convergence for block size…
Browse files Browse the repository at this point in the history
… > 1
  • Loading branch information
eromero-vlc committed Feb 25, 2024
1 parent 34ea13a commit 8c75a5d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Make_flags
Expand Up @@ -30,7 +30,7 @@ CC ?= cc
F77 := gfortran
FC := gfortran
DEFINES ?= -DF77UNDERSCORE
CFLAGS ?= -O -fPIC -DNDEBUG
CFLAGS ?= -O0 -g -fPIC
FFLAGS ?= -fno-second-underscore -O
PRIMME_WITH_HALF ?= no
ifeq ($(PRIMME_WITH_HALF), yes)
Expand Down
2 changes: 1 addition & 1 deletion examples/Makefile
Expand Up @@ -10,7 +10,7 @@ INCLUDE := -I../include
FINCLUDE := -I../include
LIBS := ../lib/libprimme.a $(LIBS)

EXAMPLES_C = ex_eigs_dseq ex_eigs_zseq ex_eigs_zseq_normal ex_svds_dseq ex_svds_zseq
EXAMPLES_C = ex_eigs_dseq ex_eigs_zseq ex_eigs_zseq_normal ex_svds_dseq ex_svds_zseq ex_mine
EXAMPLES_CXX = ex_eigs_zseqxx ex_svds_zseqxx
EXAMPLES_F = ex_eigs_dseqf77 ex_eigs_zseqf77 ex_svds_dseqf77 ex_svds_zseqf77 ex_eigs_dseqf90 ex_svds_dseqf90

Expand Down
2 changes: 1 addition & 1 deletion src/eigs/main_iter.c
Expand Up @@ -1533,7 +1533,7 @@ STATIC int prepare_candidates(SCALAR *V, PRIMME_INT ldV, SCALAR *W,
*recentlyConverged = 0;
while (1) {
/* Recompute flags in iev(*blockSize:*blockSize+blockNormsize) */
for (i=*blockSize; i<blockNormsSize; i++)
for (i = *blockSize; i < *blockSize+blockNormsSize; i++) {
flagsBlock[i-*blockSize] = flags[iev[i]];
CHKERR(check_convergence_Sprimme(X ? &X[(*blockSize) * ldV] : NULL, ldV,
computeXR, R ? &R[(*blockSize) * ldW] : NULL, ldW, computeXR, evecs,
Expand Down

0 comments on commit 8c75a5d

Please sign in to comment.