Skip to content

Commit eb61c5c

Browse files
committed
clean up bpcg code
1 parent effef63 commit eb61c5c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

source/module_hsolver/diago_bpcg.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ DiagoBPCG<T, Device>::~DiagoBPCG() {
3131
}
3232

3333
template<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

179179
template<typename T, typename Device>
180180
void 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

215213
template<typename T, typename Device>
216214
void 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

260256
template<typename T, typename Device>
261257
void 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

Comments
 (0)