diff --git a/sumpy/expansion/__init__.py b/sumpy/expansion/__init__.py index 0523396073cdab505ae47f578ded2b4e50ba1743..e116d828bc42208349bca789c0b1203c6d44ea65 100644 --- a/sumpy/expansion/__init__.py +++ b/sumpy/expansion/__init__.py @@ -511,10 +511,12 @@ class PDE(object): self.eqs = eqs def __mul__(self, param): - eqs = self.eqs[:] - for eq in eqs: + eqs = [] + for eq in self.eqs: + new_eq = dict() for k, v in eq.items(): - eq[k] = eq[k] * param + new_eq[k] = eq[k] * param + eqs.append(new_eq) return PDE(self.dim, eqs=eqs) __rmul__ = __mul__