From 2b7079a1acb1638501a13e9be195312cbd5d0a9c Mon Sep 17 00:00:00 2001 From: Aayush Sabharwal Date: Thu, 7 Mar 2024 20:26:04 +0530 Subject: [PATCH] fixup! fix: fix remake for symbolic indexing, add tests for remake --- src/remake.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/remake.jl b/src/remake.jl index 35d96e9c79..4a88999e7c 100644 --- a/src/remake.jl +++ b/src/remake.jl @@ -356,10 +356,10 @@ function updated_u0(prob, u0, p) if length(u0) == length(state_values(prob)) return u0 else - throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map")) + throw(ArgumentError("Invalid value for u0: $u0. New length ($length(u0)) does not match length of current problem ($(length(state_values(prob))))")) end else - throw(ArgumentError("Invalid value for u0: $u0. Must be an array of appropriate length or a symbolic map")) + return u0 end if !has_sys(prob.f) throw(ArgumentError("This problem does not support symbolic maps with" *