Skip to content

Commit 7b354cd

Browse files
fix: only allow numeric pdeps to be initialization equations
1 parent 65853ff commit 7b354cd

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
@@ -128,6 +128,7 @@ function generate_initializesystem(sys::ODESystem;
128128

129129
# 5) parameter dependencies become equations, their LHS become unknowns
130130
for eq in parameter_dependencies(sys)
131+
is_variable_floatingpoint(eq.lhs) || continue
131132
varp = tovar(eq.lhs)
132133
paramsubs[eq.lhs] = varp
133134
push!(eqs_ics, eq)

0 commit comments

Comments
 (0)