Skip to content
Snippets Groups Projects
Commit e10d82d0 authored by Martin Bauer's avatar Martin Bauer
Browse files

Make sure same method produces bit-equal source code

- defined ordering of headers
- lbm split kernels produced different ordering of assignments due to
  usage of a set
parent 01c1726f
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,7 @@ def create_lbm_split_groups(cr: LbmCollisionRule, opposing_directions=True): ...@@ -41,6 +41,7 @@ def create_lbm_split_groups(cr: LbmCollisionRule, opposing_directions=True):
important_sub_expressions.update(sh['velocity']) important_sub_expressions.update(sh['velocity'])
subexpressions_to_pre_compute = list(important_sub_expressions) subexpressions_to_pre_compute = list(important_sub_expressions)
subexpressions_to_pre_compute.sort(key=lambda e: e.name) # ensures that exactly the same code is produced (caching)
split_groups = [subexpressions_to_pre_compute + other_written_fields, ] split_groups = [subexpressions_to_pre_compute + other_written_fields, ]
direction_groups = defaultdict(list) direction_groups = defaultdict(list)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment