Commit 216f3aa8 authored by Martin Reinecke's avatar Martin Reinecke

cleanup

parent 94ea7638
Pipeline #77896 passed with stages
in 12 minutes and 5 seconds
......@@ -216,8 +216,7 @@ class LineSearch(metaclass=NiftyMeta):
alpha1 = (alpha0+alpha1)/2
continue # next iteration
if (np.isinf(phi_alpha1) or np.isnan(phi_alpha1)
or np.abs(phi_alpha1) > 1e100): # also backtrack
if np.isnan(phi_alpha1) or np.abs(phi_alpha1) > 1e100: # also backtrack
alpha1 = (alpha0+alpha1)/2
continue # next iteration
......
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