From c14977aeab76902bf0d15210076a3e47ccde4254 Mon Sep 17 00:00:00 2001 From: Peter Boyle Date: Fri, 25 Aug 2023 17:33:31 -0400 Subject: [PATCH] Random vector option for test purposes --- Grid/algorithms/CoarsenedMatrix.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Grid/algorithms/CoarsenedMatrix.h b/Grid/algorithms/CoarsenedMatrix.h index 7008008c..e30a37e2 100644 --- a/Grid/algorithms/CoarsenedMatrix.h +++ b/Grid/algorithms/CoarsenedMatrix.h @@ -158,6 +158,18 @@ public: blockPromote(CoarseVec,FineVec,subspace); } + virtual void CreateSubspaceRandom(GridParallelRNG &RNG) { + int nn=nbasis; + RealD scale; + FineField noise(FineGrid); + for(int b=0;b &hermop,int nn=nbasis) { RealD scale;