@@ -97,7 +97,7 @@ def generate_element_tables(self):
97
97
"""Generate tables of FE basis evaluated at specified points."""
98
98
parts = []
99
99
100
- tables = self .ir .expression .unique_tables
100
+ tables = self .ir .expression .unique_tables [ self . quadrature_rule [ 0 ]]
101
101
table_names = sorted (tables )
102
102
103
103
for name in table_names :
@@ -125,7 +125,7 @@ def generate_quadrature_loop(self):
125
125
# Generate varying partition
126
126
body = self .generate_varying_partition ()
127
127
body = L .commented_code_list (
128
- body , f"Points loop body setup quadrature loop { self .quadrature_rule .id ()} "
128
+ body , f"Points loop body setup quadrature loop { self .quadrature_rule [ 1 ] .id ()} "
129
129
)
130
130
131
131
# Generate dofblock parts, some of this
@@ -139,7 +139,7 @@ def generate_quadrature_loop(self):
139
139
quadparts = []
140
140
else :
141
141
iq = self .backend .symbols .quadrature_loop_index
142
- num_points = self .quadrature_rule .points .shape [0 ]
142
+ num_points = self .quadrature_rule [ 1 ] .points .shape [0 ]
143
143
quadparts = [L .ForRange (iq , 0 , num_points , body = body )]
144
144
return preparts , quadparts
145
145
@@ -148,11 +148,11 @@ def generate_varying_partition(self):
148
148
# Get annotated graph of factorisation
149
149
F = self .ir .expression .integrand [self .quadrature_rule ]["factorization" ]
150
150
151
- arraysymbol = L .Symbol (f"sv_{ self .quadrature_rule .id ()} " , dtype = L .DataType .SCALAR )
151
+ arraysymbol = L .Symbol (f"sv_{ self .quadrature_rule [ 1 ] .id ()} " , dtype = L .DataType .SCALAR )
152
152
parts = self .generate_partition (arraysymbol , F , "varying" )
153
153
parts = L .commented_code_list (
154
154
parts ,
155
- f"Unstructured varying computations for quadrature rule { self .quadrature_rule .id ()} " ,
155
+ f"Unstructured varying computations for quadrature rule { self .quadrature_rule [ 1 ] .id ()} " ,
156
156
)
157
157
return parts
158
158
@@ -216,7 +216,7 @@ def generate_block_parts(self, blockmap, blockdata):
216
216
assert not blockdata .transposed , "Not handled yet"
217
217
components = ufl .product (self .ir .expression .shape )
218
218
219
- num_points = self .quadrature_rule .points .shape [0 ]
219
+ num_points = self .quadrature_rule [ 1 ] .points .shape [0 ]
220
220
A_shape = [num_points , components ] + self .ir .expression .tensor_shape
221
221
A = self .backend .symbols .element_tensor
222
222
iq = self .backend .symbols .quadrature_loop_index
0 commit comments