Skip to content

Commit

Permalink
fix mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorBaratta committed Jan 3, 2024
1 parent 89d51d3 commit eddb3a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ffcx/codegeneration/access.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,9 @@ def table_access(self, tabledata: UniqueTableReferenceT, entitytype: str, restri
# FIXME: Hopefully tabledata is not permuted when applying sum
# factorization
if tabledata.is_permuted:
qp = self.quadrature_permutation[0]
qp = self.symbols.quadrature_permutation[0]
if restriction == "-":
qp = self.quadrature_permutation[1]
qp = self.symbols.quadrature_permutation[1]

if dof_index.dim == 1 and quadrature_index.dim == 1:
return self.symbols.element_tables[tabledata.name][qp][entity][iq_global_index][ic_global_index]
Expand All @@ -392,6 +392,6 @@ def table_access(self, tabledata: UniqueTableReferenceT, entitytype: str, restri
factor = tabledata.tensor_factors[i]
iq_i = quadrature_index.local_index(i)
ic_i = dof_index.local_index(i)
table = self.element_tables[factor.name][qp][entity][iq_i][ic_i]
table = self.symbols.element_tables[factor.name][qp][entity][iq_i][ic_i]
FE.append(table)
return L.Product(FE)

0 comments on commit eddb3a5

Please sign in to comment.