Forgot e-fermi. Closes #227

parent 57391d3b
......@@ -106,7 +106,7 @@ class Eigensolver:
for weight_n, kpt in zip(weight_un, wfs.mykpts):
weight_n[kpt.eps_n < ecut] = kpt.weight
if (eps_skn[:, :, -1] < ecut).any():
if (eps_skn[:, :, -1] < ecut - efermi).any():
# We don't have enough bands!
weight_un[:] = np.inf
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment