Skip to content

Commit 5178eb1

Browse files
committed
Unfolded constants are just like parameters
1 parent 5c5731e commit 5178eb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/structural_transformation/utils.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ function find_eq_solvables!(state::TearingState, ieq, to_rm = Int[], coeffs = no
203203
all_int_vars = false
204204
if !allow_symbolic
205205
if allow_parameter
206-
all(ModelingToolkit.isparameter, vars(a)) || continue
206+
all(
207+
x -> ModelingToolkit.isparameter(x) || ModelingToolkit.isconstant(x),
208+
vars(a)) || continue
207209
else
208210
continue
209211
end

0 commit comments

Comments
 (0)