Skip to content

Commit

Permalink
Fix Symbolics.jl / RuntimeGeneratedFunctions.jl legacy issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Mar 21, 2024
1 parent 7ac7317 commit 08540f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hamiltonian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function symbolic_hamiltonian(H::Base.Callable, dim::Int, params::Union{Tuple, N
rewrite_code_H = rewrite_hamiltonian(code_H, (q, p, st), sparams)

# create the related function
gH = @RuntimeGeneratedFunction(Symbolics.inject_registered_module_functions(rewrite_code_H))
gH = @RuntimeGeneratedFunction(rewrite_code_H)

return st, q, p, sparams, sH, gH
end
Expand Down
2 changes: 1 addition & 1 deletion src/lagrangian.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function symbolic_lagrangian(L::Base.Callable, dim::Int, params::Union{Tuple, Na
rewrite_code_L = rewrite_lagrangian(code_L, (x, v, st), sparams)

# create the related function
gL = @RuntimeGeneratedFunction(Symbolics.inject_registered_module_functions(rewrite_code_L))
gL = @RuntimeGeneratedFunction(rewrite_code_L)

return st, x, v, sparams, sL, gL
end
Expand Down

0 comments on commit 08540f4

Please sign in to comment.