Skip to content

Commit 541be8c

Browse files
committed
Fix 1
1 parent 6a8606d commit 541be8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

source/module_hsolver/diago_dav_subspace.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ int Diago_DavSubspace<T, Device>::diag_once(const HPsiFunc& hpsi_func,
193193
this->dim,
194194
this->vcc,
195195
this->nbase_x,
196-
this->zero,
196+
*this->zero,
197197
psi_in,
198198
psi_in_dmax);
199199

@@ -279,7 +279,7 @@ void Diago_DavSubspace<T, Device>::cal_grad(const HPsiFunc& hpsi_func,
279279
this->dim,
280280
vcc,
281281
this->nbase_x,
282-
this->zero,
282+
*this->zero,
283283
psi_iter + (nbase) * this->dim,
284284
this->dim);
285285

@@ -413,7 +413,7 @@ void Diago_DavSubspace<T, Device>::cal_elem(const int& dim,
413413
this->dim,
414414
&hphi[nbase * this->dim],
415415
this->dim,
416-
this->zero,
416+
*this->zero,
417417
&hcc[nbase * this->nbase_x],
418418
this->nbase_x);
419419

@@ -433,7 +433,7 @@ void Diago_DavSubspace<T, Device>::cal_elem(const int& dim,
433433
this->dim,
434434
psi_iter + nbase * this->dim,
435435
this->dim,
436-
this->zero,
436+
*this->zero,
437437
&scc[nbase * this->nbase_x],
438438
this->nbase_x);
439439

@@ -640,7 +640,7 @@ void Diago_DavSubspace<T, Device>::refresh(const int& dim,
640640
this->dim,
641641
this->vcc,
642642
this->nbase_x,
643-
this->zero,
643+
*this->zero,
644644
psi_iter + nband * this->dim,
645645
this->dim);
646646

0 commit comments

Comments
 (0)