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

Fixup lfs size determination for systems of identical components

parent 69afb16e
No related branches found
No related tags found
No related merge requests found
......@@ -71,8 +71,7 @@ def define_lfs(name, father, child):
@preamble
def define_lfs_size(element, restriction):
lfs = name_leaf_lfs(element, restriction)
def define_lfs_size(lfs, element, restriction):
name = name_lfs_bound(lfs)
return "auto {} = {}.size();".format(name, lfs)
......@@ -86,7 +85,7 @@ def define_gfs(name, father, child):
def _name_lfs(element, restriction, tp, name):
if len(tp) == 0:
name_leaf_lfs(element, restriction, val=name)
define_lfs_size(element, restriction)
define_lfs_size(name, element, restriction)
return name
childname = "{}_{}".format(name, tp[0])
......
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