mirror of
https://github.com/triqs/dft_tools
synced 2024-12-22 04:13:47 +01:00
Added output of Fermi weights to output files
Fermi weights are output next to eigenvalues. They will be needed for the calculation of the KS density matrix in the charge self-consistency implementation.
This commit is contained in:
parent
b85b62d693
commit
f544825684
@ -282,7 +282,8 @@ def plo_output(conf_pars, el_struct, pshells, pgroups):
|
|||||||
f.write(" %i %i\n"%(ib1, ib2))
|
f.write(" %i %i\n"%(ib1, ib2))
|
||||||
for ib in xrange(ib1, ib2 + 1):
|
for ib in xrange(ib1, ib2 + 1):
|
||||||
eigv_ef = el_struct.eigvals[ik, ib, isp] - el_struct.efermi
|
eigv_ef = el_struct.eigvals[ik, ib, isp] - el_struct.efermi
|
||||||
f.write("%15.7f\n"%(eigv_ef))
|
f_weight = el_struct.ferw[isp, ik, ib]
|
||||||
|
f.write("%13.8f %12.7f\n"%(eigv_ef, f_weight))
|
||||||
|
|
||||||
# Projected shells
|
# Projected shells
|
||||||
f.write("# Projected shells\n")
|
f.write("# Projected shells\n")
|
||||||
|
Loading…
Reference in New Issue
Block a user