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 624bbf9 commit 4275950Copy full SHA for 4275950
src/systems/abstractsystem.jl
@@ -2709,7 +2709,9 @@ function process_parameter_equations(sys::AbstractSystem)
2709
is_sized_array_symbolic(sym) &&
2710
all(Base.Fix1(is_parameter, sys), collect(sym))
2711
end
2712
- if !isparameter(eq.lhs)
+ # Everything in `varsbuf` is a parameter, so this is a cheap `is_parameter`
2713
+ # check.
2714
+ if !(eq.lhs in varsbuf)
2715
throw(ArgumentError("""
2716
LHS of parameter dependency equation must be a single parameter. Found \
2717
$(eq.lhs).
0 commit comments