Commit 5533754c authored by Martin Bauer's avatar Martin Bauer
Browse files

lbmpy: small bugfixes & performance improvements

parent 83d9bf86
......@@ -66,8 +66,8 @@ class EquationCollection(object):
newEquations = [fastSubs(eq, substitutionDict) for eq in self.mainEquations]
if addSubstitutionsAsSubexpressions:
newSubexpressions = [sp.Eq(b, a) for a, b in substitutionDict.items()] + newSubexpressions
return self.copy(newEquations, sortEquationsTopologically(newSubexpressions))
newSubexpressions = sortEquationsTopologically(newSubexpressions)
return self.copy(newEquations, newSubexpressions)
def addSimplificationHint(self, key, value):
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment