Skip to content

Commit

Permalink
Merge pull request SciML#152 from SciML/ChrisRackauckas-patch-1
Browse files Browse the repository at this point in the history
namespace remake
  • Loading branch information
ChrisRackauckas authored Nov 20, 2024
2 parents 985f173 + 654d095 commit 40fe330
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 40fe330

Please sign in to comment.