From 15db51e5109b0bd7d5fa82938ac835a30e35774e Mon Sep 17 00:00:00 2001 From: Valentin Kaisermayer Date: Tue, 10 Jan 2023 15:02:37 +0100 Subject: [PATCH] allow to process caches as well --- src/variables.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/variables.jl b/src/variables.jl index 0fd951bfb3..eb83bad6b5 100644 --- a/src/variables.jl +++ b/src/variables.jl @@ -126,7 +126,8 @@ Intercept the call to `process_p_u0_symbolic` and process symbolic maps of `p` a user has `ModelingToolkit` loaded. """ function SciMLBase.process_p_u0_symbolic(prob::Union{SciMLBase.AbstractDEProblem, - NonlinearProblem, OptimizationProblem}, + NonlinearProblem, OptimizationProblem, + SciMLBase.AbstractOptimizationCache}, p, u0) # check if a symbolic remake is possible