Skip to content

Commit

Permalink
fix dependency trafo to take into account changed init of 'result_nam…
Browse files Browse the repository at this point in the history
…e' for functions
  • Loading branch information
MichaelSt98 committed Apr 10, 2024
1 parent d052d73 commit 7f6eff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loki/transform/dependency_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def transform_subroutine(self, routine, **kwargs):
return

# Change the name of kernel routines
if routine.is_function and not routine.result_name:
if routine.is_function and routine.result_name.lower() == routine.name.lower():
self.update_result_var(routine)
routine.name += self.suffix
if item:
Expand Down

0 comments on commit 7f6eff6

Please sign in to comment.