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