@@ -185,9 +185,9 @@ int DiagoDavid<T, Device>::diag_once(const HPsiFunc& hpsi_func,
185185 // slice index in this piece of code is in C manner. i.e. 0:id stands for [0,id)
186186 hpsi_func (basis, hpsi, dim, nband);
187187
188- this ->cal_elem (dim, nbase, nbase_x, this ->notconv , this ->hpsi , this ->spsi , this ->hcc , this -> scc );
188+ this ->cal_elem (dim, nbase, nbase_x, this ->notconv , this ->hpsi , this ->spsi , this ->hcc );
189189
190- this ->diag_zhegvx (nbase, nband, this ->hcc , this -> scc , nbase_x, this ->eigenvalue , this ->vcc );
190+ this ->diag_zhegvx (nbase, nband, this ->hcc , nbase_x, this ->eigenvalue , this ->vcc );
191191
192192 for (int m = 0 ; m < nband; m++)
193193 {
@@ -213,9 +213,9 @@ int DiagoDavid<T, Device>::diag_once(const HPsiFunc& hpsi_func,
213213 unconv.data (),
214214 this ->eigenvalue );
215215
216- this ->cal_elem (dim, nbase, nbase_x, this ->notconv , this ->hpsi , this ->spsi , this ->hcc , this -> scc );
216+ this ->cal_elem (dim, nbase, nbase_x, this ->notconv , this ->hpsi , this ->spsi , this ->hcc );
217217
218- this ->diag_zhegvx (nbase, nband, this ->hcc , this -> scc , nbase_x, this ->eigenvalue , this ->vcc );
218+ this ->diag_zhegvx (nbase, nband, this ->hcc , nbase_x, this ->eigenvalue , this ->vcc );
219219
220220 // check convergence and update eigenvalues
221221 ModuleBase::timer::tick (" DiagoDavid" , " check_update" );
@@ -277,7 +277,6 @@ int DiagoDavid<T, Device>::diag_once(const HPsiFunc& hpsi_func,
277277 this ->hpsi ,
278278 this ->spsi ,
279279 this ->hcc ,
280- this ->scc ,
281280 this ->vcc );
282281 ModuleBase::timer::tick (" DiagoDavid" , " last" );
283282 }
@@ -531,8 +530,7 @@ void DiagoDavid<T, Device>::cal_elem(const int& dim,
531530 const int & notconv, // number of newly added basis vectors
532531 const T* hpsi,
533532 const T* spsi,
534- T* hcc,
535- T* scc)
533+ T* hcc)
536534{
537535 if (test_david == 1 ) {
538536 ModuleBase::TITLE (" DiagoDavid" , " cal_elem" );
@@ -608,7 +606,6 @@ template <typename T, typename Device>
608606void DiagoDavid<T, Device>::diag_zhegvx(const int & nbase,
609607 const int & nband,
610608 const T* hcc,
611- const T* /* scc*/ ,
612609 const int & nbase_x,
613610 Real* eigenvalue, // in CPU
614611 T* vcc)
@@ -665,7 +662,6 @@ void DiagoDavid<T, Device>::refresh(const int& dim,
665662 T* hpsi,
666663 T* spsi,
667664 T* hcc,
668- T* scc,
669665 T* vcc)
670666{
671667 if (test_david == 1 ) {
0 commit comments