Skip to content

Commit 13ec91c

Browse files
committed
Update relevant cg tests
1 parent 71ef60e commit 13ec91c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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 assume_S_orthogonal) { /*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 assume_S_orthogonal) { /*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 assume_S_orthogonal) { /*do nothing*/ };
140140
hsolver::DiagoCG<std::complex<double>> cg(
141141
PARAM.input.basis_type,
142142
PARAM.input.calculation,

0 commit comments

Comments
 (0)