We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
process_parameter_equations
1 parent bab8ed4 commit 30855c9Copy full SHA for 30855c9
src/systems/abstractsystem.jl
@@ -2707,7 +2707,9 @@ function process_parameter_equations(sys::AbstractSystem)
2707
is_sized_array_symbolic(sym) &&
2708
all(Base.Fix1(is_parameter, sys), collect(sym))
2709
end
2710
- if !isparameter(eq.lhs)
+ # Everything in `varsbuf` is a parameter, so this is a cheap `is_parameter`
2711
+ # check.
2712
+ if !(eq.lhs in varsbuf)
2713
throw(ArgumentError("""
2714
LHS of parameter dependency equation must be a single parameter. Found \
2715
$(eq.lhs).
0 commit comments