1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-10 07:55:35 +00:00

remove deflation timing

This commit is contained in:
James Richings 2021-11-09 20:46:57 +00:00
parent 402523c62e
commit 829a328451

View File

@ -74,21 +74,11 @@ public:
} }
virtual void operator()(const Field &src,Field &guess) { virtual void operator()(const Field &src,Field &guess) {
GridStopWatch w1;
guess = Zero(); guess = Zero();
w1.Start();
for (int i=0;i<N;i++) { for (int i=0;i<N;i++) {
const Field& tmp = evec[i]; const Field& tmp = evec[i];
axpy(guess,TensorRemove(innerProduct(tmp,src)) / eval[i],tmp,guess); axpy(guess,TensorRemove(innerProduct(tmp,src)) / eval[i],tmp,guess);
}
w1.Stop();
guess.Checkerboard() = src.Checkerboard(); guess.Checkerboard() = src.Checkerboard();
std::cout << GridLogDebug << "This projection took: " << w1.Elapsed() << std::endl;
} }
}; };