Skip to content

Commit

Permalink
fix bug related to Piecewise function handling
Browse files Browse the repository at this point in the history
  • Loading branch information
C.A.P. Linssen committed Dec 17, 2023
1 parent b673312 commit a4e3f56
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions odetoolbox/system_of_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,8 @@ def get_dependency_edges(self):

for i, sym1 in enumerate(self.x_):
for j, sym2 in enumerate(self.x_):
if not _is_zero(self.A_[j, i]):
if not _is_zero(self.A_[j, i]) or sym1 in self.c_[j].free_symbols:
E.append((sym2, sym1))
else:
if not _is_zero(sympy.diff(self.c_[j], sym1)):
E.append((sym2, sym1))

return E

Expand Down

0 comments on commit a4e3f56

Please sign in to comment.