Skip to content

Commit cf90e39

Browse files
committed
use state_values instead of u0
1 parent f5b6ba7 commit cf90e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/initialization.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ function initialization_status(prob::AbstractSciMLProblem)
304304
iprob = prob.f.initialization_data.initializeprob
305305
isnothing(prob) && return nothing
306306

307-
nunknowns = iprob.u0 === nothing ? 0 : length(iprob.u0)
307+
nunknowns = state_values(iprob) === nothing ? 0 : length(state_values(iprob))
308308
neqs = if __has_resid_prototype(iprob.f) && iprob.f.resid_prototype !== nothing
309309
length(iprob.f.resid_prototype)
310310
else

0 commit comments

Comments
 (0)