Skip to content

Commit

Permalink
Merge pull request #74 from clinssen/piecewise_dependency
Browse files Browse the repository at this point in the history
Fix bug related to Piecewise function handling
  • Loading branch information
clinssen authored Jan 9, 2024
2 parents b673312 + a4e3f56 commit d59cb57
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 d59cb57

Please sign in to comment.