Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-geometry
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
Show more breadcrumbs
Core Modules
dune-geometry
Commits
30b615e1
Commit
30b615e1
authored
3 months ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
also check one point quadratures
parent
b00b634d
No related branches found
Branches containing commit
No related tags found
1 merge request
!259
Fix the range error in python quadrature rules
Pipeline
#75475
passed
3 months ago
Stage: .pre
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/python/test/test_quad.py
+11
-4
11 additions, 4 deletions
dune/python/test/test_quad.py
with
11 additions
and
4 deletions
dune/python/test/test_quad.py
+
11
−
4
View file @
30b615e1
...
...
@@ -9,7 +9,16 @@ def monomial(p):
return
sum
(
x
**
p
for
x
in
point
)
return
function
result
=
{
3
:
# integral for sum_i x_i^p over reference element
result
=
{
0
:
# integral for sum_i x_i^p over reference element
{
geo
.
line
:
1.
,
geo
.
triangle
:
2
*
1.
/
2
,
geo
.
quadrilateral
:
2
*
1.
,
geo
.
tetrahedron
:
3
*
1.
/
6.
,
geo
.
pyramid
:
3
*
1.
/
3.
,
geo
.
prism
:
3
*
0.5
,
geo
.
hexahedron
:
3
*
1.
,
},
3
:
# integral for sum_i x_i^p over reference element
{
geo
.
line
:
1.
/
4.
,
geo
.
triangle
:
0.1
,
geo
.
quadrilateral
:
1.
/
2.
,
...
...
@@ -29,9 +38,7 @@ result = {3: # integral for sum_i x_i^p over reference element
},
}
for
order
in
[
3
,
4
]:
for
order
in
[
0
,
3
,
4
]:
rules
=
geo
.
quadratureRules
(
order
)
p
=
monomial
(
order
)
for
t
in
(
geo
.
line
,
geo
.
triangle
,
geo
.
quadrilateral
,
...
...
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