From 1ae77143e82d5c09a9b71f0bd6ed877c6f3a760a Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 26 Jul 2019 19:59:32 +0200 Subject: [PATCH] Fix SympyAssignment Indexed --- pystencils/astnodes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pystencils/astnodes.py b/pystencils/astnodes.py index 48b77987..89a268f5 100644 --- a/pystencils/astnodes.py +++ b/pystencils/astnodes.py @@ -527,7 +527,7 @@ class SympyAssignment(Node): @property def undefined_symbols(self): - result = self.rhs.free_symbols + result = {s for s in self.rhs.free_symbols if not isinstance(s, sp.Indexed)} # Add loop counters if there a field accesses loop_counters = set() for symbol in result: -- GitLab