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
5ed9dd16
Commit
5ed9dd16
authored
7 years ago
by
René Heß
Browse files
Options
Downloads
Patches
Plain Diff
Use anisotropic quadrature order in test and small improvements
parent
95456dcb
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/perftool/sumfact/tabulation.py
+2
-2
2 additions, 2 deletions
python/dune/perftool/sumfact/tabulation.py
test/sumfact/poisson/poisson_2d.mini
+1
-1
1 addition, 1 deletion
test/sumfact/poisson/poisson_2d.mini
with
3 additions
and
3 deletions
python/dune/perftool/sumfact/tabulation.py
+
2
−
2
View file @
5ed9dd16
...
@@ -208,7 +208,7 @@ def quadrature_points_per_direction():
...
@@ -208,7 +208,7 @@ def quadrature_points_per_direction():
q
=
(
q
,)
*
world_dimension
()
q
=
(
q
,)
*
world_dimension
()
# Quadrature points in per direction
# Quadrature points in per direction
nb_qp
=
tuple
(
[(
lambda
x
:
x
//
2
+
1
)(
order
)
for
order
in
q
]
)
nb_qp
=
tuple
(
order
//
2
+
1
for
order
in
q
)
return
nb_qp
return
nb_qp
...
@@ -229,7 +229,7 @@ def local_quadrature_points_per_direction():
...
@@ -229,7 +229,7 @@ def local_quadrature_points_per_direction():
def
polynomial_degree
():
def
polynomial_degree
():
form
=
get_global_context_value
(
"
formdata
"
).
preprocessed_form
form
=
get_global_context_value
(
"
formdata
"
).
preprocessed_form
degree
=
form
.
coefficients
()[
0
].
ufl_element
().
_
degree
degree
=
form
.
coefficients
()[
0
].
ufl_element
().
degree
()
if
isinstance
(
degree
,
int
):
if
isinstance
(
degree
,
int
):
degree
=
(
degree
,)
*
world_dimension
()
degree
=
(
degree
,)
*
world_dimension
()
return
degree
return
degree
...
...
This diff is collapsed.
Click to expand it.
test/sumfact/poisson/poisson_2d.mini
+
1
−
1
View file @
5ed9dd16
...
@@ -18,7 +18,7 @@ numerical_jacobian = 1, 0 | expand num
...
@@ -18,7 +18,7 @@ numerical_jacobian = 1, 0 | expand num
compare_l2errorsquared = 4e-5, 4e-9 | expand deg
compare_l2errorsquared = 4e-5, 4e-9 | expand deg
sumfact = 1
sumfact = 1
vectorize_grads = 1, 0 | expand grad
vectorize_grads = 1, 0 | expand grad
#
quadrature_order = 2, 4
quadrature_order = 2, 4
[formcompiler.ufl_variants]
[formcompiler.ufl_variants]
degree = 1, 2 | expand deg
degree = 1, 2 | expand deg
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