Skip to content

Commit

Permalink
Remove ufcx_dofmap and ufcx_element (#681)
Browse files Browse the repository at this point in the history
* branches

* remove element and dofmap

* basix main

* fstrings

* dolfinx main
  • Loading branch information
mscroggs committed Apr 26, 2024
1 parent b92af3a commit 644c09b
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 1,111 deletions.
39 changes: 0 additions & 39 deletions ffcx/codegeneration/C/basix_custom_element_template.py

This file was deleted.

95 changes: 0 additions & 95 deletions ffcx/codegeneration/C/dofmap.py

This file was deleted.

39 changes: 0 additions & 39 deletions ffcx/codegeneration/C/dofmap_template.py

This file was deleted.

4 changes: 1 addition & 3 deletions ffcx/codegeneration/C/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,6 @@ def generator(ir, options):
# ufcx_function_space is generated (also for ufcx_form)
for name, (
element,
dofmap,
cmap_family,
cmap_degree,
cmap_celltype,
Expand All @@ -117,8 +116,7 @@ def generator(ir, options):
) in ir.function_spaces.items():
code += [f"static ufcx_function_space function_space_{name}_{ir.name_from_uflfile} ="]
code += ["{"]
code += [f".finite_element = &{element},"]
code += [f".dofmap = &{dofmap},"]
code += [f".finite_element = {element},"]
code += [f'.geometry_family = "{cmap_family}",']
code += [f".geometry_degree = {cmap_degree},"]
code += [f".geometry_basix_cell = {int(cmap_celltype)},"]
Expand Down
Loading

0 comments on commit 644c09b

Please sign in to comment.