Skip to content
Snippets Groups Projects
Commit 0565697d authored by René Heß's avatar René Heß
Browse files

Fix two more small bugs

parent 4f0ca24f
No related branches found
No related tags found
No related merge requests found
......@@ -204,12 +204,13 @@ def construct_theta(name, transpose, derivative):
polynomials = name_polynomials()
qp = name_oned_quadrature_points()
access = "j,i" if transpose else "i,j"
# access = "j,i" if transpose else "i,j"
basispol = "dp" if derivative else "p"
polynomial_access = "i,{}[j]".format(qp) if transpose else "j,{}[i]".format(qp)
return ["for (std::size_t i=0; i<{}; i++){{".format(shape[0]),
" for (std::size_t j=0; j<{}; j++){{".format(shape[1]),
" {}.colmajoraccess({}) = {}.{}(j,{}[i]);".format(name, access, polynomials, basispol, qp),
" {}.colmajoraccess(i,j) = {}.{}({});".format(name, polynomials, basispol, polynomial_access),
" }",
"}"]
......
......@@ -7,7 +7,7 @@ from dune.perftool.generation import (backend,
temporary_variable,
)
from dune.perftool.sumfact.amatrix import (name_number_of_basis_functions_per_direction,
from dune.perftool.sumfact.amatrix import (name_number_of_quadrature_points_per_direction,
name_oned_quadrature_points,
name_oned_quadrature_weights,
)
......@@ -71,7 +71,7 @@ def pymbolic_base_weight():
@iname
def sumfact_quad_iname(d, context):
name = "quad_{}_{}".format(context, d)
domain(name, name_number_of_basis_functions_per_direction())
domain(name, name_number_of_quadrature_points_per_direction())
return name
......
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