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 Jul 31, 2024
1 parent 3ac5fef commit 58dbb96
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 @@ -150,8 +150,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 58dbb96

Please sign in to comment.