Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-xt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
ag-ohlberger
dune-community
dune-xt
Commits
0624efc3
Commit
0624efc3
authored
4 years ago
by
Dr. Felix Tobias Schindler
Browse files
Options
Downloads
Patches
Plain Diff
drop unused file
parent
de67a91e
No related branches found
No related tags found
1 merge request
!20
Update bindings
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/dune/xt/functions/gridfunction-interface.cc
+0
-104
0 additions, 104 deletions
python/dune/xt/functions/gridfunction-interface.cc
with
0 additions
and
104 deletions
python/dune/xt/functions/gridfunction-interface.cc
deleted
100644 → 0
+
0
−
104
View file @
de67a91e
// This file is part of the dune-xt project:
// https://github.com/dune-community/dune-xt
// Copyright 2009-2018 dune-xt developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
// with "runtime exception" (http://www.dune-project.org/license.html)
// Authors:
// Felix Schindler (2019)
#include
"config.h"
#include
<string>
#include
<vector>
#include
<dune/common/parallel/mpihelper.hh>
#include
<dune/pybindxi/pybind11.h>
#include
<dune/pybindxi/stl.h>
#include
<python/dune/xt/common/bindings.hh>
#include
<python/dune/xt/common/exceptions.bindings.hh>
#include
<python/dune/xt/grid/grids.bindings.hh>
#include
"gridfunction-interface.hh"
template
<
class
G
>
void
add_bind_for_Grid_interface
(
pybind11
::
module
&
m
)
{
using
namespace
Dune
::
XT
::
Functions
;
const
auto
grid_id
=
Dune
::
XT
::
Grid
::
bindings
::
grid_name
<
G
>::
value
();
constexpr
const
auto
diff
=
CombinationType
::
difference
;
constexpr
const
auto
sum
=
CombinationType
::
sum
;
constexpr
const
auto
prod
=
CombinationType
::
product
;
constexpr
const
auto
g_dim
=
G
::
dimension
;
auto
i_1_1
=
bind_GridFunctionInterface
<
G
,
1
,
1
>
(
m
,
grid_id
);
auto
i_2_1
=
bind_GridFunctionInterface
<
G
,
2
,
1
>
(
m
,
grid_id
);
auto
i_2_2
=
bind_GridFunctionInterface
<
G
,
2
,
2
>
(
m
,
grid_id
);
auto
i_3_1
=
bind_GridFunctionInterface
<
G
,
3
,
1
>
(
m
,
grid_id
);
auto
i_3_3
=
bind_GridFunctionInterface
<
G
,
3
,
3
>
(
m
,
grid_id
);
bind_combined_GridFunction
<
G
,
g_dim
,
diff
,
1
,
1
,
1
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
diff
,
1
,
1
,
1
,
1
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
diff
,
2
,
1
,
2
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
diff
,
2
,
1
,
2
,
1
>
(
i_2_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
diff
,
2
,
2
,
2
,
2
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
diff
,
2
,
2
,
2
,
2
>
(
i_2_2
);
bind_combined_GridFunction
<
G
,
g_dim
,
diff
,
3
,
1
,
3
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
diff
,
3
,
1
,
3
,
1
>
(
i_3_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
diff
,
3
,
3
,
3
,
3
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
diff
,
3
,
3
,
3
,
3
>
(
i_3_3
);
bind_combined_GridFunction
<
G
,
g_dim
,
sum
,
1
,
1
,
1
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
sum
,
1
,
1
,
1
,
1
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
sum
,
2
,
1
,
2
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
sum
,
2
,
1
,
2
,
1
>
(
i_2_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
sum
,
2
,
2
,
2
,
2
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
sum
,
2
,
2
,
2
,
2
>
(
i_2_2
);
bind_combined_GridFunction
<
G
,
g_dim
,
sum
,
3
,
1
,
3
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
sum
,
3
,
1
,
3
,
1
>
(
i_3_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
sum
,
3
,
3
,
3
,
3
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
sum
,
3
,
3
,
3
,
3
>
(
i_3_3
);
bind_combined_GridFunction
<
G
,
g_dim
,
prod
,
1
,
1
,
1
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
prod
,
1
,
1
,
1
,
1
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
prod
,
1
,
1
,
2
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
prod
,
1
,
1
,
2
,
1
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
prod
,
1
,
1
,
2
,
2
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
prod
,
1
,
1
,
2
,
2
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
prod
,
1
,
1
,
3
,
1
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
prod
,
1
,
1
,
3
,
1
>
(
i_1_1
);
bind_combined_GridFunction
<
G
,
g_dim
,
prod
,
1
,
1
,
3
,
3
>
(
m
,
grid_id
);
addbind_GridFunctionInterface_combined_op
<
G
,
g_dim
,
prod
,
1
,
1
,
3
,
3
>
(
i_1_1
);
}
// ... addbind_for_Grid_interface(...)
template
<
class
Tuple
=
Dune
::
XT
::
Grid
::
AvailableGridTypes
>
void
all_grid_interfaces
(
pybind11
::
module
&
m
)
{
add_bind_for_Grid_interface
<
typename
Tuple
::
head_type
>
(
m
);
all_grid_interfaces
<
typename
Tuple
::
tail_type
>
(
m
);
}
// ... addbind_for_Grid(...)
template
<
>
void
all_grid_interfaces
<
boost
::
tuples
::
null_type
>
(
pybind11
::
module
&
)
{}
PYBIND11_MODULE
(
_gridfunction_interface
,
m
)
{
namespace
py
=
pybind11
;
Dune
::
XT
::
Common
::
bindings
::
addbind_exceptions
(
m
);
Dune
::
XT
::
Common
::
bindings
::
add_initialization
(
m
,
"dune.xt.functions"
);
py
::
module
::
import
(
"dune.xt.common"
);
py
::
module
::
import
(
"dune.xt.la"
);
py
::
module
::
import
(
"dune.xt.grid"
);
py
::
module
::
import
(
"dune.xt.functions._function_interface"
);
all_grid_interfaces
(
m
);
}
// PYBIND11_MODULE(...)
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