Skip to content

Commit

Permalink
rearrange branches
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Jul 19, 2018
1 parent 8e33e59 commit e618dfa
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions FIAT/reference_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,15 +367,15 @@ def make_points(self, dim, entity_id, order):
include in each direction."""
if dim == 0:
return (self.get_vertices()[entity_id], )
elif dim > self.get_spatial_dimension():
raise Exception("illegal dimension")
elif 0 < dim < self.get_spatial_dimension():
entity_verts = \
self.get_vertices_of_subcomplex(
self.get_topology()[dim][entity_id])
return make_lattice(entity_verts, order, 1)
elif dim == self.get_spatial_dimension():
return make_lattice(self.get_vertices(), order, 1)
else:
facet_verts = \
self.get_vertices_of_subcomplex(
self.get_topology()[dim][entity_id])
return make_lattice(facet_verts, order, 1)
raise ValueError("illegal dimension")

def volume(self):
"""Computes the volume of the simplex in the appropriate
Expand Down

0 comments on commit e618dfa

Please sign in to comment.