We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88e09e8 + 61d69f5 commit eefeb84Copy full SHA for eefeb84
src/remake.jl
@@ -137,6 +137,7 @@ function remake(
137
spec = specialization(func)
138
# retain properties of original function
139
props = getproperties(func)
140
+ forig = f
141
142
if f === missing || is_split_function(func)
143
# if no `f` is provided, create the same type of SciMLFunction
@@ -183,7 +184,14 @@ function remake(
183
184
if !(f2 isa Union{AbstractSciMLOperator, split_function_f_wrapper(T)})
185
f2 = split_function_f_wrapper(T){iip, spec}(f2)
186
end
187
+
188
props = @delete props.f2
189
190
+ if !ismissing(forig)
191
+ props = @delete props._func_cache
192
+ props = @insert props._func_cache = forig._func_cache
193
+ end
194
195
args = (args..., f2)
196
197
0 commit comments