Skip to content

Commit 45afbc8

Browse files
fix: handle edge case in float_type_from_varmap
1 parent 5cb05a5 commit 45afbc8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/systems/problem_utils.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,6 +1219,7 @@ with a constant value.
12191219
"""
12201220
function float_type_from_varmap(varmap, floatT = Bool)
12211221
for (k, v) in varmap
1222+
is_variable_floatingpoint(k) || continue
12221223
symbolic_type(v) == NotSymbolic() || continue
12231224
is_array_of_symbolics(v) && continue
12241225

0 commit comments

Comments
 (0)