diff --git a/src/hamiltonian.jl b/src/hamiltonian.jl index 99a56df..a29912f 100644 --- a/src/hamiltonian.jl +++ b/src/hamiltonian.jl @@ -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 diff --git a/src/lagrangian.jl b/src/lagrangian.jl index 264af6f..a5237c5 100644 --- a/src/lagrangian.jl +++ b/src/lagrangian.jl @@ -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