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

[bugfix] tags must be ascending not descending

parent e8002850
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,8 @@ class UFL2LoopyDataCache(dict):
self.counter = 0
def register(self, cachekey, code, preamble):
self.counter = self.counter - 1
self[cachekey] = (code, self.counter, preamble)
self.counter = self.counter + 1
def extract_preambles(self):
return [(p[1], p[0]) for p in self.values() if p[2]]
......
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