Skip to content

Commit

Permalink
Merge pull request #1241 from AayushSabharwal/as/time-dependent-array…
Browse files Browse the repository at this point in the history
…-transform

fix: call `transform` on dependent array variables in `@variables`
  • Loading branch information
bowenszhu authored Aug 27, 2024
2 parents efccb9e + 2bcf115 commit b9d68b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ function construct_dep_array_vars(macroname, lhs, type, call_args, indices, val,

ex = :($wrap($ex))

if call_args[1] == :..
ex = :($transform($ex))
end
ex = :($transform($ex))
if isruntime
lhs = gensym(lhs)
end
Expand Down

0 comments on commit b9d68b7

Please sign in to comment.