From 00bb71e5afb74297455ac5772c928b363516f5a9 Mon Sep 17 00:00:00 2001 From: Chulwoo Jung Date: Tue, 6 Jun 2017 16:26:41 -0400 Subject: [PATCH] Checking in before reworking lapack interface --- .../iterative/ImplicitlyRestartedLanczos.h | 40 ++++++------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h index 03f2bf35..12b1c337 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h @@ -493,11 +493,9 @@ void Rotate0( int _Nm, DenseVector& Qt, DenseVector& evec, -//int k1, int k2 int j0, int j1, int _Nk ) -// void Rotate0( int Nm, DenseVector& Qt, DenseVector& evec, int k1, int k2) { GridBase *grid = evec[0]._grid; DenseVector B(_Nm,grid); // waste of space replicating @@ -547,17 +545,9 @@ void Rotate( #pragma omp parallel { -// int thr=GridThread::GetThreads(); -// printf("thr=%d ss=%d me=%d\n",thr,ss,me);fflush(stdout); -// std::cout<oSites()); + assert( (_Nm*thr)oSites()); // auto B2 = evec[0]._odata[0]; -// std::vector < decltype( B2 ) > B(Nm,B2); - for(int j=0; j B(_Nm,B2); + for(int j=0; j& Qt, DenseVector& evec, DenseVector &eval, @@ -802,13 +792,13 @@ void ConvRotate( int Nk, int Nm, typedef typename Field::vector_object vobj; #pragma omp parallel { - std::vector < vobj > B(Nm); + std::vector < vobj > B(_Nm); #pragma omp for for(int ss=0;ss < grid->oSites();ss++){ // for(int j=0; j