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
0a28851b
Commit
0a28851b
authored
5 years ago
by
Andreas Dedner
Browse files
Options
Downloads
Patches
Plain Diff
need to make sure FV needed for reference elements are registered
parent
8c0c27fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!140
Feature/add python bindings
Pipeline
#25738
passed
5 years ago
Stage: test
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
dune/python/geometry/referenceelements.hh
+8
-0
8 additions, 0 deletions
dune/python/geometry/referenceelements.hh
python/dune/geometry/CMakeLists.txt
+1
-0
1 addition, 0 deletions
python/dune/geometry/CMakeLists.txt
with
10 additions
and
0 deletions
CMakeLists.txt
+
1
−
0
View file @
0a28851b
...
...
@@ -24,6 +24,7 @@ add_subdirectory("dune")
add_subdirectory
(
"doc"
)
add_subdirectory
(
"lib"
)
add_subdirectory
(
"python"
)
dune_python_install_package
(
PATH python
)
# finalize the dune project, e.g. generating config.h etc.
finalize_dune_project
(
GENERATE_CONFIG_H_CMAKE
)
This diff is collapsed.
Click to expand it.
dune/python/geometry/referenceelements.hh
+
8
−
0
View file @
0a28851b
...
...
@@ -10,6 +10,9 @@
#include
<dune/geometry/referenceelements.hh>
#include
<dune/geometry/type.hh>
#include
<dune/python/common/fvector.hh>
#include
<dune/python/common/fmatrix.hh>
#include
<dune/python/geometry/quadraturerules.hh>
#include
<dune/python/pybind11/pybind11.h>
...
...
@@ -96,6 +99,11 @@ namespace Dune
pybind11
::
options
opts
;
opts
.
disable_function_signatures
();
static
const
std
::
size_t
dimension
=
RefElement
::
dimension
;
typedef
typename
RefElement
::
ctype
ctype
;
registerFieldVector
<
ctype
,
dimension
>
(
module
);
registerFieldMatrix
<
ctype
,
dimension
,
dimension
>
(
module
);
cls
.
def_property_readonly
(
"dimension"
,
[]
(
pybind11
::
object
)
{
return
pybind11
::
int_
(
RefElement
::
dimension
);
}
);
cls
.
def
(
"size"
,
[]
(
const
RefElement
&
self
,
int
c
)
{
...
...
This diff is collapsed.
Click to expand it.
python/dune/geometry/CMakeLists.txt
+
1
−
0
View file @
0a28851b
...
...
@@ -4,3 +4,4 @@ add_python_targets(geometry
quadpy
)
dune_add_pybind11_module
(
NAME _geometry
)
set_property
(
TARGET _geometry PROPERTY LINK_LIBRARIES dunecommon dunegeometry
)
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