From 7eb9971e5b622d58a47b21dd204fef2624d9c96a Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Tue, 14 Nov 2023 18:48:15 +0000 Subject: [PATCH] hotfix ss --- src/discretization_state.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/discretization_state.jl b/src/discretization_state.jl index 8eee27e..9171357 100644 --- a/src/discretization_state.jl +++ b/src/discretization_state.jl @@ -60,7 +60,7 @@ function SciMLBase.discretize(pdesys::PDESystem, simpsys = structural_simplify(sys) if tspan === nothing add_metadata!(get_metadata(sys), sys) - return prob = NonlinearProblem(simpsys, ones(length(simpsys.states)); + return prob = NonlinearProblem(simpsys, ones(length(get_eqs(simpsys))); discretization.kwargs..., kwargs...) else # Use ODAE if nessesary