Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ def find_rst_from_xyz(

# Determine which points have already been found so they are not updated anymore
points_found_this_it = (
np.linalg.norm(self.eps_rst[:npoints, :nelems], axis=(2, 3)) <= tol
np.linalg.norm(self.eps_rst[:npoints, :nelems], axis=(2, 3)) <= tol or
np.linalg.norm(self.eps_rst[:npoints, :nelems], axis=(2, 3)) > 10.0
)
points_already_found = np.any(iterations_per_point[:npoints, :nelems] < max_iterations, axis=(2,3))
# Update the number of iterations only if the point has newly been found
Expand Down Expand Up @@ -815,4 +816,4 @@ def invert_jac(jac):
jac_inv[:, :, 2, 1] = (b * g - a * h) / det
jac_inv[:, :, 2, 2] = (a * e - b * d) / det

return jac_inv
return jac_inv