Skip to content

Commit fe92b60

Browse files
committed
Fix typo
1 parent 2a64a93 commit fe92b60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/structural_transformation/codegen.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,9 @@ function gen_nlsolve(eqs, vars, u0map::AbstractDict; checkbounds=true)
125125
for v in vars
126126
v in keys(u0map) || (push!(u0, 1e-3); continue)
127127
u = substitute(v, u0map)
128-
for i in 1:1000
128+
for i in 1:length(u0map)
129129
u = substitute(u, u0map)
130-
u isa Number && (push!(u0, u); continue)
130+
u isa Number && (push!(u0, u); break)
131131
end
132132
u isa Number || error("$v doesn't have a default.")
133133
end

0 commit comments

Comments
 (0)