Skip to content

Commit 295efba

Browse files
committed
Testing out a vmap implementation
1 parent 32d2f42 commit 295efba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SimpleNonlinearSolve"
22
uuid = "727e6d20-b764-4bd8-a329-72de5adea6c7"
33
authors = ["SciML"]
4-
version = "1.7.0"
4+
version = "1.7.1"
55

66
[deps]
77
ADTypes = "47edcb42-4c32-4615-8424-f2b9edc5f35b"

src/utils.jl

+3-3
Original file line numberDiff line numberDiff line change
@@ -321,19 +321,19 @@ function check_termination(tc_cache, fx, x, xo, prob, alg)
321321
end
322322
function check_termination(tc_cache, fx, x, xo, prob, alg,
323323
::AbstractNonlinearTerminationMode)
324-
tc_cache(fx, x, xo) &&
324+
all(tc_cache(fx, x, xo)) &&
325325
return build_solution(prob, alg, x, fx; retcode = ReturnCode.Success)
326326
return nothing
327327
end
328328
function check_termination(tc_cache, fx, x, xo, prob, alg,
329329
::AbstractSafeNonlinearTerminationMode)
330-
tc_cache(fx, x, xo) &&
330+
all(tc_cache(fx, x, xo)) &&
331331
return build_solution(prob, alg, x, fx; retcode = tc_cache.retcode)
332332
return nothing
333333
end
334334
function check_termination(tc_cache, fx, x, xo, prob, alg,
335335
::AbstractSafeBestNonlinearTerminationMode)
336-
if tc_cache(fx, x, xo)
336+
if all(tc_cache(fx, x, xo))
337337
if isinplace(prob)
338338
prob.f(fx, x, prob.p)
339339
else

0 commit comments

Comments
 (0)