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

Fix hashing of stage 3 input

parent 48b4a575
No related branches found
No related tags found
No related merge requests found
...@@ -61,8 +61,15 @@ def accum_iname(restriction, bound, i): ...@@ -61,8 +61,15 @@ def accum_iname(restriction, bound, i):
return sumfact_iname(bound, "accum") return sumfact_iname(bound, "accum")
class AlreadyAssembledInput(SumfactKernelInputBase, ImmutableRecord): class AlreadyAssembledInput(SumfactKernelInputBase):
pass def __init__(self, index):
self.index = index
def __eq__(self, other):
return type(self) == type(other) and self.index == other.index
def __hash__(self):
return 0
@backend(interface="accum_insn", name="sumfact") @backend(interface="accum_insn", name="sumfact")
...@@ -91,8 +98,6 @@ def generate_accumulation_instruction(visitor, accterm, measure, subdomain_id): ...@@ -91,8 +98,6 @@ def generate_accumulation_instruction(visitor, accterm, measure, subdomain_id):
accum_index = None accum_index = None
if visitor.indices: if visitor.indices:
accum_index = visitor.indices[0] accum_index = visitor.indices[0]
if accterm.argument.index:
accum_index = accterm.argument.index[0]._value
jacobian_inames = tuple() jacobian_inames = tuple()
if accterm.is_jacobian: if accterm.is_jacobian:
......
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