Skip to content
This repository has been archived by the owner on Feb 21, 2022. It is now read-only.

Commit

Permalink
Merged in miklos1/vertex-transform (pull request #35)
Browse files Browse the repository at this point in the history
Transform vertex coordinates to cell coordinates

Approved-by: Jan Blechta <blechta@karlin.mff.cuni.cz>
  • Loading branch information
miklos1 committed Apr 7, 2017
2 parents 9f63fca + 98cf180 commit c8a4eda
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions FIAT/reference_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,10 @@ def get_entity_transform(self, dim, entity_i):
return lambda point: point
elif dim == space_dim - 1: # facet points
return self.get_facet_transform(entity_i)
elif dim == 0: # vertex point
i, = self.get_topology()[dim][entity_i]
vertex = self.get_vertices()[i]
return lambda point: vertex
else:
raise NotImplementedError("Co-dimension >1 not implemented.")

Expand Down

0 comments on commit c8a4eda

Please sign in to comment.