mirror of
https://github.com/triqs/dft_tools
synced 2024-09-08 11:54:45 +02:00
[sumk] gf.N1 deprecation warning fix
This commit is contained in:
parent
d7d720141e
commit
56480d50c5
@ -521,7 +521,7 @@ class SumkDFT(object):
|
|||||||
set_up_G_latt = True
|
set_up_G_latt = True
|
||||||
else: # Check that existing GF is consistent
|
else: # Check that existing GF is consistent
|
||||||
G_latt = getattr(self, "G_latt_" + iw_or_w)
|
G_latt = getattr(self, "G_latt_" + iw_or_w)
|
||||||
GFsize = [gf.N1 for bname, gf in G_latt]
|
GFsize = [gf.target_shape[0] for bname, gf in G_latt]
|
||||||
unchangedsize = all([self.n_orbitals[ik, ntoi[spn[isp]]] == GFsize[
|
unchangedsize = all([self.n_orbitals[ik, ntoi[spn[isp]]] == GFsize[
|
||||||
isp] for isp in range(self.n_spin_blocks[self.SO])])
|
isp] for isp in range(self.n_spin_blocks[self.SO])])
|
||||||
if not unchangedsize:
|
if not unchangedsize:
|
||||||
|
Loading…
Reference in New Issue
Block a user