Skip to content

Commit 0c3926c

Browse files
committed
fix compiler bug
1 parent 6ca39d9 commit 0c3926c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_esolver/esolver_sdft_pw.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void ESolver_SDFT_PW<T, Device>::hamilt2density_single(int istep, int iter, doub
197197
//! Update Hamiltonian from other kpoint to the given one
198198
this->p_hamilt->updateHk(ik);
199199

200-
if (nbands > 0 && GlobalV::MY_STOGROUP == 0)
200+
if (this->kspw_psi->get_nbands() > 0 && GlobalV::MY_STOGROUP == 0)
201201
{
202202
//! Fix the wavefunction to initialize at given kpoint
203203
this->kspw_psi->fix_k(ik);

0 commit comments

Comments
 (0)