Skip to content

Commit

Permalink
compiler: Restore macros ordering after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Dec 19, 2024
1 parent 88965bc commit 2ed05aa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions devito/passes/iet/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,10 @@ def _generate_macros(iet, tracker=None, **kwargs):
headers = sorted((ccode(define), ccode(expr)) for define, expr in headers)

# Generate Macros from higher-level SymPy objects
applications = FindApplications().visit(iet)
headers = set().union(*[_generate_macros(i) for i in applications])
headers.extend(_generate_macros_math(iet))

# Remove redundancies while preserving the order
headers = filter_ordered(headers)

# Some special Symbols may represent Macros defined in standard libraries,
# so we need to include the respective includes
Expand Down

0 comments on commit 2ed05aa

Please sign in to comment.