From b82eee4733e5c6115a5b9323cc22cf6ce47b6ff3 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Thu, 5 Oct 2023 16:54:14 -0400 Subject: [PATCH] Hermitian dealing with --- Grid/algorithms/GeneralCoarsenedMatrix.h | 34 +++++++++++++----------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/Grid/algorithms/GeneralCoarsenedMatrix.h b/Grid/algorithms/GeneralCoarsenedMatrix.h index 90074e09..b87f4cb3 100644 --- a/Grid/algorithms/GeneralCoarsenedMatrix.h +++ b/Grid/algorithms/GeneralCoarsenedMatrix.h @@ -226,6 +226,7 @@ public: void ProjectNearestNeighbour(RealD shift, GeneralCoarseOp &CopyMe) { int nfound=0; + std::cout << " ProjectNearestNeighbour "<< CopyMe._A[0].Grid()< &A,const CoarseVector &in, CoarseVector &out) { @@ -343,15 +345,15 @@ public: text+=usecond(); ttot+=usecond(); - std::cout << GridLogMessage<<"Coarse Mult Aviews "< > &linop, - Aggregation & Subspace) + void CoarsenOperator(LinearOperatorBase > &linop, + Aggregation & Subspace) { - std::cout << GridLogMessage<< "CoarsenMatrixColoured "<< std::endl; + std::cout << GridLogMessage<< "GeneralCoarsenMatrix "<< std::endl; GridBase *grid = FineGrid(); RealD tproj=0.0; @@ -540,7 +542,9 @@ public: auto sval = peekSite(_A[p],coor); } - PopulateAdag(); + // Only needed if nonhermitian + if ( ! hermitian ) + PopulateAdag(); // Need to write something to populate Adag from A ExchangeCoarseLinks();