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
9a744f4c
Commit
9a744f4c
authored
5 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
make all demos work again - or deactivate
fixed some bugs
parent
d59bec9d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!140
Feature/add python bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
quadpy.py
+6
-6
6 additions, 6 deletions
quadpy.py
with
6 additions
and
6 deletions
quadpy.py
+
6
−
6
View file @
9a744f4c
...
...
@@ -24,7 +24,7 @@ try:
self
.
method_
=
method
self
.
vertices_
=
numpy
.
array
(
vertices
)
# here an error will occur if the method is invalid - how to catch?
self
.
quadrature_
=
getattr
(
quad
,
method
)
(
order
)
self
.
quadrature_
=
getattr
(
quad
,
method
)
try
:
self
.
points_
=
transform
.
transform
(
self
.
quadrature_
.
points
.
T
,
self
.
vertices_
)
except
ValueError
:
...
...
@@ -63,23 +63,23 @@ try:
if
gt
.
isLine
:
vertices
=
[
0
,
1
]
quad
=
qp
.
line_segment
from
quadpy.ncube
import
tools
as
transform
from
quadpy.ncube
import
transform
elif
gt
.
isTriangle
:
vertices
=
[[
0.0
,
0.0
],
[
1.0
,
0.0
],
[
0.0
,
1.0
]]
quad
=
qp
.
triangle
from
quadpy.nsimplex
import
tools
as
transform
from
quadpy.nsimplex
import
transform
elif
gt
.
isQuadrilateral
:
vertices
=
qp
.
quadrilateral
.
rectangle_points
([
0.0
,
1.0
],
[
0.0
,
1.0
])
quad
=
qp
.
quadrilateral
from
quadpy.ncube
import
tools
as
transform
from
quadpy.ncube
import
transform
elif
gt
.
isTetrahedron
:
vertices
=
[[
0.0
,
0.0
,
0.0
],
[
1.0
,
0.0
,
0.0
],
[
0.0
,
1.0
,
0.0
],
[
0.0
,
0.0
,
1.0
]]
quad
=
qp
.
tetrahedron
from
quadpy.nsimplex
import
tools
as
transform
from
quadpy.nsimplex
import
transform
elif
gt
.
isHexahedron
:
vertices
=
qp
.
hexahedron
.
cube_points
([
0.0
,
1.0
],
[
0.0
,
1.0
],
[
0.0
,
1.0
])
quad
=
qp
.
hexahedron
from
quadpy.ncube
import
tools
as
transform
from
quadpy.ncube
import
transform
elif
gt
.
isPyramid
:
vertices
=
[[
0.0
,
0.0
,
0.0
],
[
1.0
,
0.0
,
0.0
],
[
0.0
,
1.0
,
0.0
],
[
1.0
,
1.0
,
0.0
]
[
0.0
,
0.0
,
1.0
]]
quad
=
qp
.
pyramid
...
...
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