3
0
mirror of https://github.com/triqs/dft_tools synced 2024-12-23 04:43:42 +01:00

fixed a slicing bug for the calculation of the target density in the VASP converter, which selected 1 band less in the correlated window than required.

This commit is contained in:
Alexander Hampel 2020-03-24 12:50:09 -04:00
parent 321bf87e8a
commit a4020297b1

View File

@ -115,7 +115,7 @@ class ProjectorGroup:
for isp in xrange(ns_band):
for ik in xrange(nk):
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]
kwght = el_struct.kmesh['kweights'][ik]
self.nelect += occ.sum() * kwght * rspin