Skip to content

Commit

Permalink
bugfix : do not hoist the symbols that are in the member dummies, ins…
Browse files Browse the repository at this point in the history
…tead of the routine dummies
  • Loading branch information
JoeffreyLegaux authored and mlange05 committed Oct 10, 2023
1 parent 0e83ac4 commit c713121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion loki/transform/transform_inline.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def _map_unbound_dims(var, val):

# Get local variable declarations and hoist them
decls = FindNodes(VariableDeclaration).visit(member.spec)
decls = tuple(d for d in decls if all(s.name.lower() not in routine._dummies for s in d.symbols))
decls = tuple(d for d in decls if all(s.name.lower() not in member._dummies for s in d.symbols))
decls = tuple(d for d in decls if all(s not in routine.variables for s in d.symbols))
routine.spec.append(decls)

Expand Down

0 comments on commit c713121

Please sign in to comment.