Skip to content

Commit

Permalink
fix ufc_cell
Browse files Browse the repository at this point in the history
  • Loading branch information
miklos1 committed Feb 8, 2016
1 parent a7cc5ec commit 9434be8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FIAT/reference_element.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,9 +716,9 @@ def ufc_cell( cell ):
else:
celltype = cell.cellname()

if celltype == "TensorProductCell":
# cell is a UFL cell
return TensorProductCell(ufc_cell(cell._A), ufc_cell(cell._B))
if " * " in celltype:
# Tensor product cell
return TensorProductCell(*map(ufc_cell, celltype.split(" * ")))
elif celltype == "quadrilateral":
return FiredrakeQuadrilateral()
elif celltype == "interval":
Expand Down

0 comments on commit 9434be8

Please sign in to comment.