From b7f8c5b823dbc0e0b22f7461bb7b7faf9fcc1e39 Mon Sep 17 00:00:00 2001 From: Guido Cossu Date: Fri, 12 Jan 2018 14:38:27 +0000 Subject: [PATCH] Modify test to merge with the new Lanczos interface --- tests/lanczos/Test_WCMultiRep_lanczos.cc | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/lanczos/Test_WCMultiRep_lanczos.cc b/tests/lanczos/Test_WCMultiRep_lanczos.cc index 98180db1..b6d69aee 100644 --- a/tests/lanczos/Test_WCMultiRep_lanczos.cc +++ b/tests/lanczos/Test_WCMultiRep_lanczos.cc @@ -124,13 +124,21 @@ NerscHmcCheckpointer Checkpoint(CPparams); std::vector Coeffs{0, -1.}; Polynomial FundPolyX(Coeffs); - Chebyshev FundCheb(0.0, 10., 12); - ImplicitlyRestartedLanczos IRL_Fund(HermOpFund, FundPolyX, Nstop, Nk, Nm, + //Chebyshev FundCheb(0.0, 10., 12); + + FunctionHermOp FundPolyXOp(FundPolyX,HermOpFund); + PlainHermOp FundOp (HermOpFund); + + ImplicitlyRestartedLanczos IRL_Fund(FundOp, FundPolyXOp, Nstop, Nk, Nm, resid, MaxIt); Polynomial ASPolyX(Coeffs); - Chebyshev ASCheb(0.0, 10., 12); - ImplicitlyRestartedLanczos IRL_AS(HermOpAS, ASPolyX, Nstop, Nk, Nm, + //Chebyshev ASCheb(0.0, 10., 12); + + FunctionHermOp ASPolyXOp(ASPolyX,HermOpAS); + PlainHermOp ASOp (HermOpAS); + + ImplicitlyRestartedLanczos IRL_AS(ASOp, ASPolyXOp, Nstop, Nk, Nm, resid, MaxIt); std::vector Fundeval(Nm);