Skip to content

Commit 7924c2a

Browse files
committed
fix build test bug
1 parent 90bf6c3 commit 7924c2a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

source/module_hsolver/test/diago_bpcg_test.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,11 @@ class DiagoBPCGPrepare
152152
hpsi_out, ld_psi);
153153
};
154154
bpcg.init_iter(nband, npw);
155-
bpcg.diag(hpsi_func, psi_local.get_pointer(), en);
156-
bpcg.diag(hpsi_func, psi_local.get_pointer(), en);
157-
bpcg.diag(hpsi_func, psi_local.get_pointer(), en);
158-
bpcg.diag(hpsi_func, psi_local.get_pointer(), en);
155+
std::vector<double> ethr_band(phi.get_nbands(), 1e-5);
156+
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
157+
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
158+
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
159+
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
159160
end = MPI_Wtime();
160161
//if(mypnum == 0) printf("diago time:%7.3f\n",end-start);
161162
delete [] DIAGOTEST::npw_local;

0 commit comments

Comments
 (0)