Skip to content

Commit 8798347

Browse files
committed
fix build bug
1 parent 7924c2a commit 8798347

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_hsolver/test/diago_bpcg_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ class DiagoBPCGPrepare
152152
hpsi_out, ld_psi);
153153
};
154154
bpcg.init_iter(nband, npw);
155-
std::vector<double> ethr_band(phi.get_nbands(), 1e-5);
155+
std::vector<double> ethr_band(nband, 1e-5);
156156
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
157157
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);
158158
bpcg.diag(hpsi_func, psi_local.get_pointer(), en, ethr_band);

0 commit comments

Comments
 (0)