From 89c4e9b16863fcd684404cc405d26676aefc5331 Mon Sep 17 00:00:00 2001 From: Yong-Chull Jang Date: Thu, 21 Dec 2017 23:13:39 -0500 Subject: [PATCH] first complete version of IRBL; requires practical test and clean up --- .../ImplicitlyRestartedBlockLanczos.h | 31 ++++++++++--------- tests/lanczos/Test_dwf_block_lanczos.cc | 6 ++-- tests/lanczos/Test_dwf_lanczos.cc | 8 ++--- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h index 8d7a41c4..694f14fc 100644 --- a/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h +++ b/lib/algorithms/iterative/ImplicitlyRestartedBlockLanczos.h @@ -198,18 +198,7 @@ until convergence // clog << "ckpt A2: lmd[" << k << "] = " << lmd[0][k] << '\n'; //} - // residual vector -#if 1 // ypj[fixme] temporary to check a case when block has one vector - for ( int i=0; i HermOp(Ddwf); // SchurDiagMooeeOperator HermOp(Ddwf); - const int Nstop = 50; + const int Nstop = 120; const int Nu = 1; - const int Nk = 200; - const int Np = 200; + const int Nk = 240; + const int Np = 240; const int Nm = Nk+Np; const int MaxIt= 10; RealD resid = 1.0e-8; diff --git a/tests/lanczos/Test_dwf_lanczos.cc b/tests/lanczos/Test_dwf_lanczos.cc index 6c65608d..58219007 100644 --- a/tests/lanczos/Test_dwf_lanczos.cc +++ b/tests/lanczos/Test_dwf_lanczos.cc @@ -75,11 +75,11 @@ int main (int argc, char ** argv) SchurDiagTwoOperator HermOp(Ddwf); // SchurDiagMooeeOperator HermOp(Ddwf); - const int Nstop = 50; - const int Nk = 200; - const int Np = 200; + const int Nstop = 120; + const int Nk = 240; + const int Np = 240; const int Nm = Nk+Np; - const int MaxIt= 100; + const int MaxIt= 10; RealD resid = 1.0e-8; std::vector Coeffs { 0.,-1.};