1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-03-20 11:16:10 +00:00

modified debug output slightly

This commit is contained in:
Patrick Oare
2025-08-14 14:06:32 -04:00
parent 99644f5d0a
commit 3b9fc72451

View File

@@ -288,6 +288,8 @@ class KrylovSchur {
std::cout << GridLogMessage << "*** TRUNCATING FOR RESTART *** " << std::endl;
std::cout << GridLogDebug << "Rayleigh before truncation: " << std::endl << Rayleigh << std::endl;
Rayleigh = Rayleigh(Eigen::seqN(0, Nk), Eigen::seqN(0, Nk));
basis = std::vector<Field> (basis.begin(), basis.begin() + Nk);
// evecs = std::vector<Field> (evecs.begin(), evecs.begin() + Nk);
@@ -298,8 +300,7 @@ class KrylovSchur {
checkKSDecomposition();
// Compute eigensystem of Rayleigh. Note the eigenvectors correspond to the sorted eigenvalues.
std::cout << GridLogDebug << "S: " << std::endl << S << std::endl;
// computeEigensystem(S);
std::cout << GridLogDebug << "Rayleigh after truncation: " << std::endl << Rayleigh << std::endl;
computeEigensystem(Rayleigh);
std::cout << GridLogMessage << "Eigenvalues (first Nk sorted): " << std::endl << evals << std::endl;