We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b2f16 commit 9094d03Copy full SHA for 9094d03
2 files changed
diffrax/_root_finder/_verychord.py
@@ -162,7 +162,7 @@ def terminate(
162
converged = _converged(factor, self.kappa)
163
terminate = at_least_two & (small | diverged | converged)
164
terminate_result = optx.RESULTS.where(
165
- at_least_two & jnp.invert(small) & (diverged | jnp.invert(converged)),
+ at_least_two & jnp.invert(small) & diverged,
166
optx.RESULTS.nonlinear_divergence,
167
optx.RESULTS.successful,
168
)
test/test_solver.py
@@ -50,7 +50,7 @@ def test_implicit_euler_adaptive():
50
stepsize_controller=stepsize_controller,
51
throw=False,
52
53
- assert out1.result == diffrax.RESULTS.nonlinear_divergence
+ assert out1.result == diffrax.RESULTS.nonlinear_max_steps_reached
54
assert out2.result == diffrax.RESULTS.successful
55
56
0 commit comments