mirror of
https://github.com/triqs/dft_tools
synced 2024-12-21 11:53:41 +01:00
Fix default value of filename in calc_density_correction
This commit is contained in:
parent
d181378115
commit
78b8b1d0ee
@ -1362,15 +1362,15 @@ class SumkDFT(object):
|
||||
"""
|
||||
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 dm_type == 'wien2k':
|
||||
filename = 'dens_mat.dat'
|
||||
elif dm_type == 'vasp':
|
||||
filename = 'GAMMA'
|
||||
|
||||
|
||||
assert type(filename) == StringType, ("calc_density_correction: "
|
||||
"filename has to be a string!")
|
||||
|
||||
ntoi = self.spin_names_to_ind[self.SO]
|
||||
spn = self.spin_block_names[self.SO]
|
||||
dens = {sp: 0.0 for sp in spn}
|
||||
|
Loading…
Reference in New Issue
Block a user