From eafd1c4edc5420c04bdef0f075c154c7e7f0814c Mon Sep 17 00:00:00 2001 From: Chris Rackauckas Date: Sun, 23 Mar 2025 18:33:34 -0100 Subject: [PATCH 1/2] Fix Dynamical Remake by making _func_cache optional --- src/remake.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remake.jl b/src/remake.jl index 17d1ffcae..838ee3f75 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -187,7 +187,7 @@ function remake( props = @delete props.f2 - if !ismissing(forig) + if !ismissing(forig) && hasproperty(forg, :_func_cache) props = @delete props._func_cache props = @insert props._func_cache = forig._func_cache end From 0422ce8d5acb1c28e2824ecf328ca1b88c748e49 Mon Sep 17 00:00:00 2001 From: Christopher Rackauckas Date: Sun, 23 Mar 2025 18:41:29 -0100 Subject: [PATCH 2/2] Update src/remake.jl --- src/remake.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remake.jl b/src/remake.jl index 838ee3f75..373d898f5 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -187,7 +187,7 @@ function remake( props = @delete props.f2 - if !ismissing(forig) && hasproperty(forg, :_func_cache) + if !ismissing(forig) && hasproperty(forig, :_func_cache) props = @delete props._func_cache props = @insert props._func_cache = forig._func_cache end