Skip to content

Commit 4d21088

Browse files
Cover PPCG overlap with padded leading dimension
1 parent 4da5661 commit 4d21088

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

source/source_hsolver/test/diago_ppcg_test.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -871,7 +871,7 @@ class DiagoPPCGWithSTest : public ::testing::Test
871871
{
872872
n_dim = 6;
873873
nband = 3;
874-
ld = n_dim;
874+
ld = n_dim + 2; // exercise custom S with padded leading dimension
875875

876876
// Tridiagonal H
877877
H_mat.assign(n_dim * n_dim, T(0));
@@ -889,11 +889,6 @@ class DiagoPPCGWithSTest : public ::testing::Test
889889

890890
prec.assign(n_dim, 2.0);
891891

892-
// For non-trivial S, exact eigenvalues are harder analytically.
893-
// We skip the absolute eigenvalue comparison and instead verify
894-
// the generalized eigenvalue via residual: ||Hψ - εSψ|| < tol.
895-
exact = {0.0, 0.0, 0.0}; // placeholder — not checked for WithS
896-
897892
ethr.assign(nband, 1e-8);
898893

899894
std::mt19937 rng(333);
@@ -928,7 +923,6 @@ class DiagoPPCGWithSTest : public ::testing::Test
928923
std::vector<T> S_mat;
929924
std::vector<Real> s_diag;
930925
std::vector<Real> prec;
931-
std::vector<Real> exact;
932926
std::vector<double> ethr;
933927
std::vector<T> psi;
934928
};

0 commit comments

Comments
 (0)