From 2f4cbeb4d5cbe8685e6e30431deeda18e5d739c6 Mon Sep 17 00:00:00 2001 From: Chulwoo Jung Date: Mon, 12 Jun 2017 18:25:18 -0400 Subject: [PATCH] Minor changes --- .../iterative/ImplicitlyRestartedLanczos.h | 94 +++++++++---------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h index a6b330b3..29510d18 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedLanczos.h @@ -493,7 +493,7 @@ public: // needs more memory void Rotate0( - int _Nm, +// int _Nm, DenseVector& Qt, DenseVector& evec, int j0, int j1, @@ -501,19 +501,19 @@ void Rotate0( ) { GridBase *grid = evec[0]._grid; - DenseVector B(_Nm,grid); // waste of space replicating + DenseVector B(Nm,grid); // waste of space replicating if (0) { // old implementation without blocking - for(int i=0; i<(_Nm); ++i) B[i] = 0.0; + for(int i=0; i<(Nm); ++i) B[i] = 0.0; for(int j=j0; joSites();ss++){ for(int jj=j0; jj& Qt, DenseVector& evec, //int k1, int k2 @@ -544,18 +544,18 @@ void Rotate( GridBase *grid = evec[0]._grid; typedef typename Field::vector_object vobj; assert(j0>=0); - assert(j1<_Nm); + assert(j1 B(_Nm); + std::vector < vobj > B(Nm); #pragma omp for for(int ss=0;ss < grid->oSites();ss++){ for(int j=j0; j& Qt, DenseVector& evec, int k1, int k2 @@ -607,7 +607,7 @@ PARALLEL_FOR_LOOP } } -void ConvCheck0( int Nk, int Nm, +void ConvCheck0( int _Nk, DenseVector& Qt, DenseVector& evec, DenseVector &eval2, @@ -619,10 +619,10 @@ void ConvCheck0( int Nk, int Nm, DenseVector B(Nm,grid); // waste of space replicating Field v(grid); if (0) { - for(int k = 0; koSites();ss++){ - for(int jj=0; jj& eval, DenseVector& evec ) @@ -686,7 +686,7 @@ void FinalCheck( int Nk, int _Nm, GridBase *grid = evec[0]._grid; Field v(grid); Field B(grid); - for(int j = 0; joSites()); + 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, @@ -795,13 +795,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