Skip to content

Commit a13c996

Browse files
committed
rebase fix
1 parent ad83d7f commit a13c996

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tsfc/fem.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,13 +113,17 @@ def translator(self):
113113

114114
@cached_property
115115
def use_canonical_quadrature_point_ordering(self):
116-
filtered_map = {domain: integral_type for domain, integral_type in self.domain_integral_type_map.items() if integral_type is not None}
116+
cell_integral_type_map = {as_fiat_cell(domain.ufl_cell()): integral_type
117+
for domain, integral_type in self.domain_integral_type_map.items()
118+
if integral_type is not None}
119+
if all(integral_type == 'cell' for integral_type in cell_integral_type_map.values()):
120+
return False
121+
elif all(integral_type in ['exterior_facet', 'interior_facet'] for integral_type in cell_integral_type_map.values()):
122+
if all(isinstance(cell, UFCHexahedron) for cell in cell_integral_type_map):
123+
return True
124+
elif len(set(cell_integral_type_map)) > 1: # mixed cell types
125+
return True
117126
return False
118-
import pdb;pdb.set_trace()
119-
for domain, integral_type in filtered_map.items():
120-
if domain.ufl_cell() == 999:
121-
pass
122-
return isinstance(self.fiat_cell, UFCHexahedron) and self.integral_type in ['exterior_facet', 'interior_facet']
123127

124128

125129
class CoordinateMapping(PhysicalGeometry):

0 commit comments

Comments
 (0)