Skip to content
Snippets Groups Projects
Commit 2205ac65 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

[bugfix] Treat shaped zeroes

parent b6bba894
No related branches found
No related tags found
No related merge requests found
...@@ -272,6 +272,8 @@ class UFL2LoopyVisitor(ModifiedTerminalTracker): ...@@ -272,6 +272,8 @@ class UFL2LoopyVisitor(ModifiedTerminalTracker):
return flattened_sum(tuple(self.call(op) for op in o.ufl_operands)) return flattened_sum(tuple(self.call(op) for op in o.ufl_operands))
def zero(self, o): def zero(self, o):
# UFL has Zeroes with shape. We ignore those indices.
self.indices = None
return 0 return 0
def abs(self, o): def abs(self, o):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment