mirror of
https://github.com/triqs/dft_tools
synced 2024-11-07 06:33:48 +01:00
Merge pull request #134 from the-hampel/2.2.x
fixed a slicing bug for the calculation of the target density of the VASP converter
This commit is contained in:
commit
e382b0a357
@ -94,7 +94,7 @@ class ProjectorGroup:
|
|||||||
for isp in xrange(ns_band):
|
for isp in xrange(ns_band):
|
||||||
for ik in xrange(nk):
|
for ik in xrange(nk):
|
||||||
ib1 = self.ib_win[ik, isp, 0]
|
ib1 = self.ib_win[ik, isp, 0]
|
||||||
ib2 = self.ib_win[ik, isp, 1]
|
ib2 = self.ib_win[ik, isp, 1]+1
|
||||||
occ = el_struct.ferw[isp, ik, ib1:ib2]
|
occ = el_struct.ferw[isp, ik, ib1:ib2]
|
||||||
kwght = el_struct.kmesh['kweights'][ik]
|
kwght = el_struct.kmesh['kweights'][ik]
|
||||||
self.nelect += occ.sum() * kwght * rspin
|
self.nelect += occ.sum() * kwght * rspin
|
||||||
|
Loading…
Reference in New Issue
Block a user