mirror of
https://github.com/triqs/dft_tools
synced 2024-09-07 19:34:45 +02:00
Fix default value of filename in calc_density_correction
This commit is contained in:
parent
4649b2142c
commit
d00575632c
@ -1362,15 +1362,15 @@ class SumkDFT(object):
|
|||||||
"""
|
"""
|
||||||
assert dm_type in ('vasp', 'wien2k'), "'dm_type' must be either 'vasp' or 'wienk'"
|
assert dm_type in ('vasp', 'wien2k'), "'dm_type' must be either 'vasp' or 'wienk'"
|
||||||
|
|
||||||
assert type(filename) == StringType, ("calc_density_correction: "
|
|
||||||
"filename has to be a string!")
|
|
||||||
|
|
||||||
if filename is None:
|
if filename is None:
|
||||||
if dm_type == 'wien2k':
|
if dm_type == 'wien2k':
|
||||||
filename = 'dens_mat.dat'
|
filename = 'dens_mat.dat'
|
||||||
elif dm_type == 'vasp':
|
elif dm_type == 'vasp':
|
||||||
filename = 'GAMMA'
|
filename = 'GAMMA'
|
||||||
|
|
||||||
|
assert type(filename) == StringType, ("calc_density_correction: "
|
||||||
|
"filename has to be a string!")
|
||||||
|
|
||||||
ntoi = self.spin_names_to_ind[self.SO]
|
ntoi = self.spin_names_to_ind[self.SO]
|
||||||
spn = self.spin_block_names[self.SO]
|
spn = self.spin_block_names[self.SO]
|
||||||
dens = {sp: 0.0 for sp in spn}
|
dens = {sp: 0.0 for sp in spn}
|
||||||
|
Loading…
Reference in New Issue
Block a user