Skip to content
Snippets Groups Projects

Add check if a MeshElementGroup is affine

Merged Alexandru Fikl requested to merge fikl2/meshmode:group-is-affine-check into master
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -1396,6 +1396,7 @@ def is_affine_simplex_group(group, abs_tol=None):
@@ -1396,6 +1396,7 @@ def is_affine_simplex_group(group, abs_tol=None):
if norm_inf > abs_tol:
if norm_inf > abs_tol:
return False
return False
 
# check all elements for a non-affine local-to-global mapping
ddx_coeffs = np.einsum("aij,bcj->abci", mats, group.nodes)
ddx_coeffs = np.einsum("aij,bcj->abci", mats, group.nodes)
norm_inf = np.max(np.abs(ddx_coeffs))
norm_inf = np.max(np.abs(ddx_coeffs))
return norm_inf < abs_tol
return norm_inf < abs_tol
Loading