Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/remake.jl
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ function remake(
spec = specialization(func)
# retain properties of original function
props = getproperties(func)
forig = f

if f === missing || is_split_function(func)
# if no `f` is provided, create the same type of SciMLFunction
Expand Down Expand Up @@ -183,7 +184,14 @@ function remake(
if !(f2 isa Union{AbstractSciMLOperator, split_function_f_wrapper(T)})
f2 = split_function_f_wrapper(T){iip, spec}(f2)
end

props = @delete props.f2

if !ismissing(forig)
props = @delete props._func_cache
props = @insert props._func_cache = forig._func_cache
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change

args = (args..., f2)
end
end
Expand Down
Loading