Skip to content
Snippets Groups Projects
Commit fe5e2574 authored by Isuru Fernando's avatar Isuru Fernando
Browse files

Fix copying

parent e6d4fdd8
No related branches found
No related tags found
1 merge request!68Specify the PDE symbolically
......@@ -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__
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment