Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit f2d43ae

Browse files
committed
should jump to the end
1 parent bfe0f0a commit f2d43ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/differentiation/compute_jacobian_ad.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ function forwarddiff_color_jacobian!(J::AbstractMatrix{<:Number},
134134
end
135135
end
136136
color_i += 1
137-
(color_i > maximum(colorvec)) && continue
137+
(color_i > maximum(colorvec)) && return
138138
end
139139
else
140140
for j in 1:chunksize
141141
col_index = (i-1)*chunksize + j
142-
(col_index > maximum(colorvec)) && continue
142+
(col_index > maximum(colorvec)) && return
143143
J[:, col_index] .= partials.(fx, j)
144144
end
145145
end

0 commit comments

Comments
 (0)