Skip to content

Commit 6e336ba

Browse files
Properly drop from defaults
1 parent 78b5832 commit 6e336ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/systems/diffeqs/abstractodesystem.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -867,7 +867,8 @@ function process_DEProblem(constructor, sys::AbstractODESystem, u0map, parammap;
867867
initializeprob = ModelingToolkit.InitializationProblem(
868868
sys, u0map, parammap; guesses, warn_initialize_determined)
869869
initializeprobmap = getu(initializeprob, unknowns(sys))
870-
zerovars = setdiff(unknowns(sys), defaults(sys)) .=> 0.0
870+
871+
zerovars = setdiff(unknowns(sys), keys(defaults(sys))) .=> 0.0
871872
trueinit = identity.([zerovars; u0map])
872873
else
873874
initializeprob = nothing

0 commit comments

Comments
 (0)