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

Use float type that matches scalar type #502

Merged
merged 18 commits into from
Jun 24, 2022
Prev Previous commit
Next Next commit
Doc style fix
garth-wells committed Jun 23, 2022
commit fc4e318309f669e700aeb49f676f0f2363fa93cd
7 changes: 3 additions & 4 deletions ffcx/codegeneration/integrals.py
Original file line number Diff line number Diff line change
@@ -288,8 +288,7 @@ def generate_geometry_tables(self, float_type):
return parts

def generate_element_tables(self, float_type: str):
"""Generate static tables with precomputed element basis
function values in quadrature points."""
"""Generate static tables with precomputed element basisfunction values in quadrature points."""
L = self.backend.language
parts = []

@@ -692,15 +691,15 @@ def generate_block_parts(self, quadrature_rule: QuadratureRule, blockmap: Tuple,
return preparts, quadparts

def fuse_loops(self, definitions):
"""Merge a sequence of loops with the same iteration space into
a single loop.
"""Merge a sequence of loops with the same iteration space into a single loop.
Loop fusion improves data locality, cache reuse and decreases
the loop control overhead.
NOTE: Loop fusion might increase the pressure on register
allocation. Ideally, we should define a cost function to
determine how many loops should fuse at a time.
"""
L = self.backend.language