Skip to content
Snippets Groups Projects
Commit 1940e5b2 authored by Markus Holzer's avatar Markus Holzer
Browse files

Fix index kernel

parent a8a43181
Branches
Tags
1 merge request!292Rebase of pystencils Type System
......@@ -573,7 +573,7 @@ class SympyAssignment(Node):
def __is_declaration(self):
from pystencils.typing import CastFunc
if isinstance(self._lhs_symbol, CastFunc):
assert False, f'{self._lhs_symbol} should not be a CastFunc'
return False
if any(isinstance(self._lhs_symbol, c) for c in (Field.Access, sp.Indexed, TemporaryMemoryAllocation)):
return False
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment