Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
30dcab13
Commit
30dcab13
authored
6 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Register PDELab finite elements into UFL
parent
2ccff869
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/dune/codegen/__init__.py
+3
-0
3 additions, 0 deletions
python/dune/codegen/__init__.py
python/dune/codegen/ufl/finiteelement.py
+43
-0
43 additions, 0 deletions
python/dune/codegen/ufl/finiteelement.py
with
46 additions
and
0 deletions
python/dune/codegen/__init__.py
+
3
−
0
View file @
30dcab13
...
@@ -10,3 +10,6 @@ import dune.codegen.loopy.symbolic # noqa
...
@@ -10,3 +10,6 @@ import dune.codegen.loopy.symbolic # noqa
import
dune.codegen.pdelab
# noqa
import
dune.codegen.pdelab
# noqa
import
dune.codegen.sumfact
# noqa
import
dune.codegen.sumfact
# noqa
import
dune.codegen.blockstructured
# noqa
import
dune.codegen.blockstructured
# noqa
# Trigger imports that register finite elements in UFL
import
dune.codegen.ufl.finiteelement
# noqa
This diff is collapsed.
Click to expand it.
python/dune/codegen/ufl/finiteelement.py
0 → 100644
+
43
−
0
View file @
30dcab13
"""
Registering finite elements that we have, but FEniCS does not
"""
from
ufl
import
register_element
,
L2
register_element
(
"
Discontinuous Gauss-Lobatto-Legendre
"
,
"
DGLL
"
,
0
,
L2
,
"
identity
"
,
(
0
,
None
),
(
'
interval
'
,),
)
register_element
(
"
Monomials
"
,
"
Monom
"
,
0
,
L2
,
"
identity
"
,
(
0
,
None
),
(
'
interval
'
,),
)
register_element
(
"
L2-Orthonormal Polynomials
"
,
"
OPB
"
,
0
,
L2
,
"
identity
"
,
(
0
,
None
),
(
'
interval
'
,),
)
register_element
(
"
Rannacher-Turek
"
,
"
RaTu
"
,
0
,
L2
,
"
identity
"
,
(
1
,
1
),
(
'
quadrilateral
'
,
'
hexahedron
'
),
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment