From b85125b39ca64abb1e286a6005bc3c095a22cca7 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Sun, 18 Feb 2018 22:37:00 +0100 Subject: [PATCH] scalapack: fix a minor resize bug in eigenpairs_symmetric() --- source/lac/scalapack.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lac/scalapack.cc b/source/lac/scalapack.cc index a3eef89667..49c5c51e6a 100644 --- a/source/lac/scalapack.cc +++ b/source/lac/scalapack.cc @@ -621,8 +621,8 @@ ScaLAPACKMatrix::eigenpairs_symmetric(const bool compute_eigenvector plamch( &(this->grid->blacs_context), &cmach, abstol); abstol *= 2; ifail.resize(n_rows); - iclustr.resize(n_local_rows * n_local_columns); - gap.resize(n_local_rows * n_local_columns); + iclustr.resize(2 * grid->n_process_rows * grid->n_process_columns); + gap.resize(grid->n_process_rows * grid->n_process_columns); psyevx(&jobz, &range, &uplo, &n_rows, A_loc, &submatrix_row, &submatrix_column, descriptor, &vl, &vu, &il, &iu, &abstol, &m, &nz, &ev[0], &orfac, -- 2.39.5