Skip to content
Snippets Groups Projects
Commit 6cb47e90 authored by Matt Wala's avatar Matt Wala
Browse files

residual => norm(residual)

parent cb97c26a
No related branches found
No related tags found
No related merge requests found
...@@ -94,7 +94,8 @@ def check_nodal_adj_against_geometry(mesh, tol=1e-12): ...@@ -94,7 +94,8 @@ def check_nodal_adj_against_geometry(mesh, tol=1e-12):
is_in_element_span = ( is_in_element_span = (
residual.size == 0 or residual.size == 0 or
np.linalg.norm(vertex_transformed) == 0 or np.linalg.norm(vertex_transformed) == 0 or
residual / np.linalg.norm(vertex_transformed) <= tol) (np.linalg.norm(residual) /
np.linalg.norm(vertex_transformed)) <= tol)
is_connected = ( is_connected = (
is_in_element_span is_in_element_span
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment