From 25f71913b75fb9ef4030f63bcfba38ae5ccc08f5 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 4 Jan 2024 12:01:17 -0500 Subject: [PATCH] MultiRHS coarse --- tests/debug/Test_general_coarse.cc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/debug/Test_general_coarse.cc b/tests/debug/Test_general_coarse.cc index 38425d0d..28130a3c 100644 --- a/tests/debug/Test_general_coarse.cc +++ b/tests/debug/Test_general_coarse.cc @@ -243,9 +243,14 @@ int main (int argc, char ** argv) Coordinate rhSimd({vComplex::Nsimd(),1, 1,1,1,1}); GridCartesian *CoarseMrhs = new GridCartesian(rhLatt,rhSimd,rhMpi); + MultiGeneralCoarsenedMatrix mrhs(LittleDiracOp,CoarseMrhs); - + typedef decltype(mrhs) MultiGeneralCoarsenedMatrix_t; + + ////////////////////////////////////////// + // Test against single RHS + ////////////////////////////////////////// { GridParallelRNG rh_CRNG(CoarseMrhs);rh_CRNG.SeedFixedIntegers(cseeds); CoarseVector rh_phi(CoarseMrhs); @@ -287,7 +292,22 @@ int main (int argc, char ** argv) std::cout << nrhs<< " srhs " << t1/ncall/nrhs <<" us"< HermMatrix; + HermMatrix MrhsCoarseOp (mrhs); + GridParallelRNG rh_CRNG(CoarseMrhs);rh_CRNG.SeedFixedIntegers(cseeds); + ConjugateGradient mrhsCG(1.0e-8,2000,true); + CoarseVector rh_res(CoarseMrhs); + CoarseVector rh_src(CoarseMrhs); + random(rh_CRNG,rh_src); + rh_res= Zero(); + mrhsCG(MrhsCoarseOp,rh_src,rh_res); + } + std::cout<