From 6cb47e9082491662ab33eda819162d7bf662666e Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Tue, 20 Sep 2016 14:36:13 -0500 Subject: [PATCH] residual => norm(residual) --- meshmode/mesh/refinement/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/meshmode/mesh/refinement/utils.py b/meshmode/mesh/refinement/utils.py index 936f9107..751142aa 100644 --- a/meshmode/mesh/refinement/utils.py +++ b/meshmode/mesh/refinement/utils.py @@ -94,7 +94,8 @@ def check_nodal_adj_against_geometry(mesh, tol=1e-12): is_in_element_span = ( residual.size == 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_in_element_span -- GitLab