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