@@ -31,7 +31,7 @@ DiagoBPCG<T, Device>::~DiagoBPCG() {
3131}
3232
3333template <typename T, typename Device>
34- void DiagoBPCG<T, Device>::init_iter(/* const T *psi_in, */ const int nband, const int nbasis) {
34+ void DiagoBPCG<T, Device>::init_iter(const int nband, const int nbasis) {
3535 // Specify the problem size n_basis, n_band, while lda is n_basis
3636 // this->n_band = psi_in.get_nbands();
3737 // this->n_basis = psi_in.get_nbasis();
@@ -178,9 +178,7 @@ void DiagoBPCG<T, Device>::rotate_wf(
178178
179179template <typename T, typename Device>
180180void DiagoBPCG<T, Device>::calc_hpsi_with_block(
181- // hamilt::Hamilt<T, Device>* hamilt_in,
182181 const HPsiFunc& hpsi_func,
183- // const psi::Psi<T, Device>& psi_in,
184182 T *psi_in,
185183 ct::Tensor& hpsi_out)
186184{
@@ -214,9 +212,7 @@ void DiagoBPCG<T, Device>::diag_hsub(
214212
215213template <typename T, typename Device>
216214void DiagoBPCG<T, Device>::calc_hsub_with_block(
217- // hamilt::Hamilt<T, Device>* hamilt_in,
218215 const HPsiFunc& hpsi_func,
219- // const psi::Psi<T, Device>& psi_in,
220216 T *psi_in,
221217 ct::Tensor& psi_out,
222218 ct::Tensor& hpsi_out,
@@ -259,9 +255,7 @@ void DiagoBPCG<T, Device>::calc_hsub_with_block_exit(
259255
260256template <typename T, typename Device>
261257void DiagoBPCG<T, Device>::diag(
262- // hamilt::Hamilt<T, Device>* hamilt_in,
263258 const HPsiFunc& hpsi_func,
264- // psi::Psi<T, Device>& psi_in,
265259 T *psi_in,
266260 Real* eigenvalue_in)
267261{
0 commit comments