Skip to content

Commit

Permalink
Fix gen-quad reference simplex
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrubeck committed Jul 19, 2024
1 parent afc4bf9 commit 14a5948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FIAT/quadrature_schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# FIAT
from FIAT.reference_element import (HEXAHEDRON, QUADRILATERAL, TENSORPRODUCT,
TETRAHEDRON, TRIANGLE, UFCTetrahedron,
UFCTriangle, ufc_simplex, symmetric_simplex)
UFCTriangle, symmetric_simplex)


def create_quadrature(ref_el, degree, scheme="default"):
Expand Down Expand Up @@ -334,8 +334,8 @@ def _kmv_lump_scheme(ref_el, degree):


def gen_quad_simplex(dim):
ref_el = ufc_simplex(dim)
ref_el.vertices = ((0., 0., 0.), (1., 0., 0.), (0., 1., 1.), (1., 1., 1.))
ref_el = symmetric_simplex(dim)
ref_el.vertices = tuple(tuple(float(i > j) for j in range(dim)) for i in range(dim+1))
return ref_el


Expand Down

0 comments on commit 14a5948

Please sign in to comment.