From 80eb00046ff9b920e9ccde9a89357a95f3821e84 Mon Sep 17 00:00:00 2001 From: Michel Ferrero Date: Wed, 18 Dec 2013 23:09:39 +0100 Subject: [PATCH] Fix tail in from_L_R in gf_generic The order_max was not set properly. --- pytriqs/gf/local/gf_generic.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pytriqs/gf/local/gf_generic.py b/pytriqs/gf/local/gf_generic.py index 893fc0e1..4e0e1d69 100644 --- a/pytriqs/gf/local/gf_generic.py +++ b/pytriqs/gf/local/gf_generic.py @@ -331,10 +331,9 @@ class GfGeneric: MatrixStack(self.data).matmul_L_R(L, G.data, R) # this might be a bit slow - t = TailGf(shape=(N1,N2)) - for o in range(t.order_min, t.order_max+1): - t[o] = numpy.dot(L, numpy.dot(G.tail[o], R)) - self.tail = t + for o in range(G.tail.order_min, G.tail.order_max+1): + self.tail[o] = numpy.dot(L, numpy.dot(G.tail[o], R)) + self.tail.mask.fill(G.tail.order_max) def __idiv__(self, arg): """ If arg is a scalar, simple scalar multiplication