mirror of
https://github.com/triqs/dft_tools
synced 2024-12-26 06:14:14 +01:00
Fix tail in from_L_R in gf_generic
The order_max was not set properly.
This commit is contained in:
parent
1a0ebea512
commit
80eb00046f
@ -331,10 +331,9 @@ class GfGeneric:
|
|||||||
MatrixStack(self.data).matmul_L_R(L, G.data, R)
|
MatrixStack(self.data).matmul_L_R(L, G.data, R)
|
||||||
|
|
||||||
# this might be a bit slow
|
# this might be a bit slow
|
||||||
t = TailGf(shape=(N1,N2))
|
for o in range(G.tail.order_min, G.tail.order_max+1):
|
||||||
for o in range(t.order_min, t.order_max+1):
|
self.tail[o] = numpy.dot(L, numpy.dot(G.tail[o], R))
|
||||||
t[o] = numpy.dot(L, numpy.dot(G.tail[o], R))
|
self.tail.mask.fill(G.tail.order_max)
|
||||||
self.tail = t
|
|
||||||
|
|
||||||
def __idiv__(self, arg):
|
def __idiv__(self, arg):
|
||||||
""" If arg is a scalar, simple scalar multiplication
|
""" If arg is a scalar, simple scalar multiplication
|
||||||
|
Loading…
Reference in New Issue
Block a user