Skip to content

Commit

Permalink
namespace remake
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
ChrisRackauckas authored Nov 20, 2024
1 parent 985f173 commit 654d095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diffeqpy/de.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
de.jit32 = Main.seval("""
function jit(x)
prob = typeof(x).name.wrapper(ModelingToolkit.complete(ModelingToolkit.modelingtoolkitize(x); split = false), [], Float32.(x.tspan))
remake(prob; u0 = Float32.(prob.u0), p = Float32.(prob.p))
ModelingToolkit.remake(prob; u0 = Float32.(prob.u0), p = Float32.(prob.p))
end
""") # kinda hackey
sys.modules[__name__] = de # mutate myself

0 comments on commit 654d095

Please sign in to comment.