Skip to content

Commit 62c2f09

Browse files
fix: only allow numeric pdeps to be initialization equations
1 parent cab11eb commit 62c2f09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/nonlinear/initializesystem.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ function generate_initializesystem(sys::ODESystem;
132132

133133
# 5) parameter dependencies become equations, their LHS become unknowns
134134
for eq in parameter_dependencies(sys)
135+
is_variable_floatingpoint(eq.lhs) || continue
135136
varp = tovar(eq.lhs)
136137
paramsubs[eq.lhs] = varp
137138
push!(eqs_ics, eq)

0 commit comments

Comments
 (0)