Skip to content
Snippets Groups Projects
Commit 87149259 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Do not declare quadrature point arrays with one QP

They are not used in a senseful way anyway and loopy
stumbled over them.
parent 24f97ab8
No related branches found
No related tags found
No related merge requests found
......@@ -402,9 +402,7 @@ def define_theta(name, tabmat, additional_indices=(), width=None):
bound = tabmat.quadrature_size
if tabmat.slice_size is not None:
bound *= tabmat.slice_size
qp = name_oned_quadrature_points(bound)
qw = name_oned_quadrature_weights(bound)
sort_quadrature_points_weights(qp, qw, bound)
degree = tabmat.basis_size - 1
polynomials = name_polynomials(degree)
......@@ -433,9 +431,15 @@ def define_theta(name, tabmat, additional_indices=(), width=None):
if tabmat.slice_size is not None:
inames[0] = tabmat.slice_size * inames[0] + tabmat.slice_index
args = [inames[1], prim.Subscript(prim.Variable(qp), (inames[0],))]
if tabmat.face is not None:
args[1] = tabmat.face
args = [inames[1]]
if tabmat.face is None:
qp = name_oned_quadrature_points(bound)
qw = name_oned_quadrature_weights(bound)
sort_quadrature_points_weights(qp, qw, bound)
args.append(prim.Subscript(prim.Variable(qp), (inames[0],)))
else:
args.append(tabmat.face)
instruction(assignee=prim.Subscript(prim.Variable(name), (i, j) + additional_indices),
expression=prim.Call(PolynomialLookup(polynomials, tabmat.derivative), tuple(args)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment