Skip to content

Commit 44680d9

Browse files
committed
Update corresponding tests
1 parent da946eb commit 44680d9

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

source/source_hsolver/test/diago_cg_float_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class DiagoCGPrepare
142142
// New interface of cg method
143143
/**************************************************************/
144144
// warp the subspace_func into a lambda function
145-
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out) { /*do nothing*/ };
145+
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out, const bool S_orth) { /*do nothing*/ };
146146
hsolver::DiagoCG<std::complex<float>> cg(
147147
PARAM.input.basis_type,
148148
PARAM.input.calculation,

source/source_hsolver/test/diago_cg_real_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class DiagoCGPrepare
147147
// New interface of cg method
148148
/**************************************************************/
149149
// warp the subspace_func into a lambda function
150-
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out) { /*do nothing*/ };
150+
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out, const bool S_orth) { /*do nothing*/ };
151151
hsolver::DiagoCG<double> cg(
152152
PARAM.input.basis_type,
153153
PARAM.input.calculation,

source/source_hsolver/test/diago_cg_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class DiagoCGPrepare
136136
// New interface of cg method
137137
/**************************************************************/
138138
// warp the subspace_func into a lambda function
139-
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out) { /*do nothing*/ };
139+
auto subspace_func = [ha](const ct::Tensor& psi_in, ct::Tensor& psi_out, const bool S_orth) { /*do nothing*/ };
140140
hsolver::DiagoCG<std::complex<double>> cg(
141141
PARAM.input.basis_type,
142142
PARAM.input.calculation,

source/source_hsolver/test/hsolver_pw_sup.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ template <typename T, typename Device>
6868
DiagoCG<T, Device>::DiagoCG(const std::string& basis_type,
6969
const std::string& calculation,
7070
const bool& need_subspace,
71-
const Func& subspace_func,
71+
const SubspaceFunc& subspace_func,
7272
const Real& pw_diag_thr,
7373
const int& pw_diag_nmax,
7474
const int& nproc_in_pool) {

source/source_hsolver/test/test_diago_assist.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,14 @@ class TestDiagoIterAssist : public ::testing::Test
2727
std::ofstream temp_ofs;
2828
};
2929

30-
TEST_F(TestDiagoIterAssist, diagH_subspace)
30+
TEST_F(TestDiagoIterAssist, diag_subspace)
3131
{
32-
dia_f::diagH_subspace();
33-
dia_d::diagH_subspace();
32+
dia_f::diag_subspace();
33+
dia_d::diag_subspace();
3434
EXPECT_EQ(true);
3535
}
3636

37-
TEST_F(TestDiagoIterAssist, diagH_LAPACK)
37+
TEST_F(TestDiagoIterAssist, diag_hegvd)
3838
{
3939
EXPECT_EQ(true);
4040
}

0 commit comments

Comments
 (0)