mirror of
https://github.com/paboyle/Grid.git
synced 2026-05-25 19:44:17 +01:00
added another debug feature
This commit is contained in:
@@ -519,6 +519,7 @@ class KrylovSchur {
|
|||||||
int k = basis.size(); // number of basis vectors, also the size of Rayleigh.
|
int k = basis.size(); // number of basis vectors, also the size of Rayleigh.
|
||||||
|
|
||||||
// rotate basis by Rayleigh to construct UR
|
// rotate basis by Rayleigh to construct UR
|
||||||
|
// std::vector<Field> rotated;
|
||||||
std::vector<Field> rotated = basis;
|
std::vector<Field> rotated = basis;
|
||||||
Eigen::MatrixXcd Rt = Rayleigh.adjoint();
|
Eigen::MatrixXcd Rt = Rayleigh.adjoint();
|
||||||
constructUR(rotated, basis, Rayleigh, k); // manually rotate
|
constructUR(rotated, basis, Rayleigh, k); // manually rotate
|
||||||
@@ -611,8 +612,10 @@ class KrylovSchur {
|
|||||||
for (int i = 0; i < N; i++) {
|
for (int i = 0; i < N; i++) {
|
||||||
tmp = Zero();
|
tmp = Zero();
|
||||||
for (int j = 0; j < N; j++) {
|
for (int j = 0; j < N; j++) {
|
||||||
|
std::cout << GridLogDebug << "Adding R(j, i) = " << R(j, i) << " to rotated" << std::endl;
|
||||||
tmp = tmp + U[j] * R(j, i);
|
tmp = tmp + U[j] * R(j, i);
|
||||||
}
|
}
|
||||||
|
std::cout << GridLogDebug << "rotated norm at i = " << i << " is: " << norm2(tmp) << std::endl;
|
||||||
UR.push_back(tmp);
|
UR.push_back(tmp);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user