Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
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-grid
Commits
e293909e
Commit
e293909e
authored
2 weeks ago
by
Simon Praetorius
Browse files
Options
Downloads
Patches
Plain Diff
Rewrite the constructor of VirtualizedGF
parent
f5a92da0
Branches
Branches containing commit
No related tags found
1 merge request
!774
Fix some issues with the VirtualizedGF in the python bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/python/grid/function.hh
+1
-2
1 addition, 2 deletions
dune/python/grid/function.hh
with
1 addition
and
2 deletions
dune/python/grid/function.hh
+
1
−
2
View file @
e293909e
...
...
@@ -27,7 +27,6 @@
#if HAVE_DUNE_VTK
#include
<dune/vtk/gridfunctions/gridfunction.hh>
#include
<dune/python/grid/pygridfunction.hh>
#endif
#include
<dune/python/pybind11/numpy.h>
...
...
@@ -173,7 +172,7 @@ namespace Dune
Python
::
IncludeFiles
{
"dune/vtk/gridfunctions/gridfunction.hh"
});
vgfClass
.
first
.
def
(
pybind11
::
init
(
[]
(
GridFunction
&
gf
)
{
// TODO: perhaps grid functions should just have a name attribute in general
return
new
VirtualizedGF
(
pyGridFunction
(
gf
),
"tmp"
);
return
new
VirtualizedGF
(
gf
,
Dune
::
Vtk
::
FieldInfo
{
"tmp"
}
);
}
)
);
pybind11
::
implicitly_convertible
<
GridFunction
,
VirtualizedGF
>
();
#endif
...
...
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