Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused/unnecessary items from IntegralIR #679

Merged
merged 5 commits into from
Apr 16, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Move factorization argument closer to where its used
jorgensd committed Apr 15, 2024
commit 32d2fa66faf9f325a4464fb51213cf58c6b0e232
3 changes: 2 additions & 1 deletion ffcx/ir/representation.py
Original file line number Diff line number Diff line change
@@ -403,7 +403,7 @@ def _compute_integral_ir(
"enabled_coefficients": itg_data.enabled_coefficients,
"coordinate_element": finite_element_names[itg_data.domain.ufl_coordinate_element()],
}
use_sum_factorization = options["sum_factorization"] and itg_data.integral_type == "cell"

# Get element space dimensions
unique_elements = element_numbers.keys()
element_dimensions = {
@@ -427,6 +427,7 @@ def _compute_integral_ir(

# Group integrands with the same quadrature rule
grouped_integrands: dict[QuadratureRule, list[ufl.core.expr.Expr]] = {}
use_sum_factorization = options["sum_factorization"] and itg_data.integral_type == "cell"
for integral in itg_data.integrals:
md = integral.metadata() or {}
scheme = md["quadrature_rule"]