Commit 7a7521c5 authored by Lukas Platz's avatar Lukas Platz
Browse files

exception in descent minimizer

parent 738be3ad
Pipeline #108762 passed with stages
in 20 minutes and 59 seconds
......@@ -197,6 +197,8 @@ class NewtonCG(DescentMinimizer):
e, conv = ConjugateGradient(ic, nreset=self._nreset)(e, p)
if self._history is not None:
self._history += ic.history
if conv == ic.ERROR:
raise ValueError("Cannot find descent direction")
return -e.position
@property
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment