Skip to content

Commit 502cfe9

Browse files
cleanup
1 parent 96a5c27 commit 502cfe9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/ode_def_opts.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,12 +234,6 @@ function ode_def_opts(name::Symbol,opts::Dict{Symbol,Bool},ex::Expr,params...;_M
234234
# Build the Function
235235
f_expr = :((internal_var___du,internal_var___u,internal_var___p,t::Number) -> $pex)
236236

237-
#=
238-
# Add a method which allocates the `du` and returns it instead of being inplace
239-
overloadex = :(((f::$name))(u,p,t::Number) = (du=similar(u); f(du,u,p,t); du)) |> esc
240-
push!(exprs,overloadex)
241-
=#
242-
243237
# Add the t gradient
244238
if tgrad_exists
245239
tgrad_expr = :((internal_var___grad,internal_var___u,internal_var___p,t) -> $tgradex)

0 commit comments

Comments
 (0)