File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff 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
125129class CoordinateMapping (PhysicalGeometry ):
You can’t perform that action at this time.
0 commit comments